From f80513ac9cff9b933d08016de3b4ae86dfb73b2d Mon Sep 17 00:00:00 2001 From: anhc <3442943606@qq.com> Date: Thu, 28 Jul 2022 15:41:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86=E7=9A=84?= =?UTF-8?q?=E5=85=A8=E9=80=89=E6=8C=89=E9=92=AE=E7=BB=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/role/RoleUpdate.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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') }