优化界面

This commit is contained in:
刘祥超
2021-08-16 14:44:32 +08:00
parent 1da5d1094f
commit c2576f4c62
24 changed files with 25 additions and 28 deletions

View File

@@ -52,7 +52,7 @@
</tr>
</thead>
<tr v-for="node in nodes">
<td><keyword :v-word="keyword">{{node.name}}</keyword></td>
<td><a :href="'/ns/clusters/cluster/node?clusterId=' + clusterId + '&nodeId=' + node.id"><keyword :v-word="keyword">{{node.name}}</keyword></a></td>
<td>
<span v-if="node.ipAddresses.length == 0" class="disabled">-</span>
<div v-else class="address-box">

View File

@@ -14,7 +14,7 @@
</tr>
</thead>
<tr v-for="cluster in clusters">
<td>{{cluster.name}}</td>
<td><a :href="'/ns/clusters/cluster?clusterId=' + cluster.id">{{cluster.name}}</a></td>
<td class="center">
<a :href="'/ns/clusters/cluster?clusterId=' + cluster.id" v-if="cluster.countAllNodes > 0"><span :class="{red:cluster.countAllNodes > cluster.countActiveNodes}">{{cluster.countAllNodes}}</span></a>
<span class="disabled" v-else="">-</span>

View File

@@ -42,7 +42,9 @@
</tr>
</thead>
<tr v-for="domain in domains">
<td><keyword :v-word="keyword">{{domain.name}}</keyword></td>
<td>
<a :href="'/ns/domains/domain?domainId=' + domain.id"><keyword :v-word="keyword">{{domain.name}}</keyword></a>
</td>
<td>
{{domain.cluster.name}}<link-icon :href="'/ns/clusters/cluster?clusterId=' + domain.cluster.id"></link-icon>
</td>