|
|
@@ -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>
|