puzhibing
2024-03-15 b3e0d0ea6c1e311566bab861b79cc9b9c6d25287
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);
    }
}