fix:代码生成复选框保存数据未生效
This commit is contained in:
parent
0b5e5dc352
commit
918e0b092d
@ -475,6 +475,11 @@ $end
|
|||||||
function submitForm() {
|
function submitForm() {
|
||||||
proxy.${refs}refs["formRef"].validate((valid) => {
|
proxy.${refs}refs["formRef"].validate((valid) => {
|
||||||
if (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) {
|
if (form.value.${replaceDto.FistLowerPk} != undefined && opertype.value === 2) {
|
||||||
update${genTable.BusinessName}(form.value).then((res) => {
|
update${genTable.BusinessName}(form.value).then((res) => {
|
||||||
proxy.${modal}modal.msgSuccess("修改成功")
|
proxy.${modal}modal.msgSuccess("修改成功")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user