From a2c8083877d4a2c9ac5a3cb5e0b564d7534f766b Mon Sep 17 00:00:00 2001 From: lzh1232 <15120652+lzh1232@user.noreply.gitee.com> Date: Sat, 1 Nov 2025 15:59:21 +0800 Subject: [PATCH 1/8] =?UTF-8?q?11.1=20=E5=AE=89=E8=A3=85=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E7=B2=BE=E7=A1=AE=E5=88=B0=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/alops/system/domain/dto/MonitorLastDto.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/dto/MonitorLastDto.java b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/dto/MonitorLastDto.java index 4cf5d6f9..7d26afd3 100644 --- a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/dto/MonitorLastDto.java +++ b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/dto/MonitorLastDto.java @@ -1,5 +1,7 @@ package com.alops.system.domain.dto; +import com.alops.common.annotation.Excel; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import java.sql.Blob; @@ -25,6 +27,9 @@ public class MonitorLastDto { private String deviceLevel; private String ip; private String location; + /** 安装日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "安装日期", width = 30, dateFormat = "yyyy-MM-dd") private Date installDate; private String inCharge; private String status; From c20f2f0056da7e35548d3e424e9caff719244e78 Mon Sep 17 00:00:00 2001 From: lzh1232 <15120652+lzh1232@user.noreply.gitee.com> Date: Sat, 1 Nov 2025 17:15:44 +0800 Subject: [PATCH 2/8] =?UTF-8?q?11.1=20=E6=8E=A5=E5=8F=A3=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E9=87=87=E9=9B=86=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/alops/system/domain/EquInterface.java | 2 -- .../src/main/resources/mapper/system/EquInterfaceMapper.xml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/EquInterface.java b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/EquInterface.java index 85619033..d727d0df 100644 --- a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/EquInterface.java +++ b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/EquInterface.java @@ -29,8 +29,6 @@ public class EquInterface private String equId; /** 采集时间 */ - @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd") private Date gatherTime; /** 端口运行与否(UP/DOWN(true/false)) */ diff --git a/ALOps_sys_backend/alops-system/src/main/resources/mapper/system/EquInterfaceMapper.xml b/ALOps_sys_backend/alops-system/src/main/resources/mapper/system/EquInterfaceMapper.xml index 97c0918e..050c9063 100644 --- a/ALOps_sys_backend/alops-system/src/main/resources/mapper/system/EquInterfaceMapper.xml +++ b/ALOps_sys_backend/alops-system/src/main/resources/mapper/system/EquInterfaceMapper.xml @@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select i.id, g.equ_id, i.gather_time, running, rate, commuicate_mode, out_flow, in_flow, in_bandwidth, loss_rate, error_rate, equ_gather_id, interface_id, out_bandwidth from equ_interface i LEFT JOIN equ_gather g ON i.equ_gather_id = g.id + select i.id, g.equ_id, g.gather_time, running, rate, commuicate_mode, out_flow, in_flow, in_bandwidth, loss_rate, error_rate, equ_gather_id, interface_id, out_bandwidth from equ_interface i LEFT JOIN equ_gather g ON i.equ_gather_id = g.id + + UPDATE equ_vlan + SET + ip_address = #{ipAddress}, + subnet_mask = #{subnetMask} + WHERE id = #{id} + + + + insert into equ_vlan From 68ca7e555c03750853d62bb321ac02b1a2a836f8 Mon Sep 17 00:00:00 2001 From: Wangxin Date: Sat, 1 Nov 2025 20:24:00 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E3=80=90web=E3=80=91=20=E9=A6=96=E9=A1=B5U?= =?UTF-8?q?I=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ALOps_sys_fe/alops-ui/src/App.vue | 8 + .../src/components/Screenfull/index.vue | 14 +- ALOps_sys_fe/alops-ui/src/views/index.vue | 164 ++++++------------ 3 files changed, 70 insertions(+), 116 deletions(-) diff --git a/ALOps_sys_fe/alops-ui/src/App.vue b/ALOps_sys_fe/alops-ui/src/App.vue index 12df51dc..c2b7d681 100644 --- a/ALOps_sys_fe/alops-ui/src/App.vue +++ b/ALOps_sys_fe/alops-ui/src/App.vue @@ -14,6 +14,14 @@ export default { } \ No newline at end of file From 5124226565ea876dd1f3b24c0e4682a6312b026a Mon Sep 17 00:00:00 2001 From: Wangxin Date: Sun, 2 Nov 2025 14:02:40 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E3=80=90web=E3=80=91=20=E9=A6=96=E9=A1=B5U?= =?UTF-8?q?I=E8=B0=83=E6=95=B4=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ALOps_sys_fe/alops-ui/src/views/index.vue | 341 ++++++++-------------- 1 file changed, 127 insertions(+), 214 deletions(-) diff --git a/ALOps_sys_fe/alops-ui/src/views/index.vue b/ALOps_sys_fe/alops-ui/src/views/index.vue index d87fe63d..a27a6b09 100644 --- a/ALOps_sys_fe/alops-ui/src/views/index.vue +++ b/ALOps_sys_fe/alops-ui/src/views/index.vue @@ -102,14 +102,14 @@
+ class="warning-item" >
{{ warning.name }}
预警时间: {{ warning.time }}
设备位置: {{ warning.location }}
-
预警信息: {{ warning.ruleName }}
+
预警规则: {{ warning.ruleName }}
+
预警详情: {{ warning.message }}
@@ -188,47 +188,27 @@ 最后维护: {{ selectedDevice.lastMaintenance || '2024-09-15' }} --> - -
- - - -
-

历史数据 +
+

历史数据

- - - - + + 查询
-

-
-
- - - - - - @@ -1426,6 +1430,22 @@ export default { font-weight: bold; font-size: clamp(0.8rem, 1vw, 1rem); } + .health-1{ + color: #4CAF50; + } + .health-2{ + color: #FF9800; + } + .health-3{ + color: #F44336; + } + .health-4{ + color: #FFEB3B; + } + .health-0{ + color: #9E9E9E; + } + /* 楼宇容器样式 */ .building-container { From aa9c1ea6126851692c31eeed13de2c39bf4b41ac Mon Sep 17 00:00:00 2001 From: Wangxin Date: Sun, 2 Nov 2025 16:00:36 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E3=80=90web=E3=80=91=20=E9=A2=84=E8=AD=A6?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=20=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ALOps_sys_fe/alops-ui/src/views/index.vue | 29 +++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/ALOps_sys_fe/alops-ui/src/views/index.vue b/ALOps_sys_fe/alops-ui/src/views/index.vue index 776e9cd8..1b5c83db 100644 --- a/ALOps_sys_fe/alops-ui/src/views/index.vue +++ b/ALOps_sys_fe/alops-ui/src/views/index.vue @@ -19,7 +19,7 @@ :key="device.id || Math.random()" class="device-item" @click="showDeviceDetail(device)"> -
+
{{ device.equManuName || device.name || '未知设备' }}
@@ -1398,7 +1398,28 @@ export default { margin-bottom: 5px; line-height: 1.5; } - + .status-0 { + background: #9E9E9E; + box-shadow: 0 0 5px #9E9E9E; + } + .status-1 { + background: #4CAF50; + box-shadow: 0 0 5px #4CAF50; + } + .status-2 { + background: #FF9800; + box-shadow: 0 0 5px #FF9800; + } + .status-4 { + background: #F44336; + box-shadow: 0 0 5px #F44336; + } + .status-3 { + background: #FFEB3B; + box-shadow: 0 0 5px #FFEB3B; + } + + .status-normal { background: #4CAF50; box-shadow: 0 0 5px #4CAF50; @@ -1436,10 +1457,10 @@ export default { .health-2{ color: #FF9800; } - .health-3{ + .health-4{ color: #F44336; } - .health-4{ + .health-3{ color: #FFEB3B; } .health-0{ From 8872c08aa5e535dc36e82063904092e66d86f328 Mon Sep 17 00:00:00 2001 From: Wangxin Date: Sun, 2 Nov 2025 16:01:02 +0800 Subject: [PATCH 8/8] =?UTF-8?q?=E3=80=90web=E3=80=91=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../alops-ui/src/layout/components/Navbar.vue | 2 +- .../inMonitoring/devicesState/cardItem.vue | 30 +++++++++++++++---- .../inMonitoring/devicesState/detail.vue | 2 +- .../inMonitoring/inMonitor/message/index.vue | 13 ++++---- 4 files changed, 34 insertions(+), 13 deletions(-) diff --git a/ALOps_sys_fe/alops-ui/src/layout/components/Navbar.vue b/ALOps_sys_fe/alops-ui/src/layout/components/Navbar.vue index cbe7284d..b317eabf 100644 --- a/ALOps_sys_fe/alops-ui/src/layout/components/Navbar.vue +++ b/ALOps_sys_fe/alops-ui/src/layout/components/Navbar.vue @@ -89,7 +89,7 @@ export default { cancelButtonText: '取消', type: 'warning' }).then(() => { - this.$store.dispatch('LogOut').then(() => { + this.$store.dispatch('user/LogOut').then(() => { location.href = '/index' }) }).catch(() => {}) diff --git a/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/cardItem.vue b/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/cardItem.vue index 8cb87934..256351a6 100644 --- a/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/cardItem.vue +++ b/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/cardItem.vue @@ -43,7 +43,7 @@
带外IP - 带内IP + {{cardData.ip || '暂无'}}
@@ -61,18 +61,22 @@
-
{{getPercentage(cardData.health)||0}}%
+
+ + {{ cardData.health == 1?'健康':cardData.health == 2?'良好':cardData.health == 3?'一般':cardData.health == 4?'需维护':'未知' }} + +
健康度
-
+
{{cardData.unhandledAlertCount||0}}
待处理预警数
-
{{cardData.handledAlertCount||0}}
+
{{cardData.alertCount||0}}
预警总数
@@ -498,4 +502,20 @@ export default { grid-template-columns: 1fr; } } + + .health-1{ + color: #4CAF50; + } + .health-2{ + color: #FF9800; + } + .health-4{ + color: #F44336; + } + .health-3{ + color: #FFEB3B; + } + .health-0{ + color: #9E9E9E; + } \ No newline at end of file diff --git a/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/detail.vue b/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/detail.vue index 569759eb..3a374f1d 100644 --- a/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/detail.vue +++ b/ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/detail.vue @@ -50,7 +50,7 @@ 品牌型号 - {{details.manufacture || '暂无'}} + {{details.brand || '暂无'}} diff --git a/ALOps_sys_fe/alops-ui/src/views/inMonitoring/inMonitor/message/index.vue b/ALOps_sys_fe/alops-ui/src/views/inMonitoring/inMonitor/message/index.vue index 7629b350..09459e74 100644 --- a/ALOps_sys_fe/alops-ui/src/views/inMonitoring/inMonitor/message/index.vue +++ b/ALOps_sys_fe/alops-ui/src/views/inMonitoring/inMonitor/message/index.vue @@ -25,17 +25,17 @@ - 删除 - + + --> + @@ -71,6 +71,7 @@