From f33c156c16b21334535e4a814deccc748f3272df Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 1 Nov 2022 14:58:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20=E5=BD=93=E5=A0=86?= =?UTF-8?q?=E5=8F=A0=E5=9B=BE=E6=9C=89=E5=A0=86=E5=8F=A0=E9=A1=B9=E6=97=B6?= =?UTF-8?q?=E6=8C=87=E6=A0=87=E5=8F=AA=E6=9C=89=E7=AC=AC=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E7=94=9F=E6=95=88=EF=BC=8C=E5=AF=B9=E5=BA=94=E7=9A=84=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E8=AE=BE=E7=BD=AE=E5=A2=9E=E5=8A=A0=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=97=B6=E4=B9=9F=E5=8A=A0=E4=B8=8A=E7=9B=B8=E5=BA=94=E7=9A=84?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/LinkJumpSet/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/panel/LinkJumpSet/index.vue b/frontend/src/views/panel/LinkJumpSet/index.vue index 0ecd09a6e5..b8caf5df85 100644 --- a/frontend/src/views/panel/LinkJumpSet/index.vue +++ b/frontend/src/views/panel/LinkJumpSet/index.vue @@ -503,9 +503,15 @@ export default { methods: { init() { const chartDetails = JSON.parse(this.panelViewDetailsInfo[this.viewId]) - const checkAllAxisStr = chartDetails.xaxis + chartDetails.xaxisExt + chartDetails.yaxis + chartDetails.yaxisExt + chartDetails.drillFields + let checkAllAxisStr = chartDetails.xaxis + chartDetails.xaxisExt + chartDetails.yaxis + chartDetails.yaxisExt + chartDetails.drillFields let checkJumpStr - if (chartDetails.type === 'table-pivot') { + // 堆叠图的可选参数分两种情况 1.如果有堆叠项 则指标只有第一个可选 2.如果没有堆叠项泽所有指标都可以选 + if (chartDetails.type.indexOf('stack') > -1 && chartDetails.extStack.length > 2) { + const yaxisArray = JSON.parse(chartDetails.yaxis) + const yaxisNew = yaxisArray.length > 0 ? JSON.stringify(yaxisArray[0]) : '[]' + checkAllAxisStr = chartDetails.xaxis + chartDetails.xaxisExt + yaxisNew + chartDetails.yaxisExt + chartDetails.drillFields + checkJumpStr = checkAllAxisStr + } else if (chartDetails.type === 'table-pivot') { checkJumpStr = chartDetails.yaxis + chartDetails.yaxisExt + chartDetails.drillFields } else if (chartDetails.type === 'table-info') { checkJumpStr = chartDetails.xaxis + chartDetails.drillFields