Browse Source

预警事件

wangqin
Joe 10 months ago
parent
commit
7d7a27a65e
  1. 34
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/ConditionStatistics/index.vue

34
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/ConditionStatistics/index.vue

@ -8,16 +8,16 @@
<div class="box-title"><span>预警事件</span></div>
<div class="box-content">
<div class="box-content-l">
<div class="event-item">今日<span>0</span></div>
<div class="event-item"><span>0</span></div>
<div class="event-item">今日<span>{{ earlyWarningEvents.day }}</span></div>
<div class="event-item"><span>{{ earlyWarningEvents.month }}</span></div>
</div>
<div class="box-content-c">
<span class="num">13</span>
<span class="num">{{ earlyWarningEvents.processing }}</span>
<span class="text">处理中</span>
</div>
<div class="box-content-r">
<div class="event-item">本周<span>0</span></div>
<div class="event-item">本年<span>0</span></div>
<div class="event-item">本周<span>{{ earlyWarningEvents.week }}</span></div>
<div class="event-item">本年<span>{{ earlyWarningEvents.year }}</span></div>
</div>
</div>
</div>
@ -99,12 +99,36 @@ import carStatistics from "./js/carStatistics.js";
import focusStatistics from "./js/focusStatistics.js";
import otherStatistics from "./js/otherStatistics.js";
import Bg2 from "@screen/components/Decorations/bg-2.vue"
import request from "@/utils/request";
export default {
name: 'ConditionStatistics',
components: {
Bg2
},
data() {
return {
earlyWarningEvents: {
day: 0,
processing: 0,
month: 0,
week: 0,
year: 0,
}
}
},
created() {
//
request({
url: `/business/trafficIncidents/getTrafficIncidentsNum`,
method: "get",
})
.then(({ code, data }) => {
if (code != 200) return;
this.earlyWarningEvents = data;
})
},
mounted() {
setTimeout(() => {
this.$nextTick(() => {

Loading…
Cancel
Save