| | |
| | | /** |
| | | * 系统管理--用户管理的单例对象 |
| | | */ |
| | | let Course = { |
| | | var Course = { |
| | | id: "managerTable",//表格id |
| | | seItem: null, //选中的条目 |
| | | table: null, |
| | |
| | | Course.initColumn = function () { |
| | | let columns = [ |
| | | {field: 'selectItem', radio: true}, |
| | | {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'}, |
| | | {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '视频类型', field: 'type', align: 'center', valign: 'middle', |
| | | formatter: function (v) { |
| | | switch (v) { |
| | |
| | | */ |
| | | Course.delCourse = function () { |
| | | if (this.check()) { |
| | | console.log() |
| | | if (Course.seItem.state == 1){ |
| | | Feng.error("只能删除已下架的视频课"); |
| | | return; |
| | | } |
| | | let operation = function(){ |
| | | let ajax = new $ax(Feng.ctxPath + "/course/delCourse", function () { |
| | | Feng.success("删除成功!"); |