角色权限 配置页 勾选框闪动问题

This commit is contained in:
qinoy 2023-08-23 16:36:38 +08:00
parent 99a0f041df
commit a8e56a2644

View File

@ -457,8 +457,12 @@
node.loaded = false; node.loaded = false;
}, },
checkedNode(data, checked, subChecked) {// checkedNode(data, checked, subChecked) {//
if (data.leaf){ //
return;
}
// //
const that = this; const that = this;
that.loading = true;
const params = { const params = {
url:'jd', url:'jd',
data:{ data:{
@ -550,7 +554,8 @@
} }
}) })
that.checkAllProcess = num == that.teamPermFileSize; that.checkAllProcess = num == that.teamPermFileSize;
that.loading = false;
console.log('计算全选按钮', that.teamPermFileSize, '实际勾选', num);
}).catch(error=>{ }).catch(error=>{
console.log(error); console.log(error);
}) })
@ -645,6 +650,7 @@
checkAllProcessChange(value){ checkAllProcessChange(value){
const that = this; const that = this;
that.loading = true;
if (value){// if (value){//
const params = { const params = {
url:'jd', url:'jd',
@ -666,6 +672,8 @@
} }
} }
that.$refs.tree.setCheckedKeys(checkedVerIds); that.$refs.tree.setCheckedKeys(checkedVerIds);
that.loading = false;
}).catch(error=>{ }).catch(error=>{
console.log(error); console.log(error);
}) })