From 8afc5bfc1e5df1e2f0a8872a344da3b3fd5d63b9 Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期五, 11 四月 2025 20:24:10 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/2.0' into 2.0

---
 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