puzhibing
2024-03-06 0c5defb96c450261e19d4fdbb14979a7b5c92d77
cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup.js
@@ -91,32 +91,7 @@
};
/**
 * 删除
 */
WorldCup.cancelWorldCup = function (){
    if(this.check()){
        var operation = function(){
            var ajax = new $ax(Feng.ctxPath + "/worldCup/updateState", function (res) {
                if (res.code == 200) {
                    Feng.success("删除成功");
                    layer.closeAll();
                    WorldCup.table.refresh();
                } else {
                    Feng.error(res.msg);
                }
            }, function (data) {
                Feng.error("添加失败!" + data.responseJSON.message + "!");
            });
            ajax.setData({
                'id': WorldCup.seItem.id,
                'state': 4
            });
            ajax.start();
        };
        Feng.confirm("确认取消所选比赛吗?",operation);
    }
}
@@ -126,25 +101,15 @@
 */
WorldCup.registeredPersonnel = function () {
    if(this.check()){
        var operation = function(){
            var ajax = new $ax(Feng.ctxPath + "/worldCup/updateState", function (res) {
                if (res.code == 200) {
                    Feng.success("删除成功");
                    layer.closeAll();
                    WorldCup.table.refresh();
                } else {
                    Feng.error(res.msg);
                }
            }, function (data) {
                Feng.error("添加失败!" + data.responseJSON.message + "!");
            });
            ajax.setData({
                'id': WorldCup.seItem.id,
                'state': 2
            });
            ajax.start();
        };
        Feng.confirm("是否冻结裁判:" + WorldCup.seItem.name + "?",operation);
        var index = layer.open({
            type: 2,
            title: '已报名人员',
            area: ['100%', '100%'], //宽高
            fix: false, //不固定
            maxmin: true,
            content: Feng.ctxPath + '/worldCup/openRegisteredPersonnel?id=' + WorldCup.seItem.id
        });
        this.layerIndex = index;
    }
};