From 6c5827ac1874e6406339867bca3c28cccaf5e5de Mon Sep 17 00:00:00 2001
From: zjc <1034206993@qq.com>
Date: Tue, 11 Mar 2025 12:40:51 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=AF=B9=E6=8E=A5=E7=9B=91=E6=8E=A7-?=
=?UTF-8?q?=E5=88=87=E6=8D=A2=E6=99=AF=E5=8C=BA=E5=90=8E=E7=9B=91=E6=8E=A7?=
=?UTF-8?q?=E7=82=B9=E4=BD=8D=E7=BB=9F=E8=AE=A1=E5=92=8C=E5=BC=82=E5=B8=B8?=
=?UTF-8?q?=E5=91=8A=E8=AD=A6=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/monitor/components/box-1.vue | 130 ++++++++++++++-----------
1 file changed, 74 insertions(+), 56 deletions(-)
diff --git a/src/views/monitor/components/box-1.vue b/src/views/monitor/components/box-1.vue
index 432e601..6a69c49 100644
--- a/src/views/monitor/components/box-1.vue
+++ b/src/views/monitor/components/box-1.vue
@@ -55,7 +55,6 @@
@@ -80,7 +79,6 @@
@@ -109,29 +107,36 @@

-
-
{{ item.name }}
-
- 550
- 295
- 54
-
-
- 28
- 28
- 5
-
-
调试中
-
+
+ 监控点位
+
+
+
+ 核心点位
+
+
+
+ 异常点位
+
@@ -140,22 +145,32 @@

-
-
{{ item.name }}
-
调试中
-
+
+ 当前告警总数
+
+
+
+ 安全告警总数
+
+
+
+ 已解除告警总数
+
@@ -202,23 +217,14 @@
dataLists: [],
headList: []
})
- // 监控点位统计
- let monitoringPointData = ref({
- dataList: [],
- headList: [
- { name: '监控点位', type: 0, value: 0 },
- { name: '核心点位', type: 0, value: 0 },
- { name: '异常点位', type: 1, value: 0 }
- ]
- })
- // 监控点位统计
- let abnormalAlarmData = ref({
- dataList: [],
- headList: [
- { name: '当前告警总数', type: 0, value: 0 },
- { name: '安全告警总数', type: 0, value: 0 },
- { name: '已解除告警数', type: 1, value: 0 }
- ]
+ // 监控点位异常告警统计
+ let pointAlarmData = ref({
+ abnormalPoints: 0, // 异常点位
+ analysisPoints: 0, // 核心点位
+ coreMonitoringPoints: 0, // 监控点位
+ abnormalAlarm: 0, // 当前告警总数
+ allAbnormalAlarm: 0, // 安全告警总数
+ handled: 0 // 已处理告警数
})
// 异常告警
@@ -266,15 +272,12 @@
case '异常警告图表和警告比例图表':
abnormalData.value = val.data
break
+ case '监控点位统计和异常告警统计':
+ pointAlarmData.value = val.data
+ break
case 'trafficAbnormalityData':
trafficAbnormalityData.value = val
break
- case 'monitoringPointLocation':
- monitoringPointData.value = val
- break
- case 'abnormalAlarmData':
- abnormalAlarmData.value = val
- break
}
}
}
@@ -312,9 +315,24 @@
.detection-top {
width: 100%;
height: vh(580);
+ overflow-x: auto;
+ overflow-y: hidden;
background-color: #fff;
+ /* 滚动条整体样式 */
+ &::-webkit-scrollbar {
+ height: vh(10); /* 滚动条的宽度 */
+ }
+ /* 滚动条轨道 */
+ &::-webkit-scrollbar-track {
+ background: 'transparent'; /* 轨道的背景色 */
+ }
+ /* 滚动条滑块 */
+ &::-webkit-scrollbar-thumb {
+ background: rgba(0, 150, 255, 0.63); /* 滑块的背景色 */
+ border-radius: 5px; /* 滑块的圆角 */
+ }
.map-img {
- width: 100%;
+ width: auto;
height: 100%;
}
}