diff --git a/src/views/tool/generator/GenConfigDrawer.vue b/src/views/tool/generator/GenConfigDrawer.vue
index 64a3f5f5..7d47e6b3 100644
--- a/src/views/tool/generator/GenConfigDrawer.vue
+++ b/src/views/tool/generator/GenConfigDrawer.vue
@@ -66,11 +66,28 @@
+
+
+
- {{ record.fieldType }}
-
-
-
+
+ String
+ Integer
+ Long
+ Float
+ Double
+ Boolean
+ BigDecimal
+ LocalDate
+ LocalTime
+ LocalDateTime
+
@@ -93,6 +110,7 @@
v-if="record.showInForm || record.showInQuery"
v-model="record.formType"
:options="form_type_enum"
+ :default-value="1"
placeholder="请选择表单类型"
/>
无需设置
@@ -102,6 +120,7 @@
v-if="record.showInQuery"
v-model="record.queryType"
:options="query_type_enum"
+ :default-value="1"
placeholder="请选择查询方式"
/>
无需设置
@@ -138,14 +157,14 @@ const { form_type_enum, query_type_enum } = useDict('form_type_enum', 'query_typ
// Table 字段配置
const columns: TableInstanceColumns[] = [
- { title: '名称', dataIndex: 'fieldName', width: 125, ellipsis: true, tooltip: true },
- { title: '类型', dataIndex: 'fieldType' },
+ { title: '名称', slotName: 'fieldName' },
+ { title: '类型', slotName: 'fieldType' },
{ title: '描述', slotName: 'comment', width: 170 },
{ title: '列表', slotName: 'showInList', width: 60, align: 'center' },
{ title: '表单', slotName: 'showInForm', width: 60, align: 'center' },
{ title: '必填', slotName: 'isRequired', width: 60, align: 'center' },
{ title: '查询', slotName: 'showInQuery', width: 60, align: 'center' },
- { title: '表单类型', slotName: 'formType', width: 150 },
+ { title: '表单类型', slotName: 'formType' },
{ title: '查询方式', slotName: 'queryType' },
{ title: '关联字典', slotName: 'dictCode' }
]