1
0

feat: 位置字段改名为机房,移动到ID列后面;优化列表列宽和截断

Šī revīzija ir iekļauta:
cnbugs
2026-04-28 12:57:59 +08:00
vecāks bbbec77c63
revīzija cb057b431e
5 mainīti faili ar 25 papildinājumiem un 7 dzēšanām
+4 -4
Parādīt failu
@@ -70,14 +70,14 @@
<thead>
<tr>
<th style="width:50px">ID</th>
<th style="width:60px"></th>
<th style="width:150px">机柜位置</th>
<th style="width:100px"></th>
<th style="width:80px">机柜</th>
<th style="width:120px">机柜位置</th>
<th style="width:80px">资产编号</th>
<th>设备名称</th>
<th>分类</th>
<th>品牌/型号</th>
<th>资产面值</th>
<th style="width:80px">位置</th>
<th>BMC地址</th>
<th>IP地址</th>
<th>显卡类型</th>
@@ -94,6 +94,7 @@
{% for asset in page_obj %}
<tr>
<td class="text-muted small" title="{{ asset.id }}">{{ asset.id|stringformat:"s"|truncatechars:3 }}</td>
<td title="{{ asset.location }}">{{ asset.location|default:"-"|truncatechars:5 }}</td>
<td title="{{ asset.cabinet }}">{{ asset.cabinet|default:"-"|truncatechars:3 }}</td>
<td title="{{ asset.cabinet_position }}">{{ asset.cabinet_position|default:"-"|truncatechars:10 }}</td>
<td><a href="{% url 'asset_detail' asset.pk %}" class="text-info" title="{{ asset.asset_number }}">{{ asset.asset_number|truncatechars:3 }}</a></td>
@@ -101,7 +102,6 @@
<td><span class="badge bg-secondary">{{ asset.category.name }}</span></td>
<td>{{ asset.brand }} {% if asset.model %}{{ asset.model }}{% endif %}</td>
<td>{% if asset.asset_value %}¥{{ asset.asset_value }}{% else %}-{% endif %}</td>
<td title="{{ asset.location }}">{{ asset.location|default:"-"|truncatechars:5 }}</td>
<td><code>{{ asset.bmc_address|default:"-" }}</code></td>
<td><code>{{ asset.ip_address|default:"-" }}</code></td>
<td>{{ asset.gpu_type|default:"-" }}</td>