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%; } }