Merge pull request 'projects/mesxc-zhp' (#316) from projects/mesxc-zhp into projects/mesxc-test

Reviewed-on: #316
This commit is contained in:
朱菊兰 2024-04-08 16:37:26 +08:00
commit 44e7e219a4

View File

@ -226,8 +226,8 @@ export default {
obj.name = i obj.name = i
obj.data = dataArr obj.data = dataArr
mapLegendData.push(i) mapLegendData.push(i)
mapArr.push(obj)
} }
mapArr.push(obj)
console.log(mapArr); console.log(mapArr);
// console.log(res.data[res]); // console.log(res.data[res]);
var chartDom = this.activeName === 'day' ? document.getElementById('mapDayMain') : this.activeName === 'week' ? document.getElementById('mapWeekMain') : document.getElementById('mapMonthMain') var chartDom = this.activeName === 'day' ? document.getElementById('mapDayMain') : this.activeName === 'week' ? document.getElementById('mapWeekMain') : document.getElementById('mapMonthMain')
@ -269,6 +269,7 @@ export default {
}, },
series: mapArr series: mapArr
} }
myChart.clear()
option && myChart.setOption(option); option && myChart.setOption(option);
}) })
this.$axios({ this.$axios({
@ -376,6 +377,7 @@ export default {
} }
] ]
} }
myChart.clear()
option && myChart.setOption(option); option && myChart.setOption(option);
}) })
}, },