From 90381ffa4f913b59a9ac92e5224787d8c563211c Mon Sep 17 00:00:00 2001 From: qianming Date: Fri, 20 May 2022 11:29:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0--=E4=B8=AD=E5=9B=BD=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E8=B7=AF=E7=BA=BF=E5=9B=BE=E5=8A=A8=E6=80=81=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designer/tools/configure/widget-map.js | 4 ++-- .../bigscreenDesigner/designer/widget/widgetMap.vue | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/report-ui/src/views/bigscreenDesigner/designer/tools/configure/widget-map.js b/report-ui/src/views/bigscreenDesigner/designer/tools/configure/widget-map.js index 05f80887..7224046e 100644 --- a/report-ui/src/views/bigscreenDesigner/designer/tools/configure/widget-map.js +++ b/report-ui/src/views/bigscreenDesigner/designer/tools/configure/widget-map.js @@ -210,8 +210,8 @@ export const widgetMap = { required: false, placeholder: '', relactiveDom: 'dataType', - chartType: 'widget-piechart', - dictKey: 'MAP_PROPERTIES', + chartType: 'widget-mapline', + dictKey: 'SOUTAR_PROPERTIES', relactiveDomValue: 'dynamicData', value: '', }, diff --git a/report-ui/src/views/bigscreenDesigner/designer/widget/widgetMap.vue b/report-ui/src/views/bigscreenDesigner/designer/widget/widgetMap.vue index 74fd02f8..59d4ec16 100644 --- a/report-ui/src/views/bigscreenDesigner/designer/widget/widgetMap.vue +++ b/report-ui/src/views/bigscreenDesigner/designer/widget/widgetMap.vue @@ -418,6 +418,15 @@ export default { }); }, renderingFn(val) { + const series = this.options.series; + series[0]["data"] = this.convertData(val) + series[1]["data"] = this.convertData(val) + series[2]["data"] = val.map(function (dataItem) { + return { + name: dataItem.target, + value: geoCoordMap[dataItem.target].concat([dataItem.value]) + } + }); } } };