|
|
@ -38,7 +38,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
import moment from "moment"; |
|
|
|
import WgtTitle from "@screen/pages/perception/widgets/title"; |
|
|
@ -119,11 +119,6 @@ export default { |
|
|
|
numData.push(item.num) |
|
|
|
mileageData.push(item.mileage) |
|
|
|
}); |
|
|
|
// console.log("sectionNameData", sectionNameData) |
|
|
|
// console.log("avgNumData", avgNumData) |
|
|
|
// console.log("lastNumData", lastNumData) |
|
|
|
// console.log("numData", numData) |
|
|
|
// console.log("mileageData", mileageData) |
|
|
|
|
|
|
|
|
|
|
|
chartsStatistics.series[0].data = avgNumData |
|
|
@ -153,11 +148,6 @@ export default { |
|
|
|
chartsStatistics2.series[3].data = lastAvgTimeData |
|
|
|
chartsStatistics2.xAxis.data = eventSubclassData |
|
|
|
}) |
|
|
|
// console.log("typeNameData", lastAvgTimeData) |
|
|
|
// console.log("numData", numData) |
|
|
|
// console.log("avgTimeData", avgTimeData) |
|
|
|
// console.log("avgTimeData", lastNumData) |
|
|
|
// console.log("eventSubclassData", eventSubclassData) |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
@ -172,9 +162,6 @@ export default { |
|
|
|
numData.push(item.num) |
|
|
|
avgTimeData.push(item.avgTime) |
|
|
|
}) |
|
|
|
// console.log("typeNameData", typeNameData) |
|
|
|
// console.log("numData", numData) |
|
|
|
// console.log("avgTimeData", avgTimeData) |
|
|
|
chartsStatistics3.series[0].data = numData |
|
|
|
chartsStatistics3.series[1].data = avgTimeData |
|
|
|
chartsStatistics3.xAxis.data = typeNameData |
|
|
@ -184,7 +171,7 @@ export default { |
|
|
|
let startTime = ""; |
|
|
|
if (this.type == 3) { |
|
|
|
let year = moment().year(); |
|
|
|
console.log(year, this.quarter); |
|
|
|
// console.log(year, this.quarter); |
|
|
|
if (this.quarter == 1) { |
|
|
|
startTime = `${year}-01-01 00:00:00` |
|
|
|
} else if (this.quarter == 2) { |
|
|
@ -206,7 +193,6 @@ export default { |
|
|
|
formData.append("direction", this.direction); |
|
|
|
formData.append("type", this.type); |
|
|
|
formData.append("startTime", startTime); |
|
|
|
console.log("formData66666", formData) |
|
|
|
await this.getSelectRoadSection(formData) |
|
|
|
await this.getSelectEventType(formData) |
|
|
|
await this.getSelectAccidentVehicle(formData) |
|
|
@ -237,7 +223,7 @@ export default { |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang='scss' scoped> |
|
|
|
.congestion { |
|
|
|
width: 100%; |
|
|
@ -359,4 +345,3 @@ export default { |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|