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

@ -26,6 +26,7 @@ const crudSchemas = reactive<CrudSchema[]>([
label: '用户类型',
field: 'userType',
dictType: DICT_TYPE.USER_TYPE,
dictData: 'number',
search: {
show: true
}

View File

@ -69,6 +69,7 @@ const crudSchemas = reactive<CrudSchema[]>([
label: '处理状态',
field: 'processStatus',
dictType: DICT_TYPE.INFRA_API_ERROR_LOG_PROCESS_STATUS,
dictData: 'number',
search: {
show: true
}

View File

@ -52,6 +52,7 @@ const crudSchemas = reactive<CrudSchema[]>([
label: '系统内置',
field: 'type',
dictType: DICT_TYPE.INFRA_CONFIG_TYPE,
dictData: 'number',
search: {
show: true
}

View File

@ -48,6 +48,7 @@ const crudSchemas = reactive<CrudSchema[]>([
label: '存储器',
field: 'storage',
dictType: DICT_TYPE.INFRA_FILE_STORAGE,
dictData: 'number',
search: {
show: true
}
@ -55,7 +56,8 @@ const crudSchemas = reactive<CrudSchema[]>([
{
label: '主配置',
field: 'primary',
dictType: DICT_TYPE.INFRA_BOOLEAN_STRING
dictType: DICT_TYPE.INFRA_BOOLEAN_STRING,
dictData: 'number'
},
{
label: t('form.remark'),

View File

@ -37,6 +37,7 @@ const crudSchemas = reactive<CrudSchema[]>([
label: t('common.status'),
field: 'status',
dictType: DICT_TYPE.INFRA_JOB_STATUS,
dictData: 'number',
form: {
show: false
},

View File

@ -74,6 +74,7 @@ const crudSchemas = reactive<CrudSchema[]>([
label: t('common.status'),
field: 'status',
dictType: DICT_TYPE.INFRA_JOB_LOG_STATUS,
dictData: 'number',
search: {
show: true
}