zhouna 4 years ago
parent
commit
2fd05ee5da
2 changed files with 4 additions and 4 deletions
  1. 1 1
      src/common/OptionInp.vue
  2. 3 3
      src/common/Select.vue

+ 1 - 1
src/common/OptionInp.vue

@@ -78,7 +78,7 @@ import $ from 'jquery';
           this.txt ='';
         }
         this.$emit('handleInp',this.txt,this.inx);
-        
+
         this.$emit("handleSelect")
       },
       changeVal(e){

+ 3 - 3
src/common/Select.vue

@@ -139,9 +139,9 @@ export default {
       this.$emit("updataResult", this.symptomResult,  {val:tmpResult.join('、'),valp:tmpResultp.join('、')},++number);
     },
     selectResult(item,idx) {
-      const { exclusion, select } = item;
+      const { exclusion, select, value } = item;
       let result = JSON.parse(JSON.stringify(this.result));
-      if (select) {//判断是否选中,选中的取消,关联id删除,未选中判断是否互斥
+      if (select&&!value) {//判断是否选中,选中的取消,关联id删除,未选中判断是否互斥
         for (let i = 0; i < result.length; i++) {
           if(i == idx){
             result[i].select = false
@@ -161,7 +161,7 @@ export default {
             if(result[i].select&&+result[i].exclusion === 1){
               result[i].select=false
             }else{
-              if(i == idx){
+              if(i == idx&&value){
                 result[i].select = true
               }
             }