Skip to content

Commit 6dce758

Browse files
committed
fix(node): 资源信息样式修复
1 parent a9d9681 commit 6dce758

File tree

1 file changed

+13
-9
lines changed
  • web/dashboard/src/business/cluster/nodes/detail

1 file changed

+13
-9
lines changed

web/dashboard/src/business/cluster/nodes/detail/index.vue

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,22 +150,26 @@
150150
<tr>
151151
<td>{{ $t("business.pod.address") }}</td>
152152
<td>
153-
<span v-for="(address,index) in item.status.addresses" v-bind:key="index">
154-
{{ address.type }} : {{ address.address }}
155-
</span>
153+
<div v-for="(address,index) in item.status.addresses" v-bind:key="index">
154+
<el-tag type="success">{{ address.type }} : {{ address.address }}</el-tag>
155+
</div>
156156
</td>
157157
</tr>
158158
<tr>
159159
<td>Allocatable</td>
160-
<td><span>
161-
CPU:{{item.status.allocatable.cpu}} Memory:{{item.status.allocatable.memory}} Pods:{{item.status.allocatable.pods}}
162-
</span></td>
160+
<td>
161+
<div><el-tag type="success">CPU : {{item.status.allocatable.cpu}}</el-tag></div>
162+
<div><el-tag type="success">Memory : {{item.status.allocatable.memory}}</el-tag></div>
163+
<div><el-tag type="success">Pods : {{item.status.allocatable.pods}}</el-tag></div>
164+
</td>
163165
</tr>
164166
<tr>
165167
<td>Capacity</td>
166-
<td><span>
167-
CPU:{{item.status.capacity.cpu}} Memory:{{item.status.capacity.memory}} Pods:{{item.status.capacity.pods}}
168-
</span></td>
168+
<td>
169+
<div><el-tag type="success">CPU : {{item.status.capacity.cpu}}</el-tag></div>
170+
<div><el-tag type="success">Memory : {{item.status.capacity.memory}}</el-tag></div>
171+
<div><el-tag type="success">Pods : {{item.status.capacity.pods}}</el-tag></div>
172+
</td>
169173
</tr>
170174
</table>
171175
</el-tab-pane>

0 commit comments

Comments
 (0)