气象设备管理历史记录排序bug

liujun-2024-06-13-一公司人员定位新需求^2
water_xu 2024-06-27 14:06:08 +08:00
parent 101d0fac70
commit 6561b6af7d
1 changed files with 4 additions and 1 deletions

View File

@ -290,7 +290,7 @@ export default {
}
).then((data) => {
this.listLoading = false
this.varList = data.varList.reverse()
this.varList = data.varList
this.temperature = []
this.winddirection = []
this.windspeed = []
@ -299,6 +299,9 @@ export default {
this.winddirection.push([this.varList[i].OPERATTIME, this.varList[i].WINDDIRECTION])
this.windspeed.push([this.varList[i].OPERATTIME, this.varList[i].WINDSPEED])
}
this.temperature.reverse()
this.winddirection.reverse()
this.windspeed.reverse()
this.initCharts1(this.temperature, this.winddirection, this.windspeed)
this.initCharts2(this.temperature, this.winddirection, this.windspeed)
this.initCharts3(this.temperature, this.winddirection, this.windspeed)