添加'过滤器'按钮,控制过滤选项按钮组的显示

This commit is contained in:
haiyangcui
2020-12-07 16:47:45 +01:00
parent 0243c2f0fe
commit 8d002225fd
2 changed files with 10 additions and 2 deletions

View File

@@ -195,7 +195,13 @@
}
}
.toolbar{
display: flex;
align-items: center;
justify-content: flex-end;
z-index: 5;
.el-select {
padding-right: 20px;
}
}
.listpage-body{
height: calc(100% - 60px);

View File

@@ -47,8 +47,9 @@
<!--方便触屏-->
<el-button icon="el-icon-search" @click.stop="searchEvent" slot="append" />
</el-autocomplete>
<el-switch v-model="showFilterOptions" active-text="过滤器"></el-switch>
</div>
<div class="toolbar" v-if="!show.find">
<div class="toolbar" v-if="!show.find && showFilterOptions">
<el-select v-model="selectedAreas" size="small" multiple collapse-tags placeholder="地区" popper-class="popper" :popper-append-to-body="false" @change="refreshFilteredList">
<el-option
v-for="item in areas"
@@ -340,7 +341,8 @@ export default {
selectedAreas: [],
langs: [],
selectedLangs: [],
selectedYears: { start: 0, end: new Date().getFullYear() }
selectedYears: { start: 0, end: new Date().getFullYear() },
showFilterOptions: false
}
},
components: {