|
|
|
@ -102,7 +102,6 @@
|
|
|
|
|
initTable:function(){
|
|
|
|
|
var sx_ = localStorage.getItem("studentHandsOnTaskVideoTable_field_" + Common.userInfoId); //筛选值显示、隐藏缓存
|
|
|
|
|
if($.isEmpty(sx_)){sx_ = {};}else {sx_ = JSON.parse(sx_);}
|
|
|
|
|
|
|
|
|
|
studentHandsOnTaskVideoTable = table.render({
|
|
|
|
|
elem: '#studentHandsOnTaskVideoTable',
|
|
|
|
|
height : Lib.getTableHeight(1),
|
|
|
|
@ -128,26 +127,55 @@
|
|
|
|
|
hideField: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'stemstems.question', //数据字典类型为 school_class.class_name.class_status=1
|
|
|
|
|
field: 'stem', //数据字典类型为 school_class.class_name.class_status=1
|
|
|
|
|
title: '考核内容',
|
|
|
|
|
align: "center",
|
|
|
|
|
templet:function (d) {
|
|
|
|
|
var question = "-";
|
|
|
|
|
var stem = JSON.parse(d.stem);
|
|
|
|
|
if(stem.length>0){
|
|
|
|
|
question = stem[0].question;
|
|
|
|
|
}
|
|
|
|
|
return question
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'stemstems.studentAnswer',
|
|
|
|
|
field: 'stem',
|
|
|
|
|
title: '我的答案',
|
|
|
|
|
align: "center"
|
|
|
|
|
align: "center",
|
|
|
|
|
templet:function (d) {
|
|
|
|
|
var studentAnswer = "-";
|
|
|
|
|
var stem = JSON.parse(d.stem);
|
|
|
|
|
if(stem.length>0){
|
|
|
|
|
studentAnswer = stem[0].studentAnswer;
|
|
|
|
|
}
|
|
|
|
|
return studentAnswer
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},{
|
|
|
|
|
field: 'stemstems.rightAnswer',
|
|
|
|
|
field: 'stem',
|
|
|
|
|
title: '正确答案',
|
|
|
|
|
align: "center"
|
|
|
|
|
align: "center",
|
|
|
|
|
templet:function (d) {
|
|
|
|
|
var rightAnswer = "-";
|
|
|
|
|
var stem = JSON.parse(d.stem);
|
|
|
|
|
if(stem.length>0){
|
|
|
|
|
rightAnswer = stem[0].rightAnswer;
|
|
|
|
|
}
|
|
|
|
|
return rightAnswer
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'studentHandsOnTaskStepId', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1
|
|
|
|
|
field: 'stem', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1
|
|
|
|
|
title: '状态',
|
|
|
|
|
align: "center",
|
|
|
|
|
templet: function (d) {
|
|
|
|
|
var htm = d.stemstems.studentAnswer == d.stemstems.rightAnswer ? "正确" : "错误";
|
|
|
|
|
return htm;
|
|
|
|
|
var stem = JSON.parse(d.stem);
|
|
|
|
|
var status = "-";
|
|
|
|
|
if(stem.length>0){
|
|
|
|
|
status = stem[0].studentAnswer == stem[0].rightAnswer ? "正确" : "错误";
|
|
|
|
|
}
|
|
|
|
|
return status;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -187,11 +215,8 @@
|
|
|
|
|
field: 'studentName',
|
|
|
|
|
title: '姓名', align: "center"
|
|
|
|
|
}, {
|
|
|
|
|
field: 'sumStudentScore',
|
|
|
|
|
field: 'sumScore',
|
|
|
|
|
title: '得分', align: "center",
|
|
|
|
|
templet:function (d) {
|
|
|
|
|
return '0'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]]
|
|
|
|
|
});
|
|
|
|
|