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(){