From 3a77449b4fa65c83757cec431e570423cb53610b Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Thu, 7 May 2026 14:23:14 +0800 Subject: [PATCH] fix: show device list directly on monitor page --- internal/web/ui/templates/monitor.html | 103 +++++++++++++------------ 1 file changed, 52 insertions(+), 51 deletions(-) diff --git a/internal/web/ui/templates/monitor.html b/internal/web/ui/templates/monitor.html index 250f9bd..cf849a5 100644 --- a/internal/web/ui/templates/monitor.html +++ b/internal/web/ui/templates/monitor.html @@ -3,66 +3,67 @@

{{icon "devices"}}视频监控

-
从设备拉取通道列表,点击通道查看实时画面。
-
-
- +
选择在线设备,加载通道后查看实时画面。
-
-
请先选择在线设备,点击"加载通道"。
+{{if .Devices}} +
+
+ + + + {{range .Devices}} + {{if .Online}} + + + + + + {{end}} + {{end}} + +
设备地址操作
{{.DisplayName}}
{{.DeviceID}}
{{.IP}}:{{.AgentPort}}
+
+{{else}} +
暂无在线设备。
+{{end}} + +
{{end}}