From 102d0f96eade7efd1c17e4b75a8b3d7cf0c72893 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Wed, 31 Jan 2024 17:21:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E6=B8=85=E9=99=A4=E8=81=94=E5=8A=A8=E5=90=8E?= =?UTF-8?q?=E6=9C=AA=E6=B8=85=E9=99=A4=E9=AB=98=E4=BA=AE=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/canvas/customComponent/UserView.vue | 3 +-- .../frontend/src/views/chart/components/ChartComponentG2.vue | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/frontend/src/components/canvas/customComponent/UserView.vue b/core/frontend/src/components/canvas/customComponent/UserView.vue index 815034c764..c0ddd49f96 100644 --- a/core/frontend/src/components/canvas/customComponent/UserView.vue +++ b/core/frontend/src/components/canvas/customComponent/UserView.vue @@ -852,10 +852,9 @@ export default { param.viewId && param.viewId === this.element.propValue.viewId && this.getDataEdit(param) }, clearPanelLinkage(param) { - console.log('clear linkage') if (param.viewId === 'all' || param.viewId === this.element.propValue.viewId) { try { - // do nothing + this.$refs[this.element.propValue.id]?.clearLinkage?.() } catch (e) { console.error('reDrawView-error:', this.element.propValue.id) } diff --git a/core/frontend/src/views/chart/components/ChartComponentG2.vue b/core/frontend/src/views/chart/components/ChartComponentG2.vue index 0c8ee39698..3cfc23bd60 100644 --- a/core/frontend/src/views/chart/components/ChartComponentG2.vue +++ b/core/frontend/src/views/chart/components/ChartComponentG2.vue @@ -224,6 +224,11 @@ export default { } }) }, + clearLinkage() { + this.linkageActiveHistory = false + this.myChart?.setState('active', () => true, false) + this.myChart?.setState('inactive', () => true, false) + }, checkSelected(param) { return (this.linkageActiveParam.name === param.name || (this.linkageActiveParam.name === 'NO_DATA' && !param.name)) && (this.linkageActiveParam.category === param.category)