BUG 30094
This commit is contained in:
@@ -43,7 +43,12 @@
|
|||||||
<el-tree :data="treeObj.treeList" :props="treeObj.defaultProps" node-key="id" ref="tree"
|
<el-tree :data="treeObj.treeList" :props="treeObj.defaultProps" node-key="id" ref="tree"
|
||||||
:check-strictly="true" show-checkbox
|
:check-strictly="true" show-checkbox
|
||||||
:default-checked-keys="treeObj.checkedKeys" default-expand-all
|
: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>
|
</el-tree>
|
||||||
</div>
|
</div>
|
||||||
<div class="dialog-footer" slot="footer">
|
<div class="dialog-footer" slot="footer">
|
||||||
@@ -131,7 +136,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onCheckChange (e) {
|
onCheckChange(e) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.tree.getCheckedKeys().forEach(v => {
|
this.$refs.tree.getCheckedKeys().forEach(v => {
|
||||||
this.$refs.tree.setChecked(v, false)
|
this.$refs.tree.setChecked(v, false)
|
||||||
@@ -140,7 +145,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
format (list) {
|
format(list) {
|
||||||
return list.map(item => {
|
return list.map(item => {
|
||||||
if (item.girdList && item.girdList.length) {
|
if (item.girdList && item.girdList.length) {
|
||||||
item.girdList = this.format(item.girdList)
|
item.girdList = this.format(item.girdList)
|
||||||
|
|||||||
Reference in New Issue
Block a user