From 2a71b55c7d98be1cca26bdb789934e33897d4359 Mon Sep 17 00:00:00 2001 From: ulleo Date: Tue, 24 Dec 2024 17:57:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E4=B8=8B=E9=92=BB=E5=90=8E=EF=BC=8C=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=94=BE=E5=A4=A7=E6=8C=89=E9=92=AE=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E5=9C=B0=E5=9B=BE=E9=97=AE=E9=A2=98=20#11208?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/views/components/ChartComponentG2Plot.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue b/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue index dfbc90b8a8..412f727d58 100644 --- a/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue +++ b/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue @@ -205,6 +205,11 @@ const calcData = async (view, callback) => { dynamicAreaId.value = extra?.adcode + '' scope = extra?.scope // 地图 + const map = parseJson(view.customAttr)?.map + if (map) { + let areaId = map.id + country.value = areaId.slice(0, 3) + } if (!dynamicAreaId.value?.startsWith(country.value)) { if (country.value === 'cus') { dynamicAreaId.value = '156' + dynamicAreaId.value @@ -486,7 +491,6 @@ const trackClick = trackAction => { dimensionList: state.pointParam.data.dimensionList, quotaList: quotaList } - switch (trackAction) { case 'pointClick': emit('onPointClick', clickParams)