| | |
| | | TCompetition.initColumn = function () { |
| | | return [ |
| | | {field: 'selectItem', checkbox: true}, |
| | | {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'}, |
| | | {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '所在省市', field: 'provinceAndCity', visible: true, align: 'center', valign: 'middle',}, |
| | | {title: '开始时间', field: 'startTime', visible: true, align: 'center', valign: 'middle',}, |
| | | {title: '结束时间', field: 'endTime', visible: true, align: 'center', valign: 'middle',}, |
| | |
| | | data: JSON.stringify(data), |
| | | contentType: "application/json", |
| | | success: function (response) { |
| | | if (response==5001){ |
| | | Feng.error("当前活动已开始,不能编辑赠送课时数!") |
| | | return; |
| | | } |
| | | if (response==5002){ |
| | | Feng.error("当前活动已开始,不能编辑开始时间!") |
| | | return; |
| | | } |
| | | window.parent.TCompetition.table.refresh(); |
| | | TCompetition.close(); |
| | | Feng.success("修改成功"); |