【修改】修改左侧树

This commit is contained in:
zhoulingpo
2023-05-15 14:58:10 +08:00
parent ebfb1204f4
commit 4386ad05fb
3 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -61,8 +61,8 @@
overflow: auto;
width: 100%;
.filter-tree{
width: fit-content;
//width: fit-content;
width: auto;
}
}
+1 -1
View File
@@ -64,7 +64,7 @@
<div class="report-jug-left">
<div>报告评级:</div>
<el-rate allow-half :max="5" v-model="userRating" @click.native="saveScore"></el-rate>
<el-rate allow-half :min="0" :max="5" v-model="userRating" @click.native="saveScore"></el-rate>
</div>
<div class="pointclick">
<svg-icon v-if="!isShow" icon-class="pointe" @click="pointZan('y')" style="font-size: 25px"
+7 -3
View File
@@ -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: {