feat(web): 增加账号最后登陆时间
This commit is contained in:
@@ -2,6 +2,9 @@ import {apiGet, useAmis} from '../../components/constants.js'
|
||||
import {userChangePasswordDialog} from "../../components/user/dialog-user-change-password.js";
|
||||
import {tabUser} from "./tab-user.js";
|
||||
import {tabOverview} from "./tab-overview.js";
|
||||
import {tabMarket} from "./tab-market.js";
|
||||
import {tabData} from "./tab-data.js";
|
||||
import {tabLog} from "./tab-log.js";
|
||||
|
||||
useAmis(information => {
|
||||
return {
|
||||
@@ -55,7 +58,10 @@ useAmis(information => {
|
||||
tabsMode: 'vertical',
|
||||
tabs: [
|
||||
tabOverview(),
|
||||
tabMarket(),
|
||||
tabData(),
|
||||
tabUser(),
|
||||
tabLog(),
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
9
gringotts-frontend/pages/index/tab-data.js
Normal file
9
gringotts-frontend/pages/index/tab-data.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export function tabData() {
|
||||
return {
|
||||
title: '数据管理',
|
||||
icon: 'fa fa-database',
|
||||
body: [
|
||||
'hello world'
|
||||
]
|
||||
}
|
||||
}
|
||||
10
gringotts-frontend/pages/index/tab-log.js
Normal file
10
gringotts-frontend/pages/index/tab-log.js
Normal file
@@ -0,0 +1,10 @@
|
||||
export function tabLog() {
|
||||
return {
|
||||
visibleOn: '${role === "ADMINISTRATOR"}',
|
||||
title: '系统日志',
|
||||
icon: 'fa fa-file',
|
||||
body: [
|
||||
'hello world'
|
||||
]
|
||||
}
|
||||
}
|
||||
9
gringotts-frontend/pages/index/tab-market.js
Normal file
9
gringotts-frontend/pages/index/tab-market.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export function tabMarket() {
|
||||
return {
|
||||
title: '数据市场',
|
||||
icon: 'fa fa-store',
|
||||
body: [
|
||||
'hello world'
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,12 @@
|
||||
import {apiGet, crudCommonOptions, mappingField, userRoleMapping, userStateMapping} from '../../components/constants.js'
|
||||
import {userCheckDialog} from "../../components/user/dialog-user-check.js";
|
||||
import {
|
||||
apiGet,
|
||||
copyField,
|
||||
crudCommonOptions,
|
||||
mappingField,
|
||||
userRoleMapping,
|
||||
userStateMapping
|
||||
} from '../../components/constants.js'
|
||||
import {userCheckDialog, userDetailDialog} from "../../components/user/dialog-user-check.js";
|
||||
import {userAdministratorRegisterDialog} from "../../components/user/dialog-user-register.js";
|
||||
|
||||
export function tabUser() {
|
||||
@@ -26,28 +33,38 @@ export function tabUser() {
|
||||
{
|
||||
name: 'username',
|
||||
label: '邮箱',
|
||||
...copyField(
|
||||
'username',
|
||||
undefined,
|
||||
undefined,
|
||||
userDetailDialog(),
|
||||
)
|
||||
},
|
||||
{
|
||||
label: '角色',
|
||||
width: 120,
|
||||
align: 'center',
|
||||
...mappingField('role', userRoleMapping)
|
||||
},
|
||||
{
|
||||
label: '账号状态',
|
||||
width: 80,
|
||||
align: 'center',
|
||||
...mappingField('state', userStateMapping)
|
||||
},
|
||||
{
|
||||
label: '创建时间',
|
||||
width: 150,
|
||||
align: 'center',
|
||||
type: 'tpl',
|
||||
tpl: '${DATETOSTR(createTime)}'
|
||||
tpl: "${IF(createTime, DATETOSTR(createTime), '-')}"
|
||||
},
|
||||
{
|
||||
label: '更新时间',
|
||||
label: '上次登陆时间',
|
||||
width: 150,
|
||||
align: 'center',
|
||||
type: 'tpl',
|
||||
tpl: '${DATETOSTR(updateTime)}'
|
||||
tpl: "${IF(lastLoginTime, DATETOSTR(lastLoginTime), '-')}"
|
||||
},
|
||||
{
|
||||
label: '操作',
|
||||
|
||||
Reference in New Issue
Block a user