角色权限 配置页 勾选框闪动问题
This commit is contained in:
parent
99a0f041df
commit
a8e56a2644
@ -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);
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user