From 76472bcd8e17479d77e106286b7865590cac4115 Mon Sep 17 00:00:00 2001 From: shizhong <124974919@qq.com> Date: Tue, 13 Jun 2023 12:34:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE=E5=89=8D=E7=AB=AF=E7=9A=84?= =?UTF-8?q?=E6=A8=A1=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dict.ts | 3 +- src/views/infra/codegen/PreviewCode.vue | 2 +- .../codegen/components/GenerateInfoForm.vue | 56 ++++++++++++------- 3 files changed, 38 insertions(+), 23 deletions(-) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 05c70dad..eececb99 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -21,7 +21,7 @@ export interface DictDataType { } export const getDictOptions = (dictType: string) => { - return dictStore.getDictByType(dictType) + return dictStore.getDictByType(dictType) || [] } export const getIntDictOptions = (dictType: string) => { @@ -118,6 +118,7 @@ export enum DICT_TYPE { INFRA_API_ERROR_LOG_PROCESS_STATUS = 'infra_api_error_log_process_status', INFRA_CONFIG_TYPE = 'infra_config_type', INFRA_CODEGEN_TEMPLATE_TYPE = 'infra_codegen_template_type', + INFRA_CODEGEN_FRONT_TYPE = 'infra_codegen_front_type', INFRA_CODEGEN_SCENE = 'infra_codegen_scene', INFRA_FILE_STORAGE = 'infra_file_storage', diff --git a/src/views/infra/codegen/PreviewCode.vue b/src/views/infra/codegen/PreviewCode.vue index 6a81499d..5dd3907b 100644 --- a/src/views/infra/codegen/PreviewCode.vue +++ b/src/views/infra/codegen/PreviewCode.vue @@ -15,7 +15,7 @@ v-loading="loading" element-loading-text="生成文件目录中..." > - + + + + + + + + + @@ -25,6 +38,26 @@ + + + + + + @@ -115,27 +148,6 @@ - - - - - - -