diff --git a/src/views/infra/codegen/EditTable.vue b/src/views/infra/codegen/EditTable.vue index 0ed50a90..5b38fe7a 100644 --- a/src/views/infra/codegen/EditTable.vue +++ b/src/views/infra/codegen/EditTable.vue @@ -1,8 +1,7 @@ diff --git a/src/views/infra/codegen/components/BasicInfoForm.vue b/src/views/infra/codegen/components/BasicInfoForm.vue index 7e2c62ac..1bba0c62 100644 --- a/src/views/infra/codegen/components/BasicInfoForm.vue +++ b/src/views/infra/codegen/components/BasicInfoForm.vue @@ -19,10 +19,20 @@ diff --git a/src/views/infra/codegen/components/data.ts b/src/views/infra/codegen/components/data.ts index 4b0be0e0..e5db223b 100644 --- a/src/views/infra/codegen/components/data.ts +++ b/src/views/infra/codegen/components/data.ts @@ -3,19 +3,25 @@ import { FormSchema } from '@/components/Form' import { getIntDictOptions, DICT_TYPE } from '@/utils/dict' export const basicInfoSchemas: FormSchema[] = [ + { + label: '基本信息', + field: 'basicInfo', + component: 'Divider', + colProps: { span: 24 } + }, { label: '表名称', field: 'tableName', required: true, component: 'Input', - colProps: { span: 24 } + colProps: { span: 12 } }, { label: '表描述', field: 'tableComment', required: true, component: 'Input', - colProps: { span: 24 } + colProps: { span: 12 } }, { label: '实体类名称', @@ -23,24 +29,21 @@ export const basicInfoSchemas: FormSchema[] = [ required: true, helpMessage: '默认去除表名的前缀。如果存在重复,则需要手动添加前缀,避免 MyBatis 报 Alias 重复的问题。', component: 'Input', - colProps: { span: 24 } + colProps: { span: 12 } }, { label: '作者', field: 'author', required: true, component: 'Input', - colProps: { span: 24 } + colProps: { span: 12 } }, { - label: '备注', - field: 'remark', - component: 'InputTextArea', + label: '生成信息', + field: 'genInfo', + component: 'Divider', colProps: { span: 24 } - } -] - -export const genInfoSchemas: FormSchema[] = [ + }, { label: '生成模板', field: 'templateType', @@ -49,7 +52,7 @@ export const genInfoSchemas: FormSchema[] = [ componentProps: { options: getIntDictOptions(DICT_TYPE.INFRA_CODEGEN_TEMPLATE_TYPE) }, - colProps: { span: 24 } + colProps: { span: 12 } }, { label: '生成场景', @@ -59,7 +62,7 @@ export const genInfoSchemas: FormSchema[] = [ componentProps: { options: getIntDictOptions(DICT_TYPE.INFRA_CODEGEN_SCENE) }, - colProps: { span: 24 } + colProps: { span: 12 } }, { label: '模块名', @@ -67,7 +70,7 @@ export const genInfoSchemas: FormSchema[] = [ required: true, helpMessage: '模块名,即一级目录,例如 system、infra、tool 等等', component: 'Input', - colProps: { span: 24 } + colProps: { span: 12 } }, { label: '业务名', @@ -75,7 +78,7 @@ export const genInfoSchemas: FormSchema[] = [ required: true, component: 'Input', helpMessage: '业务名,即二级目录,例如 user、permission、dict 等等', - colProps: { span: 24 } + colProps: { span: 12 } }, { label: '类名称', @@ -83,7 +86,7 @@ export const genInfoSchemas: FormSchema[] = [ required: true, component: 'Input', helpMessage: '类名称(首字母大写),例如SysUser、SysMenu、SysDictData 等等', - colProps: { span: 24 } + colProps: { span: 12 } }, { label: '类描述', @@ -91,7 +94,7 @@ export const genInfoSchemas: FormSchema[] = [ required: true, component: 'Input', helpMessage: '用作类描述,例如 用户', - colProps: { span: 24 } + colProps: { span: 12 } }, { label: '上级菜单', @@ -107,7 +110,7 @@ export const genInfoSchemas: FormSchema[] = [ }, handleTree: 'id' }, - colProps: { span: 24 } + colProps: { span: 12 } }, { label: '自定义路径', @@ -116,6 +119,12 @@ export const genInfoSchemas: FormSchema[] = [ helpMessage: '填写磁盘绝对路径,若不填写,则生成到当前Web项目下', defaultValue: '/', ifShow: ({ values }) => values.genType === '1', + colProps: { span: 12 } + }, + { + label: '备注', + field: 'remark', + component: 'InputTextArea', colProps: { span: 24 } } ] diff --git a/src/views/infra/codegen/index.vue b/src/views/infra/codegen/index.vue index 0825abbf..9989ffbf 100644 --- a/src/views/infra/codegen/index.vue +++ b/src/views/infra/codegen/index.vue @@ -9,7 +9,7 @@