refactor: dict

This commit is contained in:
xingyu
2022-11-16 23:15:14 +08:00
parent 7c0c123b9a
commit 7455348a6e
39 changed files with 155 additions and 54 deletions

View File

@ -12,7 +12,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
{
title: '日志类型',
field: 'logType',
dictType: DICT_TYPE.SYSTEM_LOGIN_TYPE
dictType: DICT_TYPE.SYSTEM_LOGIN_TYPE,
dictData: 'number'
},
{
title: '用户名称',
@ -26,19 +27,26 @@ const crudSchemas = reactive<VxeCrudSchema>({
},
{
title: '浏览器',
field: 'userAgent' // TODO 星语调宽一点UA 稍微多展示一点,虽然最终都会缩略
field: 'userAgent',
table: {
width: 100
}
},
{
title: '登陆结果',
field: 'result',
dictType: DICT_TYPE.SYSTEM_LOGIN_RESULT
dictType: DICT_TYPE.SYSTEM_LOGIN_RESULT,
dictData: 'number'
},
{
title: '登录日期', // TODO 星语:有点窄,看看咋调宽一点,避免日期展示不全
title: '登录日期',
field: 'createTime',
formatter: 'formatDate',
isSearch: true,
table: {
width: 100
},
search: {
show: true,
itemRender: {
name: 'XDataTimePicker'
}