mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
默认集群没有节点时,在看板提示添加
This commit is contained in:
@@ -49,6 +49,8 @@ func (this *IndexAction) RunGet(params struct{}) {
|
||||
return
|
||||
}
|
||||
this.Data["dashboard"] = maps.Map{
|
||||
"defaultClusterId": resp.DefaultNodeClusterId,
|
||||
|
||||
"countServers": resp.CountServers,
|
||||
"countNodeClusters": resp.CountNodeClusters,
|
||||
"countNodes": resp.CountNodes,
|
||||
|
||||
@@ -49,6 +49,8 @@ func (this *IndexAction) RunGet(params struct{}) {
|
||||
return
|
||||
}
|
||||
this.Data["dashboard"] = maps.Map{
|
||||
"defaultClusterId": resp.DefaultNodeClusterId,
|
||||
|
||||
"countServers": resp.CountServers,
|
||||
"countNodeClusters": resp.CountNodeClusters,
|
||||
"countNodes": resp.CountNodes,
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
{$layout}
|
||||
{$template "/echarts"}
|
||||
|
||||
<!-- 没有节点提醒 -->
|
||||
<div class="ui icon message warning" v-if="dashboard.defaultClusterId > 0 && dashboard.countNodes == 0">
|
||||
<i class="icon warning circle"></i>
|
||||
<a :href="'/clusters/cluster/createNode?clusterId=' + dashboard.defaultClusterId">还没有在集群中添加节点,现在去添加?添加节点后才可部署网站服务。</a>
|
||||
</div>
|
||||
|
||||
<!-- 升级提醒 -->
|
||||
<div class="ui icon message error" v-if="nodeUpgradeInfo.count > 0">
|
||||
<i class="icon warning circle"></i>
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
{$layout}
|
||||
{$template "/echarts"}
|
||||
|
||||
<!-- 没有节点提醒 -->
|
||||
<div class="ui icon message warning" v-if="dashboard.defaultClusterId > 0 && dashboard.countNodes == 0">
|
||||
<i class="icon warning circle"></i>
|
||||
<a :href="'/clusters/cluster/createNode?clusterId=' + dashboard.defaultClusterId">还没有在集群中添加节点,现在去添加?添加节点后才可部署网站服务。</a>
|
||||
</div>
|
||||
|
||||
<!-- 升级提醒 -->
|
||||
<div class="ui icon message error" v-if="nodeUpgradeInfo.count > 0">
|
||||
<i class="icon warning circle"></i>
|
||||
|
||||
Reference in New Issue
Block a user