From 117ba1832e9fcdb4a7eaf36bef15ad31e4f51a01 Mon Sep 17 00:00:00 2001 From: lbw Date: Thu, 9 Feb 2023 21:30:05 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9B=AE=E5=BD=95=E5=86=99=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/gen/table.ts | 8 ++++++++ src/views/gen/table/generator.vue | 18 ++++++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/api/gen/table.ts b/src/api/gen/table.ts index 7db9199d..26b00012 100644 --- a/src/api/gen/table.ts +++ b/src/api/gen/table.ts @@ -52,6 +52,14 @@ export const useTableFieldSubmitApi = (dsName: string, tableName: string, fieldL return request.put('/gen/table/field/' + dsName + '/' + tableName, fieldList) } +export const useGeneratorCodeApi = (tableIds: any) => { + return request({ + url: '/gen/generator/code', + method: 'get', + params: { tableIds: tableIds } + }) +} + export const useGeneratorPreviewApi = (tableId: any) => { return request({ url: '/gen/generator/preview', diff --git a/src/views/gen/table/generator.vue b/src/views/gen/table/generator.vue index 75ffd4d3..c1ba1455 100644 --- a/src/views/gen/table/generator.vue +++ b/src/views/gen/table/generator.vue @@ -56,8 +56,8 @@ - zip压缩包 - 自定义路径 + ZIP 压缩包 + 自定义路径 @@ -83,7 +83,7 @@