Revert "fix(仪表板): 修复画布中存在查询按钮时,设置联动初次查询时没有带过滤条件问题 #7061"

This reverts commit 363a31dcfc.
This commit is contained in:
fit2cloud-chenyw 2023-12-25 15:01:37 +08:00
parent 55008d0714
commit 178476016a

View File

@ -367,9 +367,7 @@ export default {
show: 0
},
view: {},
cancelTime: null,
// true
searchButtonReady: true
cancelTime: null
}
},
@ -424,7 +422,7 @@ export default {
},
filter() {
const filter = {}
filter.filter = (this.initLoad && this.cfilters?.length === 0) || !this.searchButtonReady ? this.filters : this.cfilters
filter.filter = this.initLoad && this.cfilters?.length === 0 ? this.filters : this.cfilters
filter.linkageFilters = this.element.linkageFilters
filter.outerParamsFilters = this.element.outerParamsFilters
filter.drill = this.drillClickDimensionList
@ -587,13 +585,7 @@ export default {
},
mounted() {
bus.$on('tab-canvas-change', this.tabSwitch)
bus.$on('trigger-search-button', this.triggerSearchButton)
this.bindPluginEvent()
this.$nextTick(() => {
if (this.filters && this.filters.length > 0) {
this.searchButtonReady = false
}
})
},
beforeDestroy() {
@ -632,9 +624,6 @@ export default {
}
},
methods: {
triggerSearchButton() {
this.searchButtonReady = true
},
groupFilter(filters) {
const result = {
ready: [],