mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	增加节点列表
This commit is contained in:
		@@ -27,7 +27,7 @@ func (this *CreateAction) RunGet(params struct{}) {
 | 
			
		||||
	}
 | 
			
		||||
	this.Data["hasDomains"] = hasDomainsResp.Exist
 | 
			
		||||
 | 
			
		||||
	// 集群总数
 | 
			
		||||
	// 菜单:集群总数
 | 
			
		||||
	totalResp, err := this.RPC().NodeClusterRPC().CountAllEnabledNodeClusters(this.AdminContext(), &pb.CountAllEnabledNodeClustersRequest{})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		this.ErrorPage(err)
 | 
			
		||||
@@ -35,6 +35,14 @@ func (this *CreateAction) RunGet(params struct{}) {
 | 
			
		||||
	}
 | 
			
		||||
	this.Data["totalNodeClusters"] = totalResp.Count
 | 
			
		||||
 | 
			
		||||
	// 菜单:节点总数
 | 
			
		||||
	totalNodesResp, err := this.RPC().NodeRPC().CountAllEnabledNodes(this.AdminContext(), &pb.CountAllEnabledNodesRequest{})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		this.ErrorPage(err)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	this.Data["totalNodes"] = totalNodesResp.Count
 | 
			
		||||
 | 
			
		||||
	this.Show()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user