This commit is contained in:
yanran200730
2022-05-06 17:47:41 +08:00
parent a0cc85027c
commit c1010119aa

View File

@@ -7,18 +7,16 @@
<template slot="left"> <template slot="left">
<ai-tree-menu title="网格层级" @search="v=> $refs.tree.filter(v)"> <ai-tree-menu title="网格层级" @search="v=> $refs.tree.filter(v)">
<el-tree <el-tree
:data="treeObj.treeList" :data="treeObj.treeList"
:props="treeObj.defaultProps" :props="treeObj.defaultProps"
@node-click="handleNodeClick" @node-click="handleNodeClick"
node-key="id" node-key="id"
ref="tree" ref="tree"
:filter-node-method="filterNode" :filter-node-method="filterNode"
default-expand-all default-expand-all
highlight-current> highlight-current>
<template slot-scope="{node,data}"> <template slot-scope="{node,data}">
<el-tooltip placement="right" :content="node.label"> <div v-text="node.label"/>
<div v-text="node.label"/>
</el-tooltip>
</template> </template>
</el-tree> </el-tree>
</ai-tree-menu> </ai-tree-menu>
@@ -321,6 +319,7 @@ export default {
this.$message.success("删除成功!"); this.$message.success("删除成功!");
this.getList(); this.getList();
this.getTreeList();
} }
}); });
}) })
@@ -606,6 +605,7 @@ export default {
} }
.is-current > .el-tree-node__content { .is-current > .el-tree-node__content {
color: #fff!important;
&:hover { &:hover {
background: #2266FF; background: #2266FF;
color: #fff; color: #fff;