Commit a9c7d8787241a4d217a47bcb00381316d8edaea4
1 parent
4941a43e
perf: 调整代码生成器基础信息顺序
Showing
1 changed file
with
25 additions
and
25 deletions
yudao-ui-admin-vue3/src/views/infra/codegen/components/BasicInfoForm.vue
| @@ -41,6 +41,21 @@ const rules = reactive({ | @@ -41,6 +41,21 @@ const rules = reactive({ | ||
| 41 | }) | 41 | }) |
| 42 | const schema = reactive<FormSchema[]>([ | 42 | const schema = reactive<FormSchema[]>([ |
| 43 | { | 43 | { |
| 44 | + label: '上级菜单', | ||
| 45 | + field: 'parentMenuId', | ||
| 46 | + component: 'TreeSelect', | ||
| 47 | + componentProps: { | ||
| 48 | + data: menuOptions, | ||
| 49 | + props: defaultProps, | ||
| 50 | + checkStrictly: true, | ||
| 51 | + nodeKey: 'id' | ||
| 52 | + }, | ||
| 53 | + labelMessage: '分配到指定菜单下,例如 系统管理', | ||
| 54 | + colProps: { | ||
| 55 | + span: 24 | ||
| 56 | + } | ||
| 57 | + }, | ||
| 58 | + { | ||
| 44 | label: '表名称', | 59 | label: '表名称', |
| 45 | field: 'tableName', | 60 | field: 'tableName', |
| 46 | component: 'Input', | 61 | component: 'Input', |
| @@ -65,6 +80,15 @@ const schema = reactive<FormSchema[]>([ | @@ -65,6 +80,15 @@ const schema = reactive<FormSchema[]>([ | ||
| 65 | } | 80 | } |
| 66 | }, | 81 | }, |
| 67 | { | 82 | { |
| 83 | + label: '类名称', | ||
| 84 | + field: 'className', | ||
| 85 | + component: 'Input', | ||
| 86 | + labelMessage: '类名称(首字母大写),例如SysUser、SysMenu、SysDictData 等等', | ||
| 87 | + colProps: { | ||
| 88 | + span: 12 | ||
| 89 | + } | ||
| 90 | + }, | ||
| 91 | + { | ||
| 68 | label: '生成模板', | 92 | label: '生成模板', |
| 69 | field: 'templateType', | 93 | field: 'templateType', |
| 70 | component: 'Select', | 94 | component: 'Select', |
| @@ -105,15 +129,6 @@ const schema = reactive<FormSchema[]>([ | @@ -105,15 +129,6 @@ const schema = reactive<FormSchema[]>([ | ||
| 105 | } | 129 | } |
| 106 | }, | 130 | }, |
| 107 | { | 131 | { |
| 108 | - label: '类名称', | ||
| 109 | - field: 'className', | ||
| 110 | - component: 'Input', | ||
| 111 | - labelMessage: '类名称(首字母大写),例如SysUser、SysMenu、SysDictData 等等', | ||
| 112 | - colProps: { | ||
| 113 | - span: 12 | ||
| 114 | - } | ||
| 115 | - }, | ||
| 116 | - { | ||
| 117 | label: '类描述', | 132 | label: '类描述', |
| 118 | field: 'classComment', | 133 | field: 'classComment', |
| 119 | component: 'Input', | 134 | component: 'Input', |
| @@ -123,21 +138,6 @@ const schema = reactive<FormSchema[]>([ | @@ -123,21 +138,6 @@ const schema = reactive<FormSchema[]>([ | ||
| 123 | } | 138 | } |
| 124 | }, | 139 | }, |
| 125 | { | 140 | { |
| 126 | - label: '上级菜单', | ||
| 127 | - field: 'parentMenuId', | ||
| 128 | - component: 'TreeSelect', | ||
| 129 | - componentProps: { | ||
| 130 | - data: menuOptions, | ||
| 131 | - props: defaultProps, | ||
| 132 | - checkStrictly: true, | ||
| 133 | - nodeKey: 'id' | ||
| 134 | - }, | ||
| 135 | - labelMessage: '分配到指定菜单下,例如 系统管理', | ||
| 136 | - colProps: { | ||
| 137 | - span: 12 | ||
| 138 | - } | ||
| 139 | - }, | ||
| 140 | - { | ||
| 141 | label: '作者', | 141 | label: '作者', |
| 142 | field: 'author', | 142 | field: 'author', |
| 143 | component: 'Input', | 143 | component: 'Input', |
| @@ -154,7 +154,7 @@ const schema = reactive<FormSchema[]>([ | @@ -154,7 +154,7 @@ const schema = reactive<FormSchema[]>([ | ||
| 154 | rows: 4 | 154 | rows: 4 |
| 155 | }, | 155 | }, |
| 156 | colProps: { | 156 | colProps: { |
| 157 | - span: 12 | 157 | + span: 24 |
| 158 | } | 158 | } |
| 159 | } | 159 | } |
| 160 | ]) | 160 | ]) |