From b3e0d0ea6c1e311566bab861b79cc9b9c6d25287 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期五, 15 三月 2024 09:49:03 +0800 Subject: [PATCH] 修改bug --- 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