From 6536ace4f7c40e009ac0a4dc0db616cb2ef61de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Wed, 25 Aug 2021 11:40:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=9B=86=E7=BE=A4=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E8=8A=82=E7=82=B9=E6=97=B6=EF=BC=8C=E5=9C=A8=E7=9C=8B?= =?UTF-8?q?=E6=9D=BF=E6=8F=90=E7=A4=BA=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/actions/default/dashboard/boards/index.go | 2 ++ internal/web/actions/default/dashboard/index.go | 2 ++ web/views/@default/dashboard/boards/index.html | 6 ++++++ web/views/@default/dashboard/index.html | 6 ++++++ 4 files changed, 16 insertions(+) diff --git a/internal/web/actions/default/dashboard/boards/index.go b/internal/web/actions/default/dashboard/boards/index.go index 5702f865..e4cf3ac2 100644 --- a/internal/web/actions/default/dashboard/boards/index.go +++ b/internal/web/actions/default/dashboard/boards/index.go @@ -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, diff --git a/internal/web/actions/default/dashboard/index.go b/internal/web/actions/default/dashboard/index.go index db3b7db0..f9cde459 100644 --- a/internal/web/actions/default/dashboard/index.go +++ b/internal/web/actions/default/dashboard/index.go @@ -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, diff --git a/web/views/@default/dashboard/boards/index.html b/web/views/@default/dashboard/boards/index.html index fcadfe09..e2536719 100644 --- a/web/views/@default/dashboard/boards/index.html +++ b/web/views/@default/dashboard/boards/index.html @@ -1,6 +1,12 @@ {$layout} {$template "/echarts"} + +
+ + 还没有在集群中添加节点,现在去添加?添加节点后才可部署网站服务。 +
+
diff --git a/web/views/@default/dashboard/index.html b/web/views/@default/dashboard/index.html index a25f1130..4a7cea71 100644 --- a/web/views/@default/dashboard/index.html +++ b/web/views/@default/dashboard/index.html @@ -1,6 +1,12 @@ {$layout} {$template "/echarts"} + + +