From 918e0b092d4989ed2b4621cb871cda50af06363d 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: Tue, 20 Sep 2022 21:43:36 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=A4=8D=E9=80=89=E6=A1=86=E4=BF=9D=E5=AD=98=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9C=AA=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt index f3f3237..bcd2694 100644 --- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt +++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/v3/Vue.txt @@ -475,6 +475,11 @@ $end function submitForm() { proxy.${refs}refs["formRef"].validate((valid) => { if (valid) { +$foreach(item in genTable.Columns) +$if(item.HtmlType == "checkbox") + form.value.${item.CsharpFieldFl} = form.value.${item.CsharpFieldFl}Checked.toString(); +$end +$end if (form.value.${replaceDto.FistLowerPk} != undefined && opertype.value === 2) { update${genTable.BusinessName}(form.value).then((res) => { proxy.${modal}modal.msgSuccess("修改成功")