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

qianming 3 years ago
parent ff7d414a2f
commit 90381ffa4f

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

@ -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])
}
});
}
}
};

Loading…
Cancel
Save