NEZ-1319 fix: 切换视图后历史搜索记录不一致的问题
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<div class="top-tool-right" v-if="!customTool">
|
||||
<div v-if="layout.indexOf('searchInput') > -1" class="top-tool-search margin-r-20">
|
||||
<search-input :searchMsg="searchMsg" :position="'bottom' + targetTab + obj.id" @search="search" :targetTab="targetTab"></search-input>
|
||||
<search-input v-if="searchInputShow" :searchMsg="searchMsg" :position="'bottom' + targetTab + obj.id" @search="search" :targetTab="targetTab"></search-input>
|
||||
</div>
|
||||
<slot name="top-tool-right"></slot>
|
||||
<button v-if="layout.indexOf('elementSet') > -1" id="account-column-setting" class="top-tool-btn margin-r-20"
|
||||
@@ -118,6 +118,7 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
fromRoute: fromRoute,
|
||||
searchInputShow: true,
|
||||
tools: {
|
||||
toTopBtnTop: this.$tableHeight.toTopBtnTop, // to-top按钮的top属性
|
||||
tableHover: false, // 控制滚动条和top按钮同时出现
|
||||
@@ -125,6 +126,14 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
obj (n) {
|
||||
this.searchInputShow = false
|
||||
setTimeout(() => {
|
||||
this.searchInputShow = true
|
||||
}, 100)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
updateCustomTableTitle (custom) {
|
||||
this.$emit('update:customTableTitle', custom)
|
||||
|
||||
Reference in New Issue
Block a user