From 0c5defb96c450261e19d4fdbb14979a7b5c92d77 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期三, 06 三月 2024 17:01:47 +0800 Subject: [PATCH] 添加方法 --- cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup.js | 55 ++++++++++--------------------------------------------- 1 files changed, 10 insertions(+), 45 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 7c71ebd..92d5ee9 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,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; } }; -- Gitblit v1.7.1