| | |
| | | table: null, |
| | | layerIndex: -1 |
| | | }; |
| | | |
| | | TQuestion.close = function() { |
| | | parent.layer.close(window.parent.TQuestion.layerIndex); |
| | | } |
| | | /** |
| | | * 初始化表格的列 |
| | | */ |
| | | TQuestion.initColumn = function () { |
| | | return [ |
| | | {field: 'selectItem', checkbox: true}, |
| | | {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'}, |
| | | {title: 'id', field: 'benefitsVideosId', visible: false, align: 'center', valign: 'middle'}, |
| | | {title: '视频类型', field: 'type', visible: true, align: 'center', valign: 'middle', |
| | | formatter:function (data) { |
| | | return {1:"课后练习",2:"运动教学视频",3:"器材教学视频"}[data] |
| | |
| | | state:null |
| | | }; |
| | | selected.forEach(function(obj) { |
| | | var id = obj.id; |
| | | var id = obj.benefitsVideosId; |
| | | data1.ids.push(id); |
| | | }); |
| | | data1.state = 1; |
| | |
| | | state:null |
| | | }; |
| | | selected.forEach(function(obj) { |
| | | var id = obj.id; |
| | | var id = obj.benefitsVideosId; |
| | | data1.ids.push(id); |
| | | }); |
| | | data1.state = 2; |
| | |
| | | state:null |
| | | }; |
| | | selected.forEach(function(obj) { |
| | | var id = obj.id; |
| | | var id = obj.benefitsVideosId; |
| | | data1.ids.push(id); |
| | | }); |
| | | data1.state = 3; |
| | |
| | | data: JSON.stringify(data), |
| | | contentType: "application/json", |
| | | success: function (response) { |
| | | window.parent.TQuestion.table.refresh(); |
| | | TQuestion.close(); |
| | | Feng.success("添加成功"); |
| | | |
| | | }, |
| | |
| | | }); |
| | | TSite.search(); |
| | | }; |
| | | TQuestion.close = function() { |
| | | parent.layer.close(window.parent.TQuestion.layerIndex); |
| | | }; |
| | | TQuestion.updateSubmit = function(){ |
| | | var data = { |
| | | id:null, |