feat: 人脸库设备列表显示IP地址

This commit is contained in:
tian 2026-07-24 14:49:21 +08:00
parent 36b5b903e1
commit 1430d33e5f
2 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,7 @@ type ResourceStatusCell struct {
type ResourceStatusRow struct {
DeviceID string `json:"device_id"`
DeviceName string `json:"device_name"`
DeviceIP string `json:"device_ip"`
Online bool `json:"online"`
Cells []ResourceStatusCell `json:"cells"`
ExtraCount int `json:"extra_resource_count"`
@ -190,6 +191,7 @@ func BuildResourceStatusBoard(standardResources []storage.StandardResourceRecord
row := ResourceStatusRow{
DeviceID: device.DeviceID,
DeviceName: device.DisplayName(),
DeviceIP: device.IP,
Online: device.Online,
Cells: make([]ResourceStatusCell, 0, len(standardResources)),
ExtraResources: make([]InstalledResourceStatus, 0),

View File

@ -86,7 +86,7 @@
<tr>
<td>
<div class="table-key">{{.DeviceName}}</div>
<div class="muted small mono">{{.DeviceID}}</div>
<div class="muted small mono">{{.DeviceIP}} · {{.DeviceID}}</div>
</td>
{{range .Cells}}
<td>