| | |
| | | <el-row style="display: flex; width: 1300px"> |
| | | <el-col> |
| | | <div style="text-align: center; margin-bottom: 10px; margin-top: 10px">项目列表</div> |
| | | <el-input placeholder="输入关键字进行过滤" v-model="filterText" @input="debounceFilter" clearable /> |
| | | <el-input placeholder="输入关键字进行过滤" v-model="queryParams1.nr" @input="handleFilterInput" clearable /> |
| | | <div class="tab3" style="height: 365px"> |
| | | <el-tree |
| | | class="filter-tree" |
| | |
| | | this.getCategory(); |
| | | }, |
| | | methods: { |
| | | debounceFilter() { |
| | | clearTimeout(this.debounceTimer); |
| | | this.debounceTimer = setTimeout(() => { |
| | | this.filterTree(); |
| | | }, 600); |
| | | handleFilterInput() { |
| | | this.queryParams1.page = 1; |
| | | this.getDataList(); |
| | | this.$nextTick(() => { |
| | | this.$refs.tree.setCheckedKeys(this.checkedNodes); |
| | | }); |
| | | }, |
| | | filterTree() { |
| | | if (!this.filterText) { |