feat: 人脸库设备列表显示IP地址
This commit is contained in:
parent
36b5b903e1
commit
1430d33e5f
@ -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),
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user