From a01d6f8dfd292d238b6a0470e83243b1ecd8d2f9 Mon Sep 17 00:00:00 2001 From: qianming Date: Tue, 7 Jun 2022 10:43:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=BA=BF=E5=9B=BE=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designer/widget/map/widgetLineMap.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/report-ui/src/views/bigscreenDesigner/designer/widget/map/widgetLineMap.vue b/report-ui/src/views/bigscreenDesigner/designer/widget/map/widgetLineMap.vue index 87b99bf5..0eea8b8b 100644 --- a/report-ui/src/views/bigscreenDesigner/designer/widget/map/widgetLineMap.vue +++ b/report-ui/src/views/bigscreenDesigner/designer/widget/map/widgetLineMap.vue @@ -478,11 +478,10 @@ export default { }, staticDataFn(val) { const series = this.options.series; - const optionsSetup = this.optionsSetup; series[0]["data"] = this.convertData(val); series[1]["data"] = this.convertData(val); series[2]["data"] = val.map(function (dataItem) { - if (geoCoordMap[dataItem.source]) { + if (geoCoordMap[dataItem.source] && geoCoordMap[dataItem.target]) { return { name: dataItem.source, value: geoCoordMap[dataItem.source].concat([dataItem.value]) @@ -490,7 +489,7 @@ export default { } }); series[3]["data"] = val.map(function (dataItem) { - if (geoCoordMap[dataItem.target]) { + if (geoCoordMap[dataItem.source] && geoCoordMap[dataItem.target]) { return { name: dataItem.target, value: geoCoordMap[dataItem.target].concat([dataItem.value]) @@ -520,7 +519,7 @@ export default { series[0]["data"] = this.convertData(val); series[1]["data"] = this.convertData(val); series[2]["data"] = val.map(function (dataItem) { - if (geoCoordMap[dataItem.source]) { + if (geoCoordMap[dataItem.source] && geoCoordMap[dataItem.target]) { return { name: dataItem.source, value: geoCoordMap[dataItem.source].concat([dataItem.value]) @@ -528,7 +527,7 @@ export default { } }); series[3]["data"] = val.map(function (dataItem) { - if (geoCoordMap[dataItem.target]) { + if (geoCoordMap[dataItem.source] && geoCoordMap[dataItem.target]) { return { name: dataItem.target, value: geoCoordMap[dataItem.target].concat([dataItem.value])