角色管理的全选按钮组调整

This commit is contained in:
anhc 2022-07-28 15:41:11 +08:00
parent 00bb65c278
commit f80513ac9c

View File

@ -73,7 +73,7 @@
<span v-if="node.level > 1" class="action-checkBox" style="flex: 1;text-align: right" @click="handleCheckedActionChange(node)">
<el-checkbox-group v-model="node.data.dataActionPerm">
<el-checkbox v-for="dataAction in node.data.dataActionPermOpts" :label="dataAction.label" :key="dataAction.label"
@change="checkBoxChangeHandle(node.data,dataAction)" >{{dataAction.value}}</el-checkbox>
:disabled="!node.checked" @change="checkBoxChangeHandle(node.data,dataAction)" >{{dataAction.value}}</el-checkbox>
</el-checkbox-group>
</span>
</span>
@ -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')
}