Browse Source

感知事件源

wangqin
zhoule 8 months ago
parent
commit
4b5da470b8
  1. 18
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/index.vue

18
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventSource/index.vue

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

Loading…
Cancel
Save