From f3c624960002ba6288a7f82013c450f0b5827740 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 13 Apr 2023 00:21:32 +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 ++++++++++++------- src/views/system/dict/data/DictDataForm.vue | 3 +- src/views/system/dict/data/index.vue | 2 +- 5 files changed, 41 insertions(+), 25 deletions(-) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index d1d84242..03e17e75 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) => { @@ -117,6 +117,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 @@ - - - - - - -