diff --git a/web/src/main/resources/static/js/jlw/teacherOpenCourse/index.js b/web/src/main/resources/static/js/jlw/teacherOpenCourse/index.js index 601eef9f..ff3dcb1b 100644 --- a/web/src/main/resources/static/js/jlw/teacherOpenCourse/index.js +++ b/web/src/main/resources/static/js/jlw/teacherOpenCourse/index.js @@ -165,9 +165,15 @@ layui.define(['form', 'laydate', 'table'], function (exports) { Common.openDlg(url, "开课管理>" + data.teacherOpenCourseTitle + ">编辑"); } else if (obj.event === "del") { layer.confirm('是否确定删除该信息?', function (index) { - layui.use(['del'], function () { - var delView = layui.del - delView.delBatch(); + var ret = Common.postAjax("/jlw/teacherOpenCourse/delete.json", {ids: data.teacherOpenCourseId}); + layer.msg(ret.code == 0 ? "删除成功!" : ret.msg, { + offset: ['50%'], + icon: ret.code == 0 ? 1 : 2, + time: 1500 //2秒关闭(如果不配置,默认是3秒) + }, function () { + if (ret.code == 0) { + Lib.tableRefresh(); + } }); }); } else if (obj.event == "toPaike") { diff --git a/web/src/main/resources/static/js/jlw/teacherOpenCourseScheduleSession/index.js b/web/src/main/resources/static/js/jlw/teacherOpenCourseScheduleSession/index.js index 1e1af1a2..3f60dbcf 100644 --- a/web/src/main/resources/static/js/jlw/teacherOpenCourseScheduleSession/index.js +++ b/web/src/main/resources/static/js/jlw/teacherOpenCourseScheduleSession/index.js @@ -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.teacherOpenCourseScheduleSessionStatusText == 2 ? "textType2" : 'textType'; + var css = d.teacherOpenCourseScheduleSessionStatus == 2 ? "textType2" : 'textType'; return '' +d.teacherOpenCourseScheduleSessionStatusText + '' } },