2020-09-06 16:19:34 +08:00
|
|
|
{$layout}
|
|
|
|
|
{$template "menu"}
|
|
|
|
|
|
|
|
|
|
<p class="comment" v-if="clusters.length == 0">暂时还没有集群。</p>
|
|
|
|
|
|
2020-11-16 13:03:45 +08:00
|
|
|
<table class="ui table selectable celled" v-if="clusters.length > 0">
|
2020-09-06 16:19:34 +08:00
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>集群名称</th>
|
2020-11-27 10:41:54 +08:00
|
|
|
<th class="center width10">节点数量</th>
|
|
|
|
|
<th class="center width10">在线节点数量</th>
|
2020-11-16 13:03:45 +08:00
|
|
|
<th>DNS域名</th>
|
2020-09-06 16:19:34 +08:00
|
|
|
<th class="two op">操作</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tr v-for="cluster in clusters">
|
|
|
|
|
<td>{{cluster.name}}</td>
|
2020-11-16 13:03:45 +08:00
|
|
|
<td class="center">
|
2020-10-09 11:07:01 +08:00
|
|
|
<a :href="'/clusters/cluster?clusterId=' + cluster.id" v-if="cluster.countAllNodes > 0"><span :class="{red:cluster.countAllNodes > cluster.countActiveNodes}">{{cluster.countAllNodes}}</span></a>
|
2020-09-26 08:07:18 +08:00
|
|
|
<span class="disabled" v-else="">-</span>
|
2020-11-27 10:41:54 +08:00
|
|
|
|
|
|
|
|
<div v-if="cluster.countUpgradeNodes > 0" style="margin-top:0.5em">
|
|
|
|
|
<a :href="'/clusters/cluster/upgradeRemote?clusterId=' + cluster.id" title="点击进入远程升级页面"><span class="red">有节点需要升级</span></a>
|
|
|
|
|
</div>
|
2020-09-26 08:07:18 +08:00
|
|
|
</td>
|
2020-11-16 13:03:45 +08:00
|
|
|
<td class="center">
|
2020-09-26 08:07:18 +08:00
|
|
|
<a :href="'/clusters/cluster?clusterId=' + cluster.id + '&activeState=1'" v-if="cluster.countActiveNodes > 0"><span class="green">{{cluster.countActiveNodes}}</span></a>
|
|
|
|
|
<span class="disabled" v-else>-</span>
|
|
|
|
|
</td>
|
2020-09-06 16:19:34 +08:00
|
|
|
<td>
|
2020-11-16 13:03:45 +08:00
|
|
|
<span v-if="cluster.dnsName.length > 0">
|
|
|
|
|
<var>{{cluster.dnsName}}</var>.<span v-if="cluster.dnsDomainName.length > 0">{{cluster.dnsDomainName}}</span><span v-else class="disabled">主域名</span>
|
|
|
|
|
<span v-if="cluster.dnsDomainId > 0"><link-icon :href="'/dns/clusters/cluster?clusterId=' + cluster.id"></link-icon></span>
|
|
|
|
|
</span>
|
2020-11-02 09:50:31 +08:00
|
|
|
<span v-else class="disabled">-</span>
|
2020-09-06 16:19:34 +08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
2020-10-25 19:45:42 +08:00
|
|
|
<a :href="'/clusters/cluster?clusterId=' + cluster.id">详情</a>
|
2020-09-06 16:19:34 +08:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<page-box></page-box>
|