BUG 30094

This commit is contained in:
aixianling
2022-06-08 10:06:18 +08:00
parent e20e479697
commit c9dc8940ed

View File

@@ -43,7 +43,12 @@
<el-tree :data="treeObj.treeList" :props="treeObj.defaultProps" node-key="id" ref="tree"
:check-strictly="true" show-checkbox
:default-checked-keys="treeObj.checkedKeys" default-expand-all
@check="onCheckChange">
@check="onCheckChange">
<template slot-scope="{node,data}">
<el-tooltip :content="node.label">
<div class="el-tree-node__label" v-text="node.label"/>
</el-tooltip>
</template>
</el-tree>
</div>
<div class="dialog-footer" slot="footer">
@@ -131,7 +136,7 @@ export default {
});
},
onCheckChange (e) {
onCheckChange(e) {
this.$nextTick(() => {
this.$refs.tree.getCheckedKeys().forEach(v => {
this.$refs.tree.setChecked(v, false)
@@ -140,7 +145,7 @@ export default {
})
},
format (list) {
format(list) {
return list.map(item => {
if (item.girdList && item.girdList.length) {
item.girdList = this.format(item.girdList)