From e070bc01bd0cfde063b66f0bc0f0b54fbbe4007d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com> Date: Fri, 7 Jul 2023 01:07:15 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E6=96=B0=E5=A2=9E=E7=BC=96=E8=BE=91=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E6=97=B6=E9=94=99=E8=AF=AF=E7=9A=84=E5=86=99=E6=B3=95=EF=BC=88?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E6=A8=A1=E6=9D=BF=EF=BC=89?= =?UTF-8?q?=20#I7CH2V=20#I6SVT3=20#I6KOVG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../snowy-plugin-gen/src/main/resources/frontend/Api.js.btl | 2 +- .../snowy-plugin-gen/src/main/resources/frontend/form.vue.btl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/snowy-plugin/snowy-plugin-gen/src/main/resources/frontend/Api.js.btl b/snowy-plugin/snowy-plugin-gen/src/main/resources/frontend/Api.js.btl index f9d2826d..f151e42e 100644 --- a/snowy-plugin/snowy-plugin-gen/src/main/resources/frontend/Api.js.btl +++ b/snowy-plugin/snowy-plugin-gen/src/main/resources/frontend/Api.js.btl @@ -19,7 +19,7 @@ export default { }, // 提交${functionName}表单 edit为true时为编辑,默认为新增 ${classNameFirstLower}SubmitForm(data, edit = false) { - return request(edit ? 'add' : 'edit', data) + return request(edit ? 'edit' : 'add', data) }, // 删除${functionName} ${classNameFirstLower}Delete(data) { diff --git a/snowy-plugin/snowy-plugin-gen/src/main/resources/frontend/form.vue.btl b/snowy-plugin/snowy-plugin-gen/src/main/resources/frontend/form.vue.btl index 5a8b14ad..e261a897 100644 --- a/snowy-plugin/snowy-plugin-gen/src/main/resources/frontend/form.vue.btl +++ b/snowy-plugin/snowy-plugin-gen/src/main/resources/frontend/form.vue.btl @@ -157,7 +157,7 @@ ${classNameFirstLower}Api <% for(var i = 0; i < configList.~size; i++) { %> <% if(configList[i].needTableId) { %> - .${classNameFirstLower}SubmitForm(formDataParam, !formDataParam.${configList[i].fieldNameCamelCase}) + .${classNameFirstLower}SubmitForm(formDataParam, formDataParam.${configList[i].fieldNameCamelCase}) <% } %> <% } %> .then(() => {