| | |
| | | and `name` like CONCAT('%', #{item.name}, '%') |
| | | </if> |
| | | <if test="null != item.startTime and '' != item.startTime"> |
| | | and DATE_FORMAT(startTime, '%Y-%m-%d') >= #{item.startTime} |
| | | and DATE_FORMAT(startTime, '%Y-%m-%d') = #{item.startTime} |
| | | </if> |
| | | <if test="null != item.endTime and '' != item.endTime"> |
| | | and DATE_FORMAT(endTime, '%Y-%m-%d') <= #{item.endTime} |
| | | and DATE_FORMAT(endTime, '%Y-%m-%d') = #{item.endTime} |
| | | </if> |
| | | <if test="null != item.status"> |
| | | and status= #{item.status} |
| | |
| | | <div class="ibox-content"> |
| | | <div class="form-horizontal" id="userInfoForm"> |
| | | <input type="hidden" id="id" value=""> |
| | | <input type="hidden" id="page", value='add'> |
| | | <div class="row"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">*比赛名称:</label> |
| | |
| | | <div class="form-horizontal" id="userInfoForm"> |
| | | <input type="hidden" id="id" value="${item.id}"> |
| | | <input type="hidden" id="storeInfo", value='${stores}'> |
| | | <input type="hidden" id="page", value='edit'> |
| | | <div class="row"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">*比赛名称:</label> |
| | |
| | | <div class="form-horizontal" id="userInfoForm"> |
| | | <input type="hidden" id="id" value="${item.id}"> |
| | | <input type="hidden" id="storeInfo", value='${stores}'> |
| | | <input type="hidden" id="page", value='info'> |
| | | <div class="row"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">*比赛名称:</label> |
| | |
| | | if (res.code == 200) { |
| | | Feng.success("删除成功"); |
| | | layer.closeAll(); |
| | | Referee.table.refresh(); |
| | | Referee.search(); |
| | | } else { |
| | | Feng.error(res.msg); |
| | | } |
| | | }, function (data) { |
| | | Feng.error("添加失败!" + data.responseJSON.message + "!"); |
| | | Feng.error("删除失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.setData({ |
| | | 'id': Referee.seItem.id, |
| | |
| | | var operation = function(){ |
| | | var ajax = new $ax(Feng.ctxPath + "/referee/updateState", function (res) { |
| | | if (res.code == 200) { |
| | | Feng.success("删除成功"); |
| | | Feng.success("解冻成功"); |
| | | layer.closeAll(); |
| | | Referee.table.refresh(); |
| | | Referee.search(); |
| | | } else { |
| | | Feng.error(res.msg); |
| | | } |
| | | }, function (data) { |
| | | Feng.error("添加失败!" + data.responseJSON.message + "!"); |
| | | Feng.error("解冻失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.setData({ |
| | | 'id': Referee.seItem.id, |
| | |
| | | var operation = function(){ |
| | | var ajax = new $ax(Feng.ctxPath + "/referee/updateState", function (res) { |
| | | if (res.code == 200) { |
| | | Feng.success("删除成功"); |
| | | Feng.success("冻结成功"); |
| | | layer.closeAll(); |
| | | Referee.table.refresh(); |
| | | Referee.search(); |
| | | } else { |
| | | Feng.error(res.msg); |
| | | } |
| | | }, function (data) { |
| | | Feng.error("添加失败!" + data.responseJSON.message + "!"); |
| | | Feng.error("冻结失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.setData({ |
| | | 'id': Referee.seItem.id, |
| | |
| | | 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', |
| | |
| | | 'name': name, |
| | | 'startTime': new Date(startTime + " 00:00:00"), |
| | | 'endTime': new Date(endTime + " 23:59:59"), |
| | | 'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : registrationClosingTime), |
| | | 'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : null), |
| | | 'startAge': startAge, |
| | | 'endAge': endAge, |
| | | 'gender': gender, |
| | |
| | | if (res.code==200){ |
| | | Feng.success("添加成功!"); |
| | | WorldCupInfo.close(); |
| | | window.parent.WorldCup.refresh(); |
| | | window.parent.WorldCup.search(); |
| | | }else{ |
| | | Feng.error(res.msg); |
| | | } |
| | |
| | | 'name': name, |
| | | 'startTime': new Date(startTime + " 00:00:00"), |
| | | 'endTime': new Date(endTime + " 23:59:59"), |
| | | 'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : registrationClosingTime), |
| | | 'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : null), |
| | | 'startAge': startAge, |
| | | 'endAge': endAge, |
| | | 'gender': gender, |
| | |
| | | if (res.code==200){ |
| | | Feng.success("编辑成功!"); |
| | | WorldCupInfo.close(); |
| | | window.parent.WorldCup.refresh(); |
| | | window.parent.WorldCup.search(); |
| | | }else{ |
| | | Feng.error(res.msg); |
| | | } |
| | |
| | | |
| | | WorldCupInfo.initStore = function (){ |
| | | let html = ''; |
| | | let page = $('#page').val(); |
| | | for (let i = 0; i < WorldCupInfo.stores.length; i++) { |
| | | let item = WorldCupInfo.stores[i]; |
| | | html += '<tr><td>' + item.province + '</td><td>' + (typeof item.operator == "undefined" ? "" : item.operator) + '</td><td>' + item.name + '</td><td><button style="height: 30px;\n' + |
| | | ' line-height: 30px;\n' + |
| | | ' font-size: 14px;\n' + |
| | | ' width: 50px" onclick="WorldCupInfo.delStore(' + item.id + ')">删除</button></td></tr>' |
| | | html += '<tr><td>' + item.province + '</td><td>' + (typeof item.operator == "undefined" ? "" : item.operator) + '</td><td>' + item.name + '</td>'; |
| | | if("info" != page){ |
| | | html += '<td><button style="height: 30px;\n' + |
| | | ' line-height: 30px;\n' + |
| | | ' font-size: 14px;\n' + |
| | | ' width: 50px" onclick="WorldCupInfo.delStore(' + item.id + ')">删除</button></td></tr>' |
| | | }else{ |
| | | html += '</tr>'; |
| | | } |
| | | } |
| | | $('#stores tbody').html(html); |
| | | } |