| | |
| | | }; |
| | | |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | 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); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | */ |
| | | 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; |
| | | } |
| | | }; |
| | | |