diff --git a/com.actionsoft.apps.coe.pal.cooperation/src/views/role/RoleUpdate.vue b/com.actionsoft.apps.coe.pal.cooperation/src/views/role/RoleUpdate.vue index ba3da1a..9060a0c 100644 --- a/com.actionsoft.apps.coe.pal.cooperation/src/views/role/RoleUpdate.vue +++ b/com.actionsoft.apps.coe.pal.cooperation/src/views/role/RoleUpdate.vue @@ -73,7 +73,7 @@ {{dataAction.value}} + :disabled="!node.checked" @change="checkBoxChangeHandle(node.data,dataAction)" >{{dataAction.value}} @@ -259,11 +259,12 @@ that.roleForm.actionPerm = data.actionPerm; that.roleForm.dataPermText = data.dataPermText; //每次初始化重新加载el-tree - that.$nextTick(()=>{ - let node = that.$refs.tree.root; + let node = that.$refs.tree?.root; + if (undefined!= node){ node.loaded = false; node.expand(); - }) + } + //计算全选按钮 that.teamPermFileSize = data.teamPermFileSize @@ -625,8 +626,7 @@ } //将w勾选掉后处理 - flag = dataActionPerm.includes('w'); - if(dataAction.label == 'w' && !flag){ + if(dataAction.label == 'w'){ if (dataActionPerm.includes('d')){ this.removeArr(dataActionPerm,'d') }