diff --git a/frontend/src/components/canvas/customComponent/UserView.vue b/frontend/src/components/canvas/customComponent/UserView.vue index 63fea5b87e..ea90bbee57 100644 --- a/frontend/src/components/canvas/customComponent/UserView.vue +++ b/frontend/src/components/canvas/customComponent/UserView.vue @@ -66,7 +66,7 @@ :terminal-type="scaleCoefficientType" :scale="scale" :theme-style="element.commonBackground" - :active="this.active" + :active="active" @onChartClick="chartClick" @onJumpClick="jumpClick" /> @@ -762,6 +762,9 @@ export default { 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 => { // 将视图传入echart组件 if (response.success) {