|
@@ -82,6 +82,8 @@ export default {
|
|
|
}
|
|
|
const result = await emergency(params)
|
|
|
const resultcopy = await emergency(paramspoy)
|
|
|
+ result.data.sort(this.up)
|
|
|
+ resultcopy.data.sort(this.up)
|
|
|
if (result.status == 200) {
|
|
|
let arr = [] //高风险
|
|
|
let Low = [] //低风险
|
|
@@ -151,6 +153,7 @@ export default {
|
|
|
datas[i] = Number(arr[i]) + Number(Low[i]) + Number(firs[i]) + Number(pt[i])
|
|
|
}
|
|
|
// console.log(datas)
|
|
|
+
|
|
|
this.inits(arr, arrx, Low, firs, pt, datas)
|
|
|
}
|
|
|
// console.log(result)
|
|
@@ -158,6 +161,9 @@ export default {
|
|
|
console.log(error)
|
|
|
}
|
|
|
},
|
|
|
+ up(x, y) {
|
|
|
+ return Date.parse(x.date)- Date.parse(y.date)
|
|
|
+ },
|
|
|
//月
|
|
|
init(arr, arrx, Low, firs, pt, datas) {
|
|
|
let myChart = this.$echarts.init(document.getElementById('comprehensive-month')) //统计折线
|