fix: 修复实体搜索框text模式下点击top后表达式错误的问题、修复分页bug
This commit is contained in:
@@ -256,6 +256,7 @@ export default {
|
||||
],
|
||||
listData: [],
|
||||
q: '',
|
||||
metaList: [],
|
||||
limitFilterType: true, // 是否限定了filter的类型
|
||||
listLoading: false/*,
|
||||
listData: JSON.parse(`[
|
||||
@@ -439,8 +440,10 @@ export default {
|
||||
search (metaList, formatSql) {
|
||||
if (formatSql) {
|
||||
this.q = formatSql
|
||||
this.metaList = metaList
|
||||
} else {
|
||||
this.q = ''
|
||||
this.metaList = []
|
||||
}
|
||||
|
||||
if (!this.showList) {
|
||||
@@ -489,11 +492,11 @@ export default {
|
||||
},
|
||||
pageSize (val) {
|
||||
this.pageObj.pageSize = val
|
||||
this.search()
|
||||
this.search(this.metaList, this.q)
|
||||
},
|
||||
pageNo (val) {
|
||||
this.pageObj.pageNo = val
|
||||
this.search()
|
||||
this.search(this.metaList, this.q)
|
||||
},
|
||||
// 点击上一页箭头
|
||||
prev () {
|
||||
@@ -671,7 +674,7 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
timeFilter (n) {
|
||||
this.search()
|
||||
this.search(this.metaList, this.q)
|
||||
}
|
||||
},
|
||||
setup () {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<div class="search-symbol-inline" v-if="showList">
|
||||
<i class="cn-icon cn-icon-help"></i>
|
||||
</div>
|
||||
<div v-else class="explorer-search__foot">
|
||||
<div v-else class="explorer-search__foot" v-ele-click-outside="esc">
|
||||
<div class="foot__item" @click="triggerHistory">
|
||||
<i class="el-icon-arrow-right" :class="{ 'arrow-rotate': showHistory }" style="padding-right: 5px;"></i>
|
||||
<span>{{$t('search.searchHistory')}}</span>
|
||||
@@ -27,7 +27,7 @@
|
||||
<span>{{$t('overall.help')}}</span>
|
||||
</div>
|
||||
<transition name="el-zoom-in-top">
|
||||
<div class="search__history" v-show="showHistory" v-ele-click-outside="esc">
|
||||
<div class="search__history" v-show="showHistory">
|
||||
<div class="history__items">
|
||||
<div class="history__item" v-for="(h, i) in history" :key="i" @click="selectHistory(h.sql)">
|
||||
<span class="item-date">{{h.date}}</span>
|
||||
|
||||
Reference in New Issue
Block a user