|
|
@ -98,11 +98,11 @@ export default { |
|
|
|
name: "非机预警", |
|
|
|
percent: 0.1, |
|
|
|
}, |
|
|
|
{ |
|
|
|
average: 0, |
|
|
|
name: "气象监测器", |
|
|
|
percent: 0.1, |
|
|
|
}, |
|
|
|
// { |
|
|
|
// average: 0, |
|
|
|
// name: "气象监测器", |
|
|
|
// percent: 0.1, |
|
|
|
// }, |
|
|
|
]; |
|
|
|
data.forEach((it) => { |
|
|
|
if (it.warningSource == 1) { |
|
|
@ -123,9 +123,9 @@ export default { |
|
|
|
if (it.warningSource == 6) { |
|
|
|
chartData[5].average += it.number; |
|
|
|
} |
|
|
|
if (it.warningSource == 7) { |
|
|
|
chartData[6].average += it.number; |
|
|
|
} |
|
|
|
// if (it.warningSource == 7) { |
|
|
|
// chartData[6].average += it.number; |
|
|
|
// } |
|
|
|
// total ++; |
|
|
|
// drawRoundRect(context, 231, 37 + (index * 27), 138, 20, 12, gr); |
|
|
|
}); |
|
|
@ -223,7 +223,7 @@ export default { |
|
|
|
drawRoundRect(context, 202, 80, 280, 20, 10, gr); |
|
|
|
drawRoundRect(context, 202, 104, 280, 20, 10, gr); |
|
|
|
drawRoundRect(context, 202, 128, 280, 20, 10, gr); |
|
|
|
drawRoundRect(context, 202, 152, 280, 20, 10, gr); |
|
|
|
// drawRoundRect(context, 202, 152, 280, 20, 10, gr); |
|
|
|
|
|
|
|
this.myChart = myChart; |
|
|
|
}); |
|
|
|