fix: 设备列表配置列显示模板名而非ConfigID
This commit is contained in:
parent
a801340d14
commit
4968d6203a
@ -59,7 +59,7 @@
|
||||
<th style="width:52px">选中</th>
|
||||
<th>设备</th>
|
||||
<th>状态</th>
|
||||
<th>当前配置</th>
|
||||
<th>配置模板</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -100,12 +100,14 @@
|
||||
</td>
|
||||
<td>
|
||||
<div class="config-inline">
|
||||
{{if and .ConfigStatus .ConfigStatus.Metadata.ConfigID}}
|
||||
{{if and .ConfigStatus .ConfigStatus.Metadata.Template}}
|
||||
<div class="mono">{{.ConfigStatus.Metadata.Template}}</div>
|
||||
{{else if and .ConfigStatus .ConfigStatus.Metadata.ConfigID}}
|
||||
<div class="mono">{{.ConfigStatus.Metadata.ConfigID}}</div>
|
||||
{{else if .ConfigStatusErr}}
|
||||
<div class="muted small">未取到配置摘要</div>
|
||||
{{else}}
|
||||
<div class="muted small">暂无配置摘要</div>
|
||||
<div class="muted small">暂无配置</div>
|
||||
{{end}}
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user