mirror of
https://shylinux.com/x/enterprise
synced 2025-04-25 17:18:06 +08:00
add some
This commit is contained in:
parent
376622172e
commit
1dd367b57c
@ -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()
|
||||
|
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user