From 1dd367b57c8673df2017f181a8ef0acce4aa5618 Mon Sep 17 00:00:00 2001 From: shy Date: Tue, 27 Aug 2024 23:05:18 +0800 Subject: [PATCH] add some --- src/guanlixitong/common.go | 4 ++++ src/operation/portal.json | 13 +++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/guanlixitong/common.go b/src/guanlixitong/common.go index abd3fa5..f0900bd 100644 --- a/src/guanlixitong/common.go +++ b/src/guanlixitong/common.go @@ -3,6 +3,7 @@ package guanlixitong import ( "shylinux.com/x/ice" kit "shylinux.com/x/toolkits" + "strconv" "shylinux.com/x/community/src/gonganxitong" "shylinux.com/x/enterprise/src/guanlixitong/model" @@ -28,6 +29,9 @@ func (s Table) Inputs(m *ice.Message, arg ...string) { } func (s Table) RewriteAppend(m *ice.Message, arg ...string) *ice.Message { m.RewriteAppend(func(value, key string, index int) string { + if _, e := strconv.ParseInt(value, 10, 64); e != nil { + return value + } switch key { case model.USER_GROUP_ROLE: value = UserGroupRole(kit.Int(value)).String() diff --git a/src/operation/portal.json b/src/operation/portal.json index 13364d0..82663eb 100644 --- a/src/operation/portal.json +++ b/src/operation/portal.json @@ -1,16 +1,16 @@ { "portal": "系统运维", - "placeCreate": "创建场景", - "placeRemove": "删除场景", + "placeCreate": "创建集群", + "placeRemove": "删除集群", "publish": "系统发布", "icons": { "publish": "https://img.icons8.com/officel/80/activity-grid.png" }, "input": { - "My Cloud": "我的场景", + "My Cloud": "我的集群", "user_cloud_role": "用户角色", - "cloud_name": "场景名称", - "cloud_type": "场景类型" + "cloud_name": "集群名称", + "cloud_type": "集群类型" }, "value": { "user_cloud_role": { @@ -20,7 +20,8 @@ "worker": "工作人员", "server": "服务人员", "style": { - "creator": "danger" + "creator": "danger", + "leader": "danger" } }, "cloud_type": {