fix:代码生成复选框保存数据未生效

This commit is contained in:
不做码农 2022-09-20 21:43:36 +08:00
parent 0b5e5dc352
commit 918e0b092d

View File

@ -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("修改成功")