fix: dict

This commit is contained in:
xingyu4j
2022-11-15 09:17:26 +08:00
parent 3b107f56a0
commit 716266693b
4 changed files with 12 additions and 17 deletions

View File

@ -1,8 +1,6 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { DICT_TYPE } from '@/utils/dict'
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
const { t } = useI18n() // 国际化
// CrudSchema
const crudSchemas = reactive<VxeCrudSchema>({
@ -16,10 +14,6 @@ const crudSchemas = reactive<VxeCrudSchema>({
field: 'logType',
dictType: DICT_TYPE.SYSTEM_LOGIN_TYPE
},
{
title: '用户类型',
field: 'userType'
},
{
title: '用户名称',
field: 'username',
@ -40,10 +34,10 @@ const crudSchemas = reactive<VxeCrudSchema>({
dictType: DICT_TYPE.SYSTEM_LOGIN_RESULT
},
{
title: t('common.createTime'),
title: '登录日期',
field: 'createTime',
formatter: 'formatDate',
isForm: false,
isSearch: true,
search: {
itemRender: {
name: 'XDataTimePicker'