From f603ccdc7111d7408684998f93193686479c0624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Sat, 15 Apr 2023 18:03:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt index 1db9a4d..7db664d 100644 --- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt +++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt @@ -317,7 +317,6 @@ $end {{ ${t}t('btn.submit') }} - @@ -333,8 +332,6 @@ $end const { proxy } = getCurrentInstance() // 选中${replaceDto.FistLowerPk}数组数组 const ids = ref([]) -const single = ref(true) -const multiple = ref(true) const loading = ref(false) const showSearch = ref(true) const queryParams = reactive({ @@ -486,11 +483,13 @@ ${end} /*************** form操作 ***************/ const formRef = ref() -const title = ref("") +const title = ref('') // 操作类型 1、add 2、edit 3、view const opertype = ref(0) const open = ref(false) const state = reactive({ + single: true, + multiple: true, form: {}, rules: { $foreach(column in genTable.Columns) @@ -510,7 +509,7 @@ $end } }) -const { form, rules, options } = toRefs(state) +const { form, rules, options, single, multiple } = toRefs(state) // 关闭dialog function cancel(){