优化集群没有节点时的提示

This commit is contained in:
GoEdgeLab
2021-04-18 15:17:49 +08:00
parent af6e24a2a5
commit c5b0bd277c
4 changed files with 31 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
{$template "menu"}
<form class="ui form" action="/clusters/cluster">
<form class="ui form" action="/clusters/cluster" v-show="countAll > 0">
<input type="hidden" name="clusterId" :value="clusterId"/>
<div class="ui fields inline">
<div class="ui field" v-if="regions.length > 0">
@@ -40,7 +40,12 @@
</div>
</form>
<p class="comment" v-if="nodes.length == 0">暂时还没有节点。</p>
<div v-if="countAll == 0">
<not-found-box message="当前集群下还没有节点,至少添加一个节点后才能提供服务。"></not-found-box>
</div>
<div v-if="countAll > 0">
<p class="comment" v-if="nodes.length == 0">暂时还没有节点。</p>
</div>
<table class="ui table selectable celled" v-if="nodes.length > 0">
<thead>