角色管理的全选按钮组调整
This commit is contained in:
parent
00bb65c278
commit
f80513ac9c
@ -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')
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user