From b9bc20bc6fb1e5b6f9f3877eb1a98da2baa3ebfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com> Date: Wed, 15 Feb 2023 04:09:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../add.html | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/web/src/main/resources/templates/jlw/universitiesCollegesJurisdictionExperimentalSystem/add.html b/web/src/main/resources/templates/jlw/universitiesCollegesJurisdictionExperimentalSystem/add.html index 92e00339..896edbf6 100644 --- a/web/src/main/resources/templates/jlw/universitiesCollegesJurisdictionExperimentalSystem/add.html +++ b/web/src/main/resources/templates/jlw/universitiesCollegesJurisdictionExperimentalSystem/add.html @@ -652,22 +652,28 @@ if (t == false) { return false; } + layer.load(); var param = { universitiesCollegesId: universitiesCollegesId, UniversitiesCollegesJurisdictionExperimentalSystemListJson: JSON.stringify(xtList), UniversitiesCollegesJurisdictionCurriculumResourcesListJson: JSON.stringify(kcList) }; - var ret = Common.postAjax("/jlw/universitiesCollegesJurisdictionExperimentalSystem/addAll.json", param); - layer.msg(ret.code == 0 ? "保存成功!" : ret.msg, { - offset: ['50%'], - icon: ret.code == 0 ? 1 : 2, - time: 1500 //2秒关闭(如果不配置,默认是3秒) - }, function () { - if (ret.code == 0) { - parent.Lib.tableRefresh(); - Lib.closeFrame(); - } - }); + var ret; + setTimeout(function () { + ret= Common.postAjax("/jlw/universitiesCollegesJurisdictionExperimentalSystem/addAll.json", param); + layer.msg(ret.code == 0 ? "保存成功!" : ret.msg, { + offset: ['50%'], + icon: ret.code == 0 ? 1 : 2, + time: 1500 //2秒关闭(如果不配置,默认是3秒) + }, function () { + layer.closeAll() + if (ret.code == 0) { + parent.Lib.tableRefresh(); + Lib.closeFrame(); + } + }); + }, 10); + }); //返回