|
|
@ -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 |
|
|
|
}) |
|
|
|
}, |
|
|
|