课程配置

beetlsql3-dev
姚丹ab
parent 9cf99b7ab9
commit 422d10cec3

@ -236,7 +236,8 @@ type="course_info.course_info_name.course_info_status!=3,course_info_type=1,find
e.courseInfoId = 0;
e.courseInfoName = e.resourcesInfoName;
courseInfoAllData.push(e);
})
});
});
treetable.render({
elem: '#courseInfoTable',
@ -423,42 +424,52 @@ type="course_info.course_info_name.course_info_status!=3,course_info_type=1,find
}else if (obj.event === 'move') {//拖动
//soulTable.suspend('myTable', 'drag', !data.elem.checked)
}else if (obj.event === 'moveUp') {//上移
var url = "/jlw/courseInfo/move.json";
var param = {
id: data.courseInfoId,
moveType: 'MOVE_LEFT'
};
if(!$.isEmpty(data.resourcesInfoId)){
param.id = data.resourcesInfoId;
url = "/jlw/resourcesInfo/move.json";
}
var ret = Common.postAjax("/jlw/resourcesInfo/move.json", param);
var ret = Common.postAjax(url, param);
if (ret.code == 0) {
courseInfoTable();
Lib.tableRefresh();
layer.closeAll();
}
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();
layer.closeAll();
}
});
}else if (obj.event === 'moveDown') {//下移
var url = "/jlw/courseInfo/move.json";
var param = {
id: data.courseInfoId,
moveType: 'MOVE_RIGHT'
};
if(!$.isEmpty(data.resourcesInfoId)){
param.id = data.resourcesInfoId;
url = "/jlw/resourcesInfo/move.json";
}
var ret = Common.postAjax("/jlw/resourcesInfo/move.json", param);
var ret = Common.postAjax(url, param);
if (ret.code == 0) {
courseInfoTable();
Lib.tableRefresh();
layer.closeAll();
}
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();
layer.closeAll();
}
});
}
});

@ -137,6 +137,13 @@ layui.use(['index'], function(){
,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/
,limit : 10,
cols : [ [ // 表头
{
field: 'studentSn',
title: '学号',
align: "center",
hideField: false,
hide: $.isEmpty(sx_['teacherOpenCourseStudentSigninLogId']) ? false : sx_['teacherOpenCourseStudentSigninLogId'],
},
{
field: 'studentIdText', //数据字典类型为 student.student_name.student_status=1
title: '姓名',
@ -144,47 +151,50 @@ layui.use(['index'], function(){
hideField: false,
hide: $.isEmpty(sx_['studentIdText']) ? false : sx_['studentIdText'],
},
{
field: 'studentSn',
title: '学号',
field: 'questionScore', //数据字典类型为 school_class.class_name.class_status=1
title: '题干',
align: "center",
hideField: false,
hide: $.isEmpty(sx_['teacherOpenCourseStudentSigninLogId']) ? false : sx_['teacherOpenCourseStudentSigninLogId'],
hide: $.isEmpty(sx_['questionScore']) ? false : sx_['questionScore'],
},
{
field: 'schoolClassIdText', //数据字典类型为 school_class.class_name.class_status=1
title: '班级',
field: 'questionType',
title: '题型',
align: "center",
hideField: false,
hide: $.isEmpty(sx_['schoolClassIdText']) ? false : sx_['schoolClassIdText'],
hide: $.isEmpty(sx_['questionType']) ? false : sx_['questionType'],
templet:function (d) {//1单选 2多选 3判断 4填空 5分析
var htm = d.questionType===1?"单选":d.questionType===2?"多选":d.questionType===3?"判断":d.questionType===4?"填空":d.questionType===5?"分析":""
}
},
{
field: 'teacherOpenCourseStudentSigninLogTagText', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1
title: '状态',
field: 'teacherOpenCourseIdText', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1
title: '我的选项',
align: "center",
hideField: false,
hide: $.isEmpty(sx_['teacherOpenCourseStudentSigninLogTagText']) ? false : sx_['teacherOpenCourseStudentSigninLogTagText'],
hide: $.isEmpty(sx_['teacherOpenCourseIdText']) ? false : sx_['teacherOpenCourseIdText'],
templet: function (d) {
return 1;
}
},
// {
// field: 'teacherOpenCourseIdText', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1
// title: '缺勤',
// align: "center",
// hideField: false,
// hide: $.isEmpty(sx_['teacherOpenCourseIdText']) ? false : sx_['teacherOpenCourseIdText'],
// templet: function (d) {
// return 1;
// }
// },
{
field: 'teacherOpenCourseStudentSigninLogRemark', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1
title: '缺勤理由',
title: '正确答案',
align: "center",
hideField: false,
hide: $.isEmpty(sx_['teacherOpenCourseIdText']) ? false : sx_['teacherOpenCourseIdText'],
},
{
field: 'teacherOpenCourseStudentSigninSettingSessionTime',
title: '签到日期',
title: '状态',
align: "center",
hideField: false,
hide: $.isEmpty(sx_['teacherOpenCourseStudentSigninLogAddTime']) ? false : sx_['teacherOpenCourseStudentSigninLogAddTime'],
},{
field: 'teacherOpenCourseStudentSigninSettingSessionTime',
title: '得分',
align: "center",
hideField: false,
hide: $.isEmpty(sx_['teacherOpenCourseStudentSigninLogAddTime']) ? false : sx_['teacherOpenCourseStudentSigninLogAddTime'],

Loading…
Cancel
Save