diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/FocusedMonitoring/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/FocusedMonitoring/index.vue
index b99c98e0..ea17bee5 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/FocusedMonitoring/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/FocusedMonitoring/index.vue
@@ -25,12 +25,12 @@
施工路段
-
4
+
{{ weatherForecast }}
处
气象预警
-
5
+
{{ abnormalDeviceNum }}
异常设备
@@ -59,6 +59,8 @@ export default {
trafficIncidents: [0, 0],
constructionSection: 0,
perceiveEvent: 0,
+ abnormalDeviceNum: 0,
+ weatherForecast: 0
}
},
created() {
@@ -74,8 +76,18 @@ export default {
method: "post",
data: {}
}),
+ request({
+ url: `/business/device/abnormalDevice`,
+ method: "get",
+ data: {}
+ }),
+ request({
+ url: `/weatherForecast/queryTheNumberOfMeteorologicalWarning`,
+ method: "post",
+ data: {}
+ }),
])
- .then(([trafficIncidents, perceiveEvent]) => {
+ .then(([trafficIncidents, perceiveEvent, abnormalDeviceNum, weatherForecast]) => {
if (trafficIncidents.status === 'fulfilled' && trafficIncidents.value.code == 200) {
const data = trafficIncidents.value.data;
@@ -92,7 +104,14 @@ export default {
this.perceiveEvent = data.number || 0;
}
-
+ if (abnormalDeviceNum.status === 'fulfilled' && abnormalDeviceNum.value.code == 200) {
+ const data = abnormalDeviceNum.value.data;
+ this.abnormalDeviceNum = data || 0;
+ }
+ if (weatherForecast.status === 'fulfilled' && weatherForecast.value.code == 200) {
+ const data = weatherForecast.value.data;
+ this.weatherForecast = data || 0;
+ }
})
}
}