|
|
|
@ -24,7 +24,7 @@ layui.define([ 'form', 'laydate', 'table' ,'laytpl'], function(exports) {
|
|
|
|
|
cellMinWidth: 100,
|
|
|
|
|
method : 'post',
|
|
|
|
|
// url : Common.ctxPath + '/jlw/teacherOpenCourseScheduleSession/list.json' // 数据接口
|
|
|
|
|
url : Common.ctxPath + '/jlw/teacherOpenCourseScheduleSession/listGroup.json?teacherOpenCourseScheduleSessionStatus=1' // 数据接口
|
|
|
|
|
url : Common.ctxPath + '/jlw/teacherOpenCourseScheduleSession/listGroup.json' // 数据接口
|
|
|
|
|
,page : Lib.tablePage // 开启分页
|
|
|
|
|
/*,toolbar: '#toolbar_teacherOpenCourseScheduleSession' //自定义头部左侧工具栏
|
|
|
|
|
,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/
|
|
|
|
@ -94,7 +94,7 @@ layui.define([ 'form', 'laydate', 'table' ,'laytpl'], function(exports) {
|
|
|
|
|
hideField: false,
|
|
|
|
|
hide: $.isEmpty(sx_['teacherOpenCourseScheduleSessionStatusText']) ? false : sx_['teacherOpenCourseScheduleSessionStatusText'],
|
|
|
|
|
templet:function (d) {
|
|
|
|
|
var css = d.teacherOpenCourseScheduleSessionStatus == 2 ? "textType2" : 'textType';
|
|
|
|
|
var css = d.teacherOpenCourseScheduleSessionStatusText == 2 ? "textType2" : 'textType';
|
|
|
|
|
return '<span class="' + css + '">' +d.teacherOpenCourseScheduleSessionStatusText + '</span>'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -184,7 +184,7 @@ layui.define([ 'form', 'laydate', 'table' ,'laytpl'], function(exports) {
|
|
|
|
|
} else if (obj.event == "enable") {
|
|
|
|
|
layer.confirm('是否确定启用该信息?', function (index) {
|
|
|
|
|
|
|
|
|
|
var ret = Common.postAjax("/jlw/teacherOpenCourseScheduleSession/editSession.json",
|
|
|
|
|
var ret = Common.postAjax("/jlw/teacherOpenCourseScheduleSession/edit.json",
|
|
|
|
|
{teacherOpenCourseScheduleSessionId: data.teacherOpenCourseScheduleSessionId,teacherOpenCourseScheduleSessionStatus:1});
|
|
|
|
|
layer.msg(ret.code == 0 ? "启用成功!" : ret.msg, {
|
|
|
|
|
offset: ['50%'],
|
|
|
|
@ -198,7 +198,7 @@ layui.define([ 'form', 'laydate', 'table' ,'laytpl'], function(exports) {
|
|
|
|
|
});
|
|
|
|
|
} else if (obj.event == "disable") {
|
|
|
|
|
layer.confirm('是否确定禁用该信息?', function (index) {
|
|
|
|
|
var ret = Common.postAjax("/jlw/teacherOpenCourseScheduleSession/editSession.json",
|
|
|
|
|
var ret = Common.postAjax("/jlw/teacherOpenCourseScheduleSession/edit.json",
|
|
|
|
|
{teacherOpenCourseScheduleSessionId: data.teacherOpenCourseScheduleSessionId,teacherOpenCourseScheduleSessionStatus:2});
|
|
|
|
|
layer.msg(ret.code == 0 ? "禁用成功!" : ret.msg, {
|
|
|
|
|
offset: ['50%'],
|
|
|
|
|