Date: Sun, 9 Nov 2025 19:31:05 +0800
Subject: [PATCH 02/10] =?UTF-8?q?=E3=80=90web=E3=80=91=20title=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../inMonitoring/devicesState/cardItem.vue | 15 ++++++--
.../inMonitoring/devicesState/detail.vue | 38 +++++++++++--------
2 files changed, 33 insertions(+), 20 deletions(-)
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 de4e043b..2f32d965 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
@@ -26,26 +26,26 @@
设备级别
- {{cardData.deviceLevel || '暂无'}}级
+ {{cardData.deviceLevel || '暂无'}}级
安装位置
- {{cardData.location || '暂无'}}
+ {{cardData.location || '暂无'}}
品牌型号
- {{cardData.brand || '暂无'}}
+ {{cardData.brand || '暂无'}}
带外IP
- {{cardData.ip || '暂无'}}
+ {{cardData.ip || '暂无'}}
@@ -420,6 +420,7 @@ export default {
.info-label i {
font-size: 12px;
+ width: 8px;
color: #4299e1;
}
@@ -427,6 +428,12 @@ export default {
font-size: 14px;
font-weight: 600;
color: #2d3748;
+ padding-left: 14px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ cursor: help;
+ width: 90px;
}
.chart-container {
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 343f06e2..e2b30f31 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
@@ -26,31 +26,31 @@
设备编号
- {{details.equNumber || '暂无'}}
+ {{details.equNumber || '暂无'}}
固件版本
- {{details.version || '暂无'}}
+ {{details.version || '暂无'}}
设备级别
- {{details.deviceLevel || '暂无'}}级
+ {{details.deviceLevel || '暂无'}}级
安装位置
- {{details.location || '暂无'}}
+ {{details.location || '暂无'}}
品牌型号
- {{details.brand || '暂无'}}
+ {{details.brand || '暂无'}}
@@ -62,33 +62,33 @@
生产厂商名称
- {{details.equManuName || '暂无'}}
+ {{details.equManuName || '暂无'}}
供货商名称
- {{details.supplierName || '暂无'}}
+ {{details.supplierName || '暂无'}}
供货商联系人
- {{ details.contactBy || '暂无'}}
+ {{ details.contactBy || '暂无'}}
供货商联系电话
- {{ details.contactWay || '暂无'}}
+ {{ details.contactWay || '暂无'}}
质保时间
- {{details.warranty || '暂无'}}
+ {{details.warranty || '暂无'}}
@@ -100,7 +100,7 @@
带外管理IP
- {{details.ip || '暂无'}}
+ {{details.ip || '暂无'}}
@@ -112,13 +112,13 @@
安装日期
- {{details.installDate || '暂无'}}
+ {{details.installDate || '暂无'}}
管理员
- {{details.inCharge || '暂无'}}
+ {{details.inCharge || '暂无'}}
@@ -129,19 +129,19 @@
设备持续运行时长
- {{formatDuration(details.contWorkPeriod) || '暂无'}}
+ {{formatDuration(details.contWorkPeriod) || '暂无'}}
待处理预警数
- {{details.unhandledAlertCount || '暂无'}}
+ {{details.unhandledAlertCount || '暂无'}}
预警总数
- {{details.alertCount || '暂无'}}
+ {{details.alertCount || '暂无'}}
@@ -1138,4 +1138,10 @@ mounted() {
font-weight: 600;
border-bottom: 2px solid #2d3748;
}
+ .info-value {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ cursor: help;
+ }
\ No newline at end of file
From 7358f60df714668b8d668693ea8dfffafbf0048b Mon Sep 17 00:00:00 2001
From: xiaohuo <14141624+dsgfhrh@user.noreply.gitee.com>
Date: Sun, 9 Nov 2025 19:54:15 +0800
Subject: [PATCH 03/10] =?UTF-8?q?11.9=E9=A2=84=E8=AD=A6=E4=BF=A1=E6=81=AF+?=
=?UTF-8?q?=E9=A2=84=E8=AD=A6=E8=AF=84=E4=BC=B0=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../AlertMessageController.java | 3 +-
.../alops/system/domain/vo/AlertMessages.java | 211 ++++++++++++++++++
.../system/mapper/AlertMessageMapper.java | 3 +-
.../system/service/IAlertMessageService.java | 3 +-
.../service/impl/AlertMessageServiceImpl.java | 3 +-
.../service/impl/EquBaseServiceImpl.java | 6 +-
.../mapper/system/AlertMessageMapper.xml | 14 +-
7 files changed, 230 insertions(+), 13 deletions(-)
create mode 100644 ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/vo/AlertMessages.java
diff --git a/ALOps_sys_backend/alops-admin/src/main/java/com/alops/web/controller/exceptionController/AlertMessageController.java b/ALOps_sys_backend/alops-admin/src/main/java/com/alops/web/controller/exceptionController/AlertMessageController.java
index 0553cf58..f3a2d360 100644
--- a/ALOps_sys_backend/alops-admin/src/main/java/com/alops/web/controller/exceptionController/AlertMessageController.java
+++ b/ALOps_sys_backend/alops-admin/src/main/java/com/alops/web/controller/exceptionController/AlertMessageController.java
@@ -10,6 +10,7 @@ import com.alops.common.core.page.TableDataInfo;
import com.alops.common.enums.BusinessType;
import com.alops.system.domain.AlertMessage;
import com.alops.system.domain.dto.AlertDto;
+import com.alops.system.domain.vo.AlertMessages;
import com.alops.system.domain.vo.homeEquAlertMessageVo;
import com.alops.system.service.IAlertLaunchService;
import com.alops.system.domain.dto.AlertStatisticDto;
@@ -98,7 +99,7 @@ public class AlertMessageController extends BaseController
public TableDataInfo list( AlertDto alertMessage)
{
startPage();
- List list = alertMessageService.selectAlertMessageList(alertMessage);
+ List list = alertMessageService.selectAlertMessageList(alertMessage);
return getDataTable(list);
}
diff --git a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/vo/AlertMessages.java b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/vo/AlertMessages.java
new file mode 100644
index 00000000..f2f03fa8
--- /dev/null
+++ b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/vo/AlertMessages.java
@@ -0,0 +1,211 @@
+package com.alops.system.domain.vo;
+
+
+
+import java.util.Date;
+
+import com.alops.common.annotation.Excel;
+import com.alops.common.core.domain.BaseEntity;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import lombok.Data;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+import javax.mail.Message;
+
+/**
+ * 故障统计对象 alert_message
+ *
+ * @author ruoyi
+ * @date 2025-09-04
+ */
+@Data
+public class AlertMessages
+{
+ private static final long serialVersionUID = 1L;
+
+ /** ID */
+ private Long id;
+
+ /** 设备ID */
+ @Excel(name = "设备ID")
+ private String equId;
+
+
+ /** 预警类型(枚举表名) */
+ @Excel(name = "预警类型(枚举表名)")
+ private String type;
+
+ /** 设备类型 */
+ @Excel(name = "设备类型")
+ private String equType;
+
+ @Excel(name = "设备名称")
+ private String name;
+ @Excel(name = "设备编号")
+ private String equNumber;
+
+ /** 解决方案 */
+ @Excel(name = "解决方案")
+ private String solution;
+
+ /** 故障级别(1-5级) */
+ @Excel(name = "预警级别(1-5级)")
+ private Long level;
+
+ /** 发生时间 */
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ @Excel(name = "添加日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
+ private Date occurTime;
+
+
+
+ /** 处理人ID */
+ @Excel(name = "处理人ID")
+ private String handler;
+
+ /** 解决时间 */
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ @Excel(name = "添加日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
+ private Date handleTime;
+
+ /** 处理状态(open、in_progress_closed) */
+ @Excel(name = "处理状态")
+ private String status;
+
+ @Excel(name = "信息批次")
+ private Integer batch;
+
+ @Excel(name ="预警信息")
+ private String message;
+ @JsonIgnore
+ @Excel(name ="预警规则id")
+ private Long alertRuleId;
+
+
+
+
+
+ public void setId(Long id)
+ {
+ this.id = id;
+ }
+
+ public Long getId()
+ {
+ return id;
+ }
+
+ public void setEquId(String equId)
+ {
+ this.equId = equId;
+ }
+
+ public String getEquId()
+ {
+ return equId;
+ }
+
+ public void setType(String type)
+ {
+ this.type = type;
+ }
+
+ public String getType()
+ {
+ return type;
+ }
+
+ public void setEquType(String equType)
+ {
+ this.equType = equType;
+ }
+
+ public String getEquType()
+ {
+ return equType;
+ }
+
+
+ public void setSolution(String solution)
+ {
+ this.solution = solution;
+ }
+
+ public String getSolution()
+ {
+ return solution;
+ }
+
+ public void setLevel(Long level)
+ {
+ this.level = level;
+ }
+
+ public Long getLevel()
+ {
+ return level;
+ }
+
+ public void setOccurTime(Date occurTime)
+ {
+ this.occurTime = occurTime;
+ }
+
+ public Date getOccurTime()
+ {
+ return occurTime;
+ }
+
+ public void setHandler(String handler)
+ {
+ this.handler = handler;
+ }
+
+ public String getHandler()
+ {
+ return handler;
+ }
+
+ public void setHandleTime(Date handleTime)
+ {
+ this.handleTime = handleTime;
+ }
+
+ public Date getHandleTime()
+ {
+ return handleTime;
+ }
+
+ public void setStatus(String status)
+ {
+ this.status = status;
+ }
+
+ public String getStatus()
+ {
+ return status;
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+ .append("id", getId())
+ .append("equId", getEquId())
+
+ .append("type", getType())
+ .append("equType", getEquType())
+
+ .append("solution", getSolution())
+ .append("level", getLevel())
+ .append("occurTime", getOccurTime())
+
+ .append("handler", getHandler())
+ .append("handleTime", getHandleTime())
+ .append("status", getStatus())
+ .append("batch",getBatch())
+ .toString();
+ }
+}
+
diff --git a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/mapper/AlertMessageMapper.java b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/mapper/AlertMessageMapper.java
index ddfdcfbf..99fc2776 100644
--- a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/mapper/AlertMessageMapper.java
+++ b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/mapper/AlertMessageMapper.java
@@ -2,6 +2,7 @@ package com.alops.system.mapper;
import com.alops.system.domain.AlertMessage;
import com.alops.system.domain.dto.AlertDto;
+import com.alops.system.domain.vo.AlertMessages;
import com.alops.system.domain.vo.homeEquAlertMessageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@@ -44,7 +45,7 @@ public interface AlertMessageMapper
* @param alertMessage 故障统计
* @return 故障统计集合
*/
- public List selectAlertMessageList(AlertDto alertMessage);
+ public List selectAlertMessageList(AlertDto alertMessage);
public List selectStaticAlertMessageList();
public ArrayList selectAlertMessageByEquId(String Equid);
diff --git a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/IAlertMessageService.java b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/IAlertMessageService.java
index 03655ea1..24cc525b 100644
--- a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/IAlertMessageService.java
+++ b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/IAlertMessageService.java
@@ -3,6 +3,7 @@ package com.alops.system.service;
import com.alops.system.domain.AlertMessage;
import com.alops.system.domain.dto.AlertDto;
import com.alops.system.domain.dto.AlertStatisticDto;
+import com.alops.system.domain.vo.AlertMessages;
import com.alops.system.domain.vo.homeEquAlertMessageVo;
import java.util.List;
@@ -30,7 +31,7 @@ public interface IAlertMessageService
* @param alertMessage 故障统计
* @return 故障统计集合
*/
- public List selectAlertMessageList(AlertDto alertMessage);
+ public List selectAlertMessageList(AlertDto alertMessage);
public List selectStaticAlertMessageList();
public List selectAlertMessageListByEquId(String equId);
diff --git a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/impl/AlertMessageServiceImpl.java b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/impl/AlertMessageServiceImpl.java
index 18dedbae..fe302016 100644
--- a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/impl/AlertMessageServiceImpl.java
+++ b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/impl/AlertMessageServiceImpl.java
@@ -11,6 +11,7 @@ import com.alops.system.domain.dto.AlertDto;
import com.alops.system.domain.dto.AlertStatisticDto;
import com.alops.system.domain.dto.LevelCountDto;
import com.alops.system.domain.dto.TypeCountDto;
+import com.alops.system.domain.vo.AlertMessages;
import com.alops.system.domain.vo.homeEquAlertMessageVo;
import com.alops.system.mapper.AlertMessageMapper;
import com.alops.system.service.IAlertMessageService;
@@ -48,7 +49,7 @@ public class AlertMessageServiceImpl implements IAlertMessageService
* @return 故障统计
*/
@Override
- public List selectAlertMessageList(AlertDto alertMessage)
+ public List selectAlertMessageList(AlertDto alertMessage)
{
return alertMessageMapper.selectAlertMessageList(alertMessage);
}
diff --git a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/impl/EquBaseServiceImpl.java b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/impl/EquBaseServiceImpl.java
index ee8ab02b..0fd1aeaf 100644
--- a/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/impl/EquBaseServiceImpl.java
+++ b/ALOps_sys_backend/alops-system/src/main/java/com/alops/system/service/impl/EquBaseServiceImpl.java
@@ -87,9 +87,9 @@ public class EquBaseServiceImpl implements IEquBaseService
vo.setRiskGrade(switch (riskLevel) {
case 1 -> "无风险";
- case 2 -> "低";
- case 3 -> "中";
- case 4 -> "高";
+ case 2 -> "低风险";
+ case 3 -> "中风险";
+ case 4 -> "高风险";
default -> "未知";
});
diff --git a/ALOps_sys_backend/alops-system/src/main/resources/mapper/system/AlertMessageMapper.xml b/ALOps_sys_backend/alops-system/src/main/resources/mapper/system/AlertMessageMapper.xml
index f13c626d..02642643 100644
--- a/ALOps_sys_backend/alops-system/src/main/resources/mapper/system/AlertMessageMapper.xml
+++ b/ALOps_sys_backend/alops-system/src/main/resources/mapper/system/AlertMessageMapper.xml
@@ -45,17 +45,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SELECT am.id,
- am.equ_id,
+ am.equ_id AS equId ,
am.type,
- am.equ_type,
+ am.equ_type AS equType,
am.solution,
am.level,
- am.occur_time,
+ am.occur_time AS occurTime,
am.handler,
- am.handle_time,
+ am.handle_time AS handleTime,
am.status,
am.batch,
- am.message
+ am.message,
+ eb.name,
+ eb.equ_number AS equNumber
FROM alert_message am
LEFT JOIN equ_base eb ON am.equ_id = eb.id
@@ -64,7 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select a.id, g.equ_id, type, equ_type, solution, level, occur_time, handler, handle_time, status,batch,message from alert_message a LEFT JOIN equ_gather g ON a.equ_id = g.equ_id
-