【修改】修改左侧树
This commit is contained in:
@@ -159,13 +159,13 @@
|
||||
<el-dialog title="标签维护" :visible.sync="dialogTags" width="30%" :close-on-click-modal="false" class="dialog-tags"
|
||||
:close-on-press-escape="false" modal-append-to-body append-to-body :before-close="handleTagsClose">
|
||||
<div class="head">
|
||||
<el-input placeholder="输入关键字进行过滤" v-model="filterText">
|
||||
<el-input placeholder="输入关键字进行过滤" v-model="filterText2">
|
||||
</el-input>
|
||||
<el-button type="primary" class="btn" @click="add">新增</el-button>
|
||||
</div>
|
||||
<el-scrollbar wrap-class="scroll-wrap" view-class="scroll-view">
|
||||
<div class="tree">
|
||||
<el-tree class="filter-tree" :data="treeData" default-expand-all :filter-node-method="filterNode" ref="tree">
|
||||
<el-tree class="filter-tree" :data="treeData" default-expand-all :filter-node-method="filterNode" ref="tree2">
|
||||
<span class="custom-tree-node" slot-scope="{ node,data}">
|
||||
<!-- <span v-if="node.label.length <= 10">{{ node.label }}</span>-->
|
||||
<!-- <el-tooltip v-else :content="node.label" placement="top">-->
|
||||
@@ -333,6 +333,7 @@ export default {
|
||||
treeData: [
|
||||
],
|
||||
filterText:'',
|
||||
filterText2:'',
|
||||
checkedKeys:[],
|
||||
privacyLevelOptions:[
|
||||
{
|
||||
@@ -464,7 +465,10 @@ export default {
|
||||
watch: {
|
||||
filterText(val) {
|
||||
this.$refs.tree.filter(val);
|
||||
}
|
||||
},
|
||||
filterText2(val) {
|
||||
this.$refs.tree2.filter(val);
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user