Merge pull request #4401 from dataease/pr@dev@fix_filter_button

fix(过滤器): 过滤器与查询按钮匹配问题-issues-4379
This commit is contained in:
fit2cloud-chenyw 2023-01-18 13:48:09 +08:00 committed by GitHub
commit 8c93652074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@
:terminal-type="scaleCoefficientType" :terminal-type="scaleCoefficientType"
:scale="scale" :scale="scale"
:theme-style="element.commonBackground" :theme-style="element.commonBackground"
:active="this.active" :active="active"
@onChartClick="chartClick" @onChartClick="chartClick"
@onJumpClick="jumpClick" @onJumpClick="jumpClick"
/> />
@ -762,6 +762,9 @@ export default {
requestInfo.pageSize = this.currentPage.pageSize requestInfo.pageSize = this.currentPage.pageSize
} }
} }
if (this.isFirstLoad) {
this.element.filters = this.filters?.length ? JSON.parse(JSON.stringify(this.filters)) : []
}
method(id, this.panelInfo.id, requestInfo).then(response => { method(id, this.panelInfo.id, requestInfo).then(response => {
// echart // echart
if (response.success) { if (response.success) {