diff --git a/src/views/generator/index.vue b/src/views/generator/index.vue index 689b5a48..288a8fa8 100644 --- a/src/views/generator/index.vue +++ b/src/views/generator/index.vue @@ -53,7 +53,7 @@ link @click="handleOpenDialog('config', scope.row.tableName)" > - + 配置
- 基础信息 - 字段配置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -172,6 +296,8 @@ const queryParams = reactive({ const pageData = ref([]); +const tableColumns = ref([]); + const dialog = reactive({ type: "", visible: false, @@ -213,6 +339,7 @@ function handleOpenDialog(type: string, tableName: string) { } else if (type === "config") { DatabaseAPI.getTableColumns(tableName).then((data) => { dialog.title = `配置 ${tableName}`; + tableColumns.value = data; }); } }