Compare commits

..

No commits in common. "812b72f10d4484a47294bf411da608da3ce24225" and "58457487d14b51a0f4071f3f4c34693ee99a446f" have entirely different histories.

View File

@ -207,6 +207,8 @@ export default {
}).then((res) => {
let mapArr= []
let mapLegendData = []
// let mapXAxisData = []
for (let i in res.data) {
let obj = {
name: '',
type: 'line',
@ -214,9 +216,6 @@ export default {
data: [],
mapXAxisData:[],
}
// let mapXAxisData = []
for (let i in res.data) {
// console.log(i)
let dataArr = []
res.data[i].forEach(ele => {
@ -226,9 +225,8 @@ export default {
obj.name = i
obj.data = dataArr
mapLegendData.push(i)
}
mapArr.push(obj)
console.log(mapArr);
}
// console.log(res.data[res]);
var chartDom = this.activeName === 'day' ? document.getElementById('mapDayMain') : this.activeName === 'week' ? document.getElementById('mapWeekMain') : document.getElementById('mapMonthMain')
var myChart = echarts.init(chartDom);