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