From f9686d630f12cb03125def7fd97022bbd547f3a7 Mon Sep 17 00:00:00 2001 From: ulleo Date: Tue, 30 Jan 2024 14:44:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E5=8C=BA?= =?UTF-8?q?=E9=97=B4=E6=9D=A1=E5=BD=A2=E5=9B=BE=E6=97=A0=E6=B3=95=E8=A2=AB?= =?UTF-8?q?=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 区间条形图的区间范围字段不应该加入联动 --- .../canvas/components/editor/LinkageField.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/core/frontend/src/components/canvas/components/editor/LinkageField.vue b/core/frontend/src/components/canvas/components/editor/LinkageField.vue index d70fdc6bbe..0dc4dc7b73 100644 --- a/core/frontend/src/components/canvas/components/editor/LinkageField.vue +++ b/core/frontend/src/components/canvas/components/editor/LinkageField.vue @@ -184,10 +184,15 @@ export default { // 初始化映射关系 如果当前是相同的数据集且没有关联关系,则自动补充映射关系 checkSameDataSet(this.curLinkageView.propValue.viewId, this.element.propValue.viewId).then(res => { const chartDetails = JSON.parse(this.panelViewDetailsInfo[this.curLinkageView.propValue.viewId]) - const curCheckAllAxisStr = chartDetails.xaxis + chartDetails.xaxisExt + chartDetails.yaxis + chartDetails.yaxisExt + let curCheckAllAxisStr = chartDetails.xaxis + chartDetails.xaxisExt + chartDetails.yaxis + chartDetails.yaxisExt + if (chartDetails.type === 'bar-time-range') { + curCheckAllAxisStr = chartDetails.xaxis + chartDetails.yaxis + chartDetails.yaxisExt + } const targetChartDetails = JSON.parse(this.panelViewDetailsInfo[this.element.propValue.viewId]) - const targetCheckAllAxisStr = targetChartDetails.xaxis + targetChartDetails.xaxisExt + targetChartDetails.yaxis + targetChartDetails.yaxisExt - + let targetCheckAllAxisStr = targetChartDetails.xaxis + targetChartDetails.xaxisExt + targetChartDetails.yaxis + targetChartDetails.yaxisExt + if (targetChartDetails.type === 'bar-time-range') { + targetCheckAllAxisStr = targetChartDetails.xaxis + targetChartDetails.yaxis + targetChartDetails.yaxisExt + } if (res.data === 'YES' && this.linkageInfo.linkageFields.length === 0) { this.sourceLinkageInfo.targetViewFields.forEach(item => { if (curCheckAllAxisStr.includes(item.id) && targetCheckAllAxisStr.includes(item.id)) {