From a1cadd023734d1e33f6455ec87fb7e2783d808fe Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期一, 11 三月 2024 16:04:14 +0800 Subject: [PATCH] bug修改 --- cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup.js | 57 +++++++++++---------------------------------------------- 1 files changed, 11 insertions(+), 46 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..9d178fe 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 @@ -14,7 +14,7 @@ return [ {field: 'selectItem', checkbox: true}, {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'}, - {title: '比赛名字', field: 'name', visible: true, align: 'center', valign: 'middle',width:'20%',}, + {title: '比赛名称', field: 'name', visible: true, align: 'center', valign: 'middle',width:'20%',}, {title: '开始时间', field: 'startTime', visible: true, align: 'center', valign: 'middle',}, {title: '结束时间', field: 'endTime', visible: true, align: 'center', valign: 'middle'}, {title: '报名条件', field: 'age', visible: true, align: 'center', valign: 'middle', @@ -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