From b72c823bfa5ebb4bf56ea30254cea3f42d56c016 Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Tue, 16 Jul 2024 07:35:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20:sparkles:=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=94=9F=E6=88=90=E5=AD=97=E6=AE=B5=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/generator/index.vue | 133 +++++++++++++++++++++++++++++++++- 1 file changed, 130 insertions(+), 3 deletions(-) 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; }); } }