Browse Source

更改数据

wangqin
zhangzhang 10 months ago
parent
commit
54bf06625b
  1. 22
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/index.vue

22
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/index.vue

@ -113,16 +113,16 @@ export default {
let numData = []
let mileageData = []
res.data.forEach(item => {
sectionNameData.push(item.section_name)
avgNumData.push(item.avgNum)
lastNumData.push(item.lastNum)
numData.push(item.num)
mileageData.push(item.mileage)
sectionNameData.push(item.section_name)
});
chartsStatistics.series[0].data = avgNumData
chartsStatistics.series[1].data = lastNumData
chartsStatistics.series[2].data = numData
chartsStatistics.series[3].data = mileageData
chartsStatistics.series[0].data = numData //
chartsStatistics.series[1].data = avgNumData //
chartsStatistics.series[2].data = lastNumData //
chartsStatistics.series[3].data = mileageData //
chartsStatistics.xAxis.data = sectionNameData
})
},
@ -140,10 +140,10 @@ export default {
avgTimeData.push(item.avgTime)
lastNumData.push(item.lastNum)
eventSubclassData.push(item.eventSubclassName)
chartsStatistics2.series[0].data = numData
chartsStatistics2.series[1].data = lastNumData
chartsStatistics2.series[2].data = avgTimeData
chartsStatistics2.series[3].data = lastAvgTimeData
chartsStatistics2.series[0].data = numData //
chartsStatistics2.series[1].data = lastNumData //
chartsStatistics2.series[2].data = avgTimeData //
chartsStatistics2.series[3].data = lastAvgTimeData //
chartsStatistics2.xAxis.data = eventSubclassData
})
@ -160,8 +160,8 @@ export default {
numData.push(item.num)
avgTimeData.push(item.avgTime)
})
chartsStatistics3.series[0].data = numData
chartsStatistics3.series[1].data = avgTimeData
chartsStatistics3.series[0].data = numData //
chartsStatistics3.series[1].data = avgTimeData //
chartsStatistics3.xAxis.data = typeNameData
})
},

Loading…
Cancel
Save