【修改】修改左侧树
This commit is contained in:
@@ -61,8 +61,8 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
.filter-tree{
|
.filter-tree{
|
||||||
width: fit-content;
|
//width: fit-content;
|
||||||
|
width: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
<div class="report-jug-left">
|
<div class="report-jug-left">
|
||||||
<div>报告评级:</div>
|
<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>
|
||||||
<div class="pointclick">
|
<div class="pointclick">
|
||||||
<svg-icon v-if="!isShow" icon-class="pointe" @click="pointZan('y')" style="font-size: 25px"
|
<svg-icon v-if="!isShow" icon-class="pointe" @click="pointZan('y')" style="font-size: 25px"
|
||||||
|
|||||||
@@ -159,13 +159,13 @@
|
|||||||
<el-dialog title="标签维护" :visible.sync="dialogTags" width="30%" :close-on-click-modal="false" class="dialog-tags"
|
<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">
|
:close-on-press-escape="false" modal-append-to-body append-to-body :before-close="handleTagsClose">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<el-input placeholder="输入关键字进行过滤" v-model="filterText">
|
<el-input placeholder="输入关键字进行过滤" v-model="filterText2">
|
||||||
</el-input>
|
</el-input>
|
||||||
<el-button type="primary" class="btn" @click="add">新增</el-button>
|
<el-button type="primary" class="btn" @click="add">新增</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-scrollbar wrap-class="scroll-wrap" view-class="scroll-view">
|
<el-scrollbar wrap-class="scroll-wrap" view-class="scroll-view">
|
||||||
<div class="tree">
|
<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 class="custom-tree-node" slot-scope="{ node,data}">
|
||||||
<!-- <span v-if="node.label.length <= 10">{{ node.label }}</span>-->
|
<!-- <span v-if="node.label.length <= 10">{{ node.label }}</span>-->
|
||||||
<!-- <el-tooltip v-else :content="node.label" placement="top">-->
|
<!-- <el-tooltip v-else :content="node.label" placement="top">-->
|
||||||
@@ -333,6 +333,7 @@ export default {
|
|||||||
treeData: [
|
treeData: [
|
||||||
],
|
],
|
||||||
filterText:'',
|
filterText:'',
|
||||||
|
filterText2:'',
|
||||||
checkedKeys:[],
|
checkedKeys:[],
|
||||||
privacyLevelOptions:[
|
privacyLevelOptions:[
|
||||||
{
|
{
|
||||||
@@ -464,7 +465,10 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
filterText(val) {
|
filterText(val) {
|
||||||
this.$refs.tree.filter(val);
|
this.$refs.tree.filter(val);
|
||||||
}
|
},
|
||||||
|
filterText2(val) {
|
||||||
|
this.$refs.tree2.filter(val);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user