1
0

feat(web): 增加操作人

This commit is contained in:
2024-11-20 11:58:25 +08:00
parent eb49fce4ae
commit c45cdf03a9
9 changed files with 210 additions and 51 deletions

View File

@@ -7,25 +7,70 @@ const dialogBody = [
label: '邮箱',
},
{
type: 'control',
name: 'role',
label: '角色',
type: 'group',
body: [
mappingField('role', userRoleMapping),
{
type: 'control',
name: 'role',
label: '角色',
body: [
mappingField('role', userRoleMapping),
]
},
{
type: 'control',
name: 'state',
label: '账号状态',
body: [
mappingField('state', userStateMapping)
]
},
]
},
{
type: 'control',
name: 'state',
label: '账号状态',
type: 'group',
body: [
mappingField('state', userStateMapping)
{
type: 'input-text',
name: 'createdUsername',
label: '创建人',
},
{
type: 'input-datetime',
name: 'createdTime',
label: '创建时间',
},
]
},
{
type: 'input-datetime',
name: 'createTime',
label: '创建时间',
type: 'group',
body: [
{
type: 'input-text',
name: 'modifiedUsername',
label: '最后修改人',
},
{
type: 'input-datetime',
name: 'modifiedTime',
label: '最后修改时间',
},
]
},
{
type: 'group',
body: [
{
type: 'input-text',
name: 'checkedUsername',
label: '审核人',
},
{
type: 'input-datetime',
name: 'checkedTime',
label: '审核时间',
},
]
},
]
@@ -35,10 +80,14 @@ export function userDetailDialog() {
dialog: {
title: '账号详情',
actions: [],
size: 'md',
body: {
type: 'form',
initApi: apiGet('${base}/user_management/detail/${username}'),
...horizontalFormOptions(),
horizontal: {
left: 2,
},
static: true,
body: [
...dialogBody,
@@ -64,16 +113,20 @@ export function userCheckDialog() {
label: '同意',
level: 'primary',
actionType: 'ajax',
api: apiGet('${base}/user_management/enable/${username}'),
api: apiGet('${base}/user_management/check/${username}'),
confirmTitle: '审核通过',
confirmText: '确认通过账号为${username}通过审核吗?审核通过后将无法撤销。',
reload: '9200849e-a8e9-4752-b4fc-ae52dc46a205',
},
],
size: 'md',
body: {
type: 'form',
initApi: apiGet('${base}/user_management/detail/${username}'),
...horizontalFormOptions(),
horizontal: {
left: 2,
},
static: true,
body: dialogBody,
}