From 9d4bff693220196d904b9474be00231b7e076e11 Mon Sep 17 00:00:00 2001 From: dyy <807692433@qq.com> Date: Tue, 13 Dec 2022 09:48:36 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E9=80=89=E6=8B=A9=E7=AD=BE=E7=AB=A0=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=EF=BC=9A=E5=AF=86=E7=A0=81=E5=A4=B1=E8=B4=A5=E5=90=8E=E4=B8=8D?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E5=BC=B9=E6=A1=86=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/StampInfo/StampDetailIndex.js | 22 ++++++++++++++++--- .../Views/StampPersonal/StampDetailIndex.js | 20 +++++++++++++++-- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/StampInfo/StampDetailIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/StampInfo/StampDetailIndex.js index 8df798b6d..34958b12e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/StampInfo/StampDetailIndex.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/StampInfo/StampDetailIndex.js @@ -63,10 +63,26 @@ var bootstrap = function ($, learun) { } var postData = $('.lr-item').lrGetFormData(); var F_Password = $.md5(postData.F_Password); - - learun.postForm(top.$.rootUrl + '/LR_NewWorkFlow/StampInfo/EqualForm', { keyValue: keyValue, Password: F_Password }, function (res) { - callBack(keyValue); + + //learun.postForm(top.$.rootUrl + '/LR_NewWorkFlow/StampInfo/EqualForm', { keyValue: keyValue, Password: F_Password }, function (res) { + // callBack(keyValue); + //}); + + learun.loading(true, '正在提交数据'); + learun.httpAsyncPost(top.$.rootUrl + '/LR_NewWorkFlow/StampInfo/EqualForm', { keyValue: keyValue, Password: F_Password }, function (res) { + learun.loading(false); + if (res.code == learun.httpCode.success) { + callBack(keyValue); + learun.alert.success(res.info); + top.layer.close(top.layer.index); + } + else { + learun.alert.error(res.info); + learun.httpErrorLog(res.info); + location.reload(); + } }); + }; page.init(); } \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/StampPersonal/StampDetailIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/StampPersonal/StampDetailIndex.js index 9c2332f89..a6df6c2ff 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/StampPersonal/StampDetailIndex.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/StampPersonal/StampDetailIndex.js @@ -64,9 +64,25 @@ var bootstrap = function ($, learun) { var postData = $('.lr-item').lrGetFormData(); var F_Password = $.md5(postData.F_Password); - learun.postForm(top.$.rootUrl + '/LR_NewWorkFlow/StampInfo/EqualForm', { keyValue: keyValue, Password: F_Password }, function (res) { - callBack(keyValue); + //learun.postForm(top.$.rootUrl + '/LR_NewWorkFlow/StampInfo/EqualForm', { keyValue: keyValue, Password: F_Password }, function (res) { + // callBack(keyValue); + //}); + + learun.loading(true, '正在提交数据'); + learun.httpAsyncPost(top.$.rootUrl + '/LR_NewWorkFlow/StampInfo/EqualForm', { keyValue: keyValue, Password: F_Password }, function (res) { + learun.loading(false); + if (res.code == learun.httpCode.success) { + callBack(keyValue); + learun.alert.success(res.info); + top.layer.close(top.layer.index); + } + else { + learun.alert.error(res.info); + learun.httpErrorLog(res.info); + location.reload(); + } }); + }; page.init(); } \ No newline at end of file