Ver código fonte

Merge branch 'syf-scale1220' into test

1178232204@qq.com 3 anos atrás
pai
commit
c9c10dadee
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/common/Select.vue

+ 2 - 1
src/common/Select.vue

@@ -143,7 +143,7 @@ export default {
       let result = JSON.parse(JSON.stringify(this.result));
       let result = JSON.parse(JSON.stringify(this.result));
       if (select) {//判断是否选中,选中的取消,关联id删除,未选中判断是否互斥
       if (select) {//判断是否选中,选中的取消,关联id删除,未选中判断是否互斥
         for (let i = 0; i < result.length; i++) {
         for (let i = 0; i < result.length; i++) {
-          if(i == idx){
+          if(i == idx && result[i].value == '' || +exclusion === 1){
             result[i].select = false
             result[i].select = false
           }
           }
         }
         }
@@ -169,6 +169,7 @@ export default {
         }
         }
       }
       }
       this.result = result
       this.result = result
+      console.log(this.result);
     }
     }
   },
   },
   components:{
   components:{