|
@@ -63,17 +63,19 @@ export default {
|
|
|
getAlarmName(alarmItem) {
|
|
|
let alarmName = "";
|
|
|
if (alarmItem.deviceType === "booststation") {
|
|
|
- alarmName += "升压站";
|
|
|
+ alarmName = "升压站报警";
|
|
|
} else if (alarmItem.deviceType === "inverter") {
|
|
|
- alarmName += "逆变器";
|
|
|
+ alarmName = "逆变器报警";
|
|
|
} else if (alarmItem.deviceType === "windturbine") {
|
|
|
- alarmName += "风机";
|
|
|
+ alarmName = "设备报警";
|
|
|
+ } else if (alarmItem.deviceType === "station") {
|
|
|
+ alarmName = "场站";
|
|
|
}
|
|
|
|
|
|
if (alarmItem.alarmType === "custom") {
|
|
|
- alarmName += "自定义";
|
|
|
+ alarmName = "自定义报警";
|
|
|
}
|
|
|
- return `${alarmName}报警`;
|
|
|
+ return alarmName;
|
|
|
},
|
|
|
|
|
|
getLvName(alarmItem) {
|
|
@@ -206,7 +208,8 @@ export default {
|
|
|
lvName: this.getLvName(alarmItem),
|
|
|
rank: alarmItem.rank,
|
|
|
class: `animate__bounceInRight lv${alarmItem.rank}`,
|
|
|
- confirm: alarmItem.isClose,
|
|
|
+ isClose: alarmItem.isClose,
|
|
|
+ isCloseName: alarmItem.isClose ? "是" : "否",
|
|
|
alarmType: alarmItem.alarmType,
|
|
|
alarmName: this.getAlarmName(alarmItem),
|
|
|
description: alarmItem.description,
|
|
@@ -215,6 +218,12 @@ export default {
|
|
|
triggerType: alarmItem.triggerType,
|
|
|
ts: alarmItem.ts,
|
|
|
tsName: new Date(alarmItem.ts).formatDate("yyyy-MM-dd hh:mm:ss"),
|
|
|
+ deviceId: alarmItem.deviceId,
|
|
|
+ deviceType: alarmItem.deviceType,
|
|
|
+ faultCause: alarmItem.faultCause,
|
|
|
+ resolvent: alarmItem.resolvent,
|
|
|
+ characteristic: alarmItem.characteristic,
|
|
|
+ code: alarmItem.code,
|
|
|
};
|
|
|
this.alarmList.push(alarmOption);
|
|
|
this.$store.commit("setWarning", alarmOption);
|