|
|
@ -473,11 +473,18 @@ layui.define(['form', 'laydate', 'table', 'xmSelect', 'teacherOpenCourseSchedule
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setTimeout(function(){
|
|
|
|
setTimeout(function(){
|
|
|
|
var ret = Common.postJSON(url,JSON.stringify(param));
|
|
|
|
var ret = Common.postJSON(url,JSON.stringify(param));
|
|
|
|
if (ret.code == 0) {
|
|
|
|
layer.closeAll();
|
|
|
|
parent.window.dataReload();
|
|
|
|
layer.msg(ret.code == 0 ? "保存成功!" : ret.msg, {
|
|
|
|
parent.Lib.tableRefresh();
|
|
|
|
offset: ['50%'],
|
|
|
|
Lib.closeFrame();
|
|
|
|
icon: ret.code == 0 ? 1 : 2,
|
|
|
|
}
|
|
|
|
time: 1500 //2秒关闭(如果不配置,默认是3秒)
|
|
|
|
|
|
|
|
}, function () {
|
|
|
|
|
|
|
|
if (ret.code == 0) {
|
|
|
|
|
|
|
|
parent.window.dataReload();
|
|
|
|
|
|
|
|
parent.Lib.tableRefresh();
|
|
|
|
|
|
|
|
Lib.closeFrame();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
},100);
|
|
|
|
},100);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|