From edf4aaad4ac9b2cbe228d4bbef90f5b747064843 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 18 Jan 2023 13:46:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=BF=87=E6=BB=A4=E5=99=A8):=20=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E5=99=A8=E4=B8=8E=E6=9F=A5=E8=AF=A2=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E9=97=AE=E9=A2=98-issues-4379?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/customComponent/UserView.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {