16337 92a6031e72 fix(aiot): 修复告警列表自动计时 - duration_ms为NULL时显示进行中
问题描述:
- 前端告警列表对于新触发的告警(duration_ms=null)仍然显示"5分"等具体时长
- 这是因为前端在显示时没有正确处理null值

解决方案:
- 修改 formatDuration 函数,显式检查 duration_ms 是否为 null/undefined
- 当 duration_ms 为 null 时,返回"进行中"而不是"--"
- 简化模板代码,直接调用 formatDuration 函数处理所有情况

影响范围:
- 告警列表表格的持续时长列
- 告警详情弹窗的持续时长字段

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 10:29:26 +08:00
2024-07-28 14:29:05 +08:00
2025-11-20 09:21:40 +08:00
2026-01-26 10:34:33 +08:00
2024-05-19 21:20:42 +08:00
2024-05-19 21:20:42 +08:00
2024-05-19 21:20:42 +08:00
2025-08-16 22:16:02 +08:00
2024-05-19 21:20:42 +08:00
2024-07-30 21:18:00 +08:00
2026-01-26 10:33:23 +08:00
2024-05-19 21:20:42 +08:00
2024-07-28 14:29:05 +08:00
2026-01-26 10:37:44 +08:00
2026-01-26 10:37:44 +08:00
2024-05-19 21:20:42 +08:00
2025-12-05 15:09:43 +08:00
Description
IOT设备管理平台前端
MIT 32 MiB
Languages
Vue 63.3%
TypeScript 32%
JavaScript 3.6%
CSS 0.7%
SCSS 0.3%