From a8e56a2644305978444012c51e530b8eca0eeafc Mon Sep 17 00:00:00 2001 From: qinoy Date: Wed, 23 Aug 2023 16:36:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E6=9D=83=E9=99=90=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B5=20=E5=8B=BE=E9=80=89=E6=A1=86?= =?UTF-8?q?=E9=97=AA=E5=8A=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/role/RoleUpdate.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 593e634..6128d96 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 @@ -457,8 +457,12 @@ node.loaded = false; }, checkedNode(data, checked, subChecked) {// 节点选中事件 + if (data.leaf){ // 如果是叶子节点的话 不存在子节点 也就不用在请求 优化性能 + return; + } // 获取所有子节点 const that = this; + that.loading = true; const params = { url:'jd', data:{ @@ -550,7 +554,8 @@ } }) that.checkAllProcess = num == that.teamPermFileSize; - + that.loading = false; + console.log('计算全选按钮', that.teamPermFileSize, '实际勾选', num); }).catch(error=>{ console.log(error); }) @@ -645,6 +650,7 @@ checkAllProcessChange(value){ const that = this; + that.loading = true; if (value){//选中 const params = { url:'jd', @@ -666,6 +672,8 @@ } } that.$refs.tree.setCheckedKeys(checkedVerIds); + + that.loading = false; }).catch(error=>{ console.log(error); })