From c7fbaae18613d425acd34a766efad340a3dd78f1 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Sun, 29 Jan 2023 14:42:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E7=9B=B8=E4=BA=92=E5=BD=B1=E5=93=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/components/ChartComponent.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/chart/components/ChartComponent.vue b/frontend/src/views/chart/components/ChartComponent.vue index e3f83c8a0e..9d7bbbb614 100644 --- a/frontend/src/views/chart/components/ChartComponent.vue +++ b/frontend/src/views/chart/components/ChartComponent.vue @@ -217,7 +217,6 @@ export default { } }) } - //地图 if (opt.geo) { if (opt.geo instanceof Array) { opt.geo[0].roam = this.active @@ -225,7 +224,6 @@ export default { opt.geo.roam = this.active } } - //矩形树图 if (this.chart.type === 'treemap' && opt.series) { opt.series[0].roam = this.active } @@ -413,8 +411,10 @@ export default { }, initMapChart(geoJson, chart, curAreaCode) { this.formatGeoJson(geoJson) - this.$echarts.registerMap('MAP', geoJson) + const mapId = 'MAP' + this.chartId + this.$echarts.registerMap(mapId, geoJson) const base_json = JSON.parse(JSON.stringify(BASE_MAP)) + base_json.geo.map = mapId let themeStyle = null if (this.themeStyle) { themeStyle = JSON.parse(JSON.stringify(this.themeStyle))