[区域]可以设置区域说明文字

This commit is contained in:
刘祥超
2020-12-10 22:21:26 +08:00
parent a6ad4a739d
commit 3138894d32
6 changed files with 41 additions and 15 deletions

View File

@@ -30,9 +30,10 @@ func (this *UpdatePopupAction) RunGet(params struct {
}
this.Data["region"] = maps.Map{
"id": region.Id,
"isOn": region.IsOn,
"name": region.Name,
"id": region.Id,
"isOn": region.IsOn,
"name": region.Name,
"description": region.Description,
}
this.Show()
@@ -41,8 +42,9 @@ func (this *UpdatePopupAction) RunGet(params struct {
func (this *UpdatePopupAction) RunPost(params struct {
RegionId int64
Name string
IsOn bool
Name string
Description string
IsOn bool
Must *actions.Must
CSRF *actionutils.CSRF
@@ -56,6 +58,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
_, err := this.RPC().NodeRegionRPC().UpdateNodeRegion(this.AdminContext(), &pb.UpdateNodeRegionRequest{
NodeRegionId: params.RegionId,
Name: params.Name,
Description: params.Description,
IsOn: params.IsOn,
})
if err != nil {