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

qianming 3 years ago
parent ff7d414a2f
commit 90381ffa4f

@ -210,8 +210,8 @@ export const widgetMap = {
required: false, required: false,
placeholder: '', placeholder: '',
relactiveDom: 'dataType', relactiveDom: 'dataType',
chartType: 'widget-piechart', chartType: 'widget-mapline',
dictKey: 'MAP_PROPERTIES', dictKey: 'SOUTAR_PROPERTIES',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
value: '', value: '',
}, },

@ -418,6 +418,15 @@ export default {
}); });
}, },
renderingFn(val) { 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