mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-03 10:20:25 +08:00
增加用户系统界面管理、用户可以设置关联集群
This commit is contained in:
@@ -35,6 +35,14 @@ func (this *UserAction) RunGet(params struct {
|
||||
return
|
||||
}
|
||||
|
||||
var clusterMap maps.Map = nil
|
||||
if user.Cluster != nil {
|
||||
clusterMap = maps.Map{
|
||||
"id": user.Cluster.Id,
|
||||
"name": user.Cluster.Name,
|
||||
}
|
||||
}
|
||||
|
||||
this.Data["user"] = maps.Map{
|
||||
"id": user.Id,
|
||||
"username": user.Username,
|
||||
@@ -44,6 +52,7 @@ func (this *UserAction) RunGet(params struct {
|
||||
"remark": user.Remark,
|
||||
"mobile": user.Mobile,
|
||||
"isOn": user.IsOn,
|
||||
"cluster": clusterMap,
|
||||
}
|
||||
|
||||
this.Show()
|
||||
|
||||
Reference in New Issue
Block a user