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); })