From 99f92310e2725c5357771c2573b99120fafc058b Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 3 Apr 2023 00:35:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20Vue3=20=E6=A8=A1=E7=89=88?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=20title=E3=80=81visible=20=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/codegen/vue3/views/form.vue.vm | 14 +++++++------- .../main/resources/codegen/vue3/views/index.vue.vm | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/form.vue.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/form.vue.vm index 770ed1e75..99cce39f2 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/form.vue.vm +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/form.vue.vm @@ -1,5 +1,5 @@ @@ -129,8 +129,8 @@ import * as ${simpleClassName}Api from '@/api/${table.moduleName}/${classNameVar const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 -const modelVisible = ref(false) // 弹窗的是否展示 -const modelTitle = ref('') // 弹窗的标题 +const dialogVisible = ref(false) // 弹窗的是否展示 +const dialogTitle = ref('') // 弹窗的标题 const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 const formType = ref('') // 表单的类型:create - 新增;update - 修改 const formData = ref({ @@ -168,8 +168,8 @@ const formRef = ref() // 表单 Ref /** 打开弹窗 */ const open = async (type: string, id?: number) => { - modelVisible.value = true - modelTitle.value = t('action.' + type) + dialogVisible.value = true + dialogTitle.value = t('action.' + type) formType.value = type resetForm() // 修改时,设置数据 @@ -202,7 +202,7 @@ const submitForm = async () => { await ${simpleClassName}Api.update${simpleClassName}(data) message.success(t('common.updateSuccess')) } - modelVisible.value = false + dialogVisible.value = false // 发送操作成功的事件 emit('success') } finally { diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm index 1b9854e51..39463332c 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm @@ -97,6 +97,7 @@ #else @@ -214,7 +215,7 @@ const queryParams = reactive({ const queryFormRef = ref() // 搜索的表单 const exportLoading = ref(false) // 导出的加载中 -/** 查询参数列表 */ +/** 查询列表 */ const getList = async () => { loading.value = true try {