From 0ec4224642efef6dd1b7b4cdc423f01727c39d2f Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Tue, 31 Oct 2023 12:00:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AD=90=E7=BB=B4=E5=BA=A6=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC#5739?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/canvas/customComponent/UserView.vue | 6 ++++++ .../src/views/chart/components/ChartComponentG2.vue | 11 ++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/core/frontend/src/components/canvas/customComponent/UserView.vue b/core/frontend/src/components/canvas/customComponent/UserView.vue index ae6d11799b..912fe84097 100644 --- a/core/frontend/src/components/canvas/customComponent/UserView.vue +++ b/core/frontend/src/components/canvas/customComponent/UserView.vue @@ -1007,6 +1007,12 @@ export default { sourceInfo = param.viewId + '#' + dimension.id jumpInfo = this.nowPanelJumpInfo[sourceInfo] } + // 没有主维度,子维度相等 + if (!jumpInfo && dimensionItem.value === param.category) { + dimension = dimensionItem + sourceInfo = param.viewId + '#' + dimension.id + jumpInfo = this.nowPanelJumpInfo[sourceInfo] + } }) } else { for (let i = param.dimensionList.length - 1; i >= 0; i--) { diff --git a/core/frontend/src/views/chart/components/ChartComponentG2.vue b/core/frontend/src/views/chart/components/ChartComponentG2.vue index 1ae307cfba..55cf385ce7 100644 --- a/core/frontend/src/views/chart/components/ChartComponentG2.vue +++ b/core/frontend/src/views/chart/components/ChartComponentG2.vue @@ -355,7 +355,8 @@ export default { } this.linkageActiveParam = { category: this.pointParam.data.category ? this.pointParam.data.category : 'NO_DATA', - name: this.pointParam.data.name ? this.pointParam.data.name : 'NO_DATA' + name: this.pointParam.data.name ? this.pointParam.data.name : 'NO_DATA', + group: this.pointParam.data.group ? this.pointParam.data.group : 'NO_DATA' } if (this.trackMenu.length < 2) { // 只有一个事件直接调用 this.trackClick(this.trackMenu[0]) @@ -392,14 +393,18 @@ export default { name: this.pointParam.data.name, viewId: this.chart.id, dimensionList: this.pointParam.data.dimensionList, - quotaList: quotaList + quotaList: quotaList, + category: this.pointParam.data.category, + group: this.pointParam.data.group } const jumpParam = { option: 'jump', name: this.pointParam.data.name, viewId: this.chart.id, dimensionList: this.pointParam.data.dimensionList, - quotaList: quotaList + quotaList: quotaList, + category: this.pointParam.data.category, + group: this.pointParam.data.group } switch (trackAction) {