Browse Source

:ambulance: 选择部门时只能单选

Twelve615 1 year ago
parent
commit
4e0b5c70c2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      airport-vue/src/components/jeecgbiz/modal/JSelectDepartModal.vue

+ 1 - 2
airport-vue/src/components/jeecgbiz/modal/JSelectDepartModal.vue

@@ -15,7 +15,6 @@
       <a-empty v-if="filterTreeData.length===0"></a-empty>
       <a-tree
         v-else
-        checkable
         :class="treeScreenClass"
         :treeData="filterTreeData"
         :checkStrictly="checkStrictly"
@@ -194,7 +193,7 @@
             if(this.checkedKeys.indexOf(currKey)>=0){
               this.checkedKeys = this.checkedKeys.filter(item=> item !==currKey)
             }else{
-              this.checkedKeys.push(...keys)
+              this.checkedKeys = keys;
             }
           }
           this.checkedRows = this.getCheckedRows(this.checkedKeys)