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)