From 331ae50b1cdcb31a4a0c182abb82aec5c1b12f83 Mon Sep 17 00:00:00 2001 From: nickchange <126672920+nickchange@users.noreply.github.com> Date: 星期三, 15 十一月 2023 09:40:49 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js b/cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js index 9b77955..9f6de19 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js @@ -14,8 +14,39 @@ CoursePackageDiscount.close = function () { parent.layer.close(window.parent.CoursePackage.layerIndex); }; +CoursePackageDiscount.close1 = function () { + parent.layer.close(window.parent.TCompetition.layerIndex); +}; - +CoursePackageDiscount.audit = function () { + var id = $("#id").val(); + let audit = document.querySelector('input[name="r1"]:checked').value; + let text = $("#text").val() + if(audit==3){ + if(text==''){ + Feng.info("请输入拒绝理由") + return false; + } + } + var ajax = new $ax(Feng.ctxPath + "/tDiscount/auditDiscount", function (data) { + if (data.code == 200) { + Feng.success("操作成功!"); + window.parent.TCompetition.table.refresh(); + CoursePackageDiscount.close1(); + } else if(data=="repeat"){ + Feng.error("请勿重复操作"); + }else { + return Feng.error(data.msg); + } + }, function (data) { + return Feng.error("操作失败!"); + }); + ajax.set("id", id); + ajax.set("audit", audit); + ajax.set("text", text); + ajax.start(); + layer.closeAll(); +} /** * 提交修改 */ -- Gitblit v1.7.1