From c0abf1b8be71aef5089151ca8601a3b69b21a09d Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期二, 01 四月 2025 18:10:10 +0800 Subject: [PATCH] 惠民卡代码 --- cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup.js | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup.js b/cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup.js index 28a0bda..432c659 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup.js @@ -91,7 +91,30 @@ }; +WorldCup.cancelWorldCup = function(){ + if(this.check()){ + var operation = function(){ + layer.load(); + var id = WorldCup.seItem.id; + var ajax = new $ax(Feng.ctxPath + "/worldCup/updateState", function (res) { + if(res.code == 200){ + Feng.success("取消成功"); + WorldCup.search(); + layer.closeAll(); + }else{ + Feng.error(res.msg); + } + }, function (data) { + Feng.error("取消失败!" + data.responseJSON.message + "!"); + }); + ajax.set("id", id); + ajax.set("state", 3); + ajax.start(); + }; + Feng.confirm("是否取消赛事: " + WorldCup.seItem.name + "?",operation); + } +} -- Gitblit v1.7.1