Просмотр исходного кода

更新--中国地图路线图动态数据

qianming 3 лет назад
Родитель
Сommit
90381ffa4f

+ 2 - 2
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: '',
       },

+ 9 - 0
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])
+        }
+      });
     }
   }
 };