优化组件

This commit is contained in:
吕金泽 2022-01-21 22:39:52 +08:00
parent 7b230b4ec1
commit 1efda8e2e7
2 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,7 @@ export default {
this.listConcat(this.handlerData(this.data))
} else if (this.url) {
this.$get(this.url, this.params).then(res => {
this.listConcat(this.handlerData(res.data))
this.listConcat(this.handlerData(res.data.list))
})
} else {
this.listConcat(this.$common.getDictType(this.type))

View File

@ -1,10 +1,10 @@
<template>
<div>
<div>
<div style="margin-bottom: 5px;" v-if="expand || checked">
<el-button v-if="expand" type="primary" size="mini" icon="el-icon-sort" plain @click="doExpand">展开/折叠</el-button>
<el-button v-if="checked" type="primary" size="mini" icon="el-icon-check" plain @click="() => { treeAllChecked = !treeAllChecked; checkedAll(searchData, treeAllChecked) }">全选/全不选</el-button>
</div>
<div style="margin: 5px 0px;" v-if="search">
<div style="margin-bottom: 5px;" v-if="search">
<el-input v-model="searchValue" placeholder="输入关键字进行过滤" @input="searchTree" :style="{ width: searchWidth }" />
</div>
<el-tree