diff --git a/src/api/ems/base/emsAlarmActionStep.js b/src/api/ems/base/emsAlarmActionStep.js index e63b03e..e2726e7 100644 --- a/src/api/ems/base/emsAlarmActionStep.js +++ b/src/api/ems/base/emsAlarmActionStep.js @@ -28,8 +28,12 @@ export function getEmsAlarmActionStepsByRuleId(ruleObjId) { // 根据报警数据信息查询措施步骤列表(包含图片) export function getEmsAlarmActionStepsByAlarmInfo(monitorId, cause) { return request({ - url: '/ems/base/emsAlarmActionStep/alarm/' + encodeURIComponent(monitorId) + '/' + encodeURIComponent(cause), - method: 'get' + url: '/ems/base/emsAlarmActionStep/getByAlarmInfo', + method: 'post', + data: { + monitorId: monitorId, + cause: cause + } }) } diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 0e17ec7..2a93aed 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -212,136 +212,204 @@ -
- -
-

📟 设备信息

- - -
- 设备ID: - {{ currentRealtimeAlarm.monitorId }} -
-
- -
- 告警时间: - {{ formatAlarmTime(currentRealtimeAlarm.recordTime) }} -
-
-
-
+ + + +
+ +
+

📟 设备信息

+ + +
+ 设备ID: + {{ currentRealtimeAlarm.monitorId }} +
+
+ +
+ 告警时间: + {{ formatAlarmTime(currentRealtimeAlarm.recordTime) }} +
+
+
+
- -
-

📊 设备当前数据

- - -
- 温度: - {{ currentRealtimeAlarm.deviceParam.temperature }}°C -
-
- -
- 湿度: - {{ currentRealtimeAlarm.deviceParam.humidity }}% -
-
- -
- 照度: - {{ currentRealtimeAlarm.deviceParam.illuminance }}lx -
-
- -
- 噪声: - {{ currentRealtimeAlarm.deviceParam.noise }}dB -
-
- -
- 气体浓度: - {{ currentRealtimeAlarm.deviceParam.concentration }}ppm -
-
- -
- 振动速度: - {{ currentRealtimeAlarm.deviceParam.vibrationSpeed || currentRealtimeAlarm.deviceParam.VibrationSpeed }}mm/s -
-
- -
- 振动位移: - {{ currentRealtimeAlarm.deviceParam.vibrationDisplacement || currentRealtimeAlarm.deviceParam.VibrationDisplacement }}um -
-
- -
- 振动加速度: - {{ currentRealtimeAlarm.deviceParam.vibrationAcceleration || currentRealtimeAlarm.deviceParam.VibrationAcceleration }}g -
-
- -
- 振动温度: - {{ currentRealtimeAlarm.deviceParam.vibrationTemp || currentRealtimeAlarm.deviceParam.VibrationTemp }}℃ -
-
-
-
+ +
+

📊 设备当前数据

+ + +
+ 温度: + {{ currentRealtimeAlarm.deviceParam.temperature }}°C +
+
+ +
+ 湿度: + {{ currentRealtimeAlarm.deviceParam.humidity }}% +
+
+ +
+ 照度: + {{ currentRealtimeAlarm.deviceParam.illuminance }}lx +
+
+ +
+ 噪声: + {{ currentRealtimeAlarm.deviceParam.noise }}dB +
+
+ +
+ 气体浓度: + {{ currentRealtimeAlarm.deviceParam.concentration }}ppm +
+
+ +
+ 振动速度: + {{ currentRealtimeAlarm.deviceParam.vibrationSpeed || currentRealtimeAlarm.deviceParam.VibrationSpeed }}mm/s +
+
+ +
+ 振动位移: + {{ currentRealtimeAlarm.deviceParam.vibrationDisplacement || currentRealtimeAlarm.deviceParam.VibrationDisplacement }}um +
+
+ +
+ 振动加速度: + {{ currentRealtimeAlarm.deviceParam.vibrationAcceleration || currentRealtimeAlarm.deviceParam.VibrationAcceleration }}g +
+
+ +
+ 振动温度: + {{ currentRealtimeAlarm.deviceParam.vibrationTemp || currentRealtimeAlarm.deviceParam.VibrationTemp }}℃ +
+
+
+
- -
-

🚨 触发的告警规则

-
-
-
- {{ rule.ruleName }} - - {{ rule.triggerRule === 0 ? '大于阈值' : '小于阈值' }} - + +
+

🚨 触发的告警规则

+
+
+
+ {{ rule.ruleName }} + + {{ rule.triggerRule === 0 ? '大于阈值' : '小于阈值' }} + +
+
+ 阈值:{{ rule.triggerValue }} + 监测字段:{{ getFieldName(rule.monitorField) }} + 备注:{{ rule.cause }} +
+
-
- 阈值:{{ rule.triggerValue }} - 监测字段:{{ getFieldName(rule.monitorField) }} - 备注:{{ rule.cause }} +
+ + +
+

📋 告警内容详情

+
+
+ +
-
+ - -
-

📋 告警内容详情

-
-
- + + +
+ + +
+
+ +
+ +
+ + + +
+ 第{{ step.stepSequence }}步 +
+ + +
+

{{ step.description }}

+
+ + +
+
参考图片:
+ +
+ + +
+ 备注:{{ step.remark }} +
+
+
+
+
-
-
+ +