优化Dashboard界面

This commit is contained in:
刘祥超
2021-01-21 19:22:06 +08:00
parent bbf7e2898f
commit ea36e60899
6 changed files with 31 additions and 8 deletions
@@ -46,6 +46,11 @@ func (this *IndexAction) RunGet(params struct{}) {
"countAPINodes": resp.CountAPINodes,
"countDBNodes": resp.CountDBNodes,
"countUserNodes": resp.CountUserNodes,
"canGoServers": configloaders.AllowModule(this.AdminId(), configloaders.AdminModuleCodeServer),
"canGoNodes": configloaders.AllowModule(this.AdminId(), configloaders.AdminModuleCodeNode),
"canGoSettings": configloaders.AllowModule(this.AdminId(), configloaders.AdminModuleCodeSetting),
"canGoUsers": configloaders.AllowModule(this.AdminId(), configloaders.AdminModuleCodeUser),
}
// 今日流量
+1 -1
View File
@@ -133,7 +133,7 @@ func (this *userMustAuth) modules(adminId int64) []maps.Map {
{
"code": "dashboard",
"module": configloaders.AdminModuleCodeDashboard,
"name": "看板",
"name": "数据看板",
"icon": "dashboard",
},
{