mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-01-19 03:52:50 +08:00
优化组件
This commit is contained in:
parent
7b230b4ec1
commit
1efda8e2e7
@ -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))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user