From 68f048961370f6e6218927186dcbb737c8ab5fb2 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Wed, 22 Jan 2025 10:55:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=97=AE=E9=A2=98=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/aq_basic/child/type_form.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/js/aq_basic/child/type_form.js b/js/aq_basic/child/type_form.js index 1285525..fd86486 100644 --- a/js/aq_basic/child/type_form.js +++ b/js/aq_basic/child/type_form.js @@ -155,6 +155,7 @@ function submitApply(data) { if (result.code === 200) { parent.layer.msg(result.msg, { icon: 1 }); if (isGoOn === '1') { // 保存并继续添加 + clearFormData(); closePage(2, result.data); } else if (isGoOn === '0' && objParam.type !== 3) { // 保存 closePage(1, result.data); @@ -174,6 +175,18 @@ function submitApply(data) { errorFn(xhr, status, error) }, null); } +function clearFormData(){ + if (objParam.level === '1') { + $('#name').val(''); + } else if (objParam.level === '2') { + $('#name').val(''); + } else if (objParam.level === '3') { + $('#name').val(''); + $('#unitName').val(''); + $('#cycle').val(''); + $('#remark').val(''); + } +} // 关闭页面 type:2 保存并继续添加 function closePage(type, obj) {