文档存档

beetlsql3-dev
姚丹ab 2 years ago
parent 66e9f48f4a
commit 03f0457bdb

@ -357,7 +357,7 @@ type="course_info.course_info_name.course_info_status!=3,course_info_type=1,find
value = "链接"; value = "链接";
css = "lianjie"; css = "lianjie";
} else if (d.resourcesInfoType === 5) { } else if (d.resourcesInfoType === 5) {
value = "图"; value = "图";
css = "tupian"; css = "tupian";
} }
return '<span class=' + css + '>' + value + '</span>'; return '<span class=' + css + '>' + value + '</span>';

@ -16,7 +16,7 @@
<div class="layui-row" id="view"> <div class="layui-row" id="view">
<h2 style="float: left">作业汇总:【 <h2 style="float: left">作业汇总:【
合计平均得分:<span id="avgStudentScore"></span> 合计平均得分:<span id="avgStudentScore"></span>
合计及格率:<span id="avgQuestionLogSummaryIsPass"></span>; 合计及格率:<span id="avgQuestionLogSummaryIsPass"></span>
</h2> </h2>
<div class="layui-inline" style="float: right"> <div class="layui-inline" style="float: right">
@ -88,8 +88,8 @@
var data = ret.data; var data = ret.data;
if($.isEmpty(data)){ if($.isEmpty(data)){
data = { data = {
avgStudentScore:'', avgStudentScore:'0',
avgQuestionLogSummaryIsPass:'' avgQuestionLogSummaryIsPass:'0'
} }
} }
$("#avgStudentScore").html(data.avgStudentScore); $("#avgStudentScore").html(data.avgStudentScore);

@ -11,21 +11,21 @@
<script type="text/html" id="demo"> <script type="text/html" id="demo">
<h2 style="float: left">章节练习汇总:【 <h2 style="float: left">章节练习汇总:【
合计练习题目数量:{{!$.isEmpty(d.questionTotalCount)?d.questionTotalCount:""}}; 合计练习题目数量: {{!$.isEmpty(d.questionTotalCount)?d.questionTotalCount:"0"}};
合计平均答对数量:{{!$.isEmpty(d.avgCorrectCount)?d.avgCorrectCount:""}}; 合计平均答对数量:{{!$.isEmpty(d.avgCorrectCount)?d.avgCorrectCount:"0"}};
合计平均答错数量:{{!$.isEmpty(d.avgWrongCount)?d.avgWrongCount:""}}; 合计平均答错数量:{{!$.isEmpty(d.avgWrongCount)?d.avgWrongCount:"0"}};
合计平均得分:{{!$.isEmpty(d.avgStudentScore)?d.avgStudentScore:""}} 合计平均得分:{{!$.isEmpty(d.avgStudentScore)?d.avgStudentScore:"0"}}
</h2> </h2>
</script> </script>
<script type="text/html" id="EXAM_demo"> <script type="text/html" id="EXAM_demo">
<h2 style="float: left">考试汇总:【 <h2 style="float: left">考试汇总:【
合计考试题目数量:{{!$.isEmpty(d.questionTotalCount)?d.questionTotalCount:" "}}; 合计考试题目数量: {{!$.isEmpty(d.questionTotalCount)?d.questionTotalCount:"0"}};
合计平均答对数量:{{!$.isEmpty(d.avgCorrectCount)?d.avgCorrectCount:""}}; 合计平均答对数量:{{!$.isEmpty(d.avgCorrectCount)?d.avgCorrectCount:"0"}};
合计平均答错数量:{{!$.isEmpty(d.avgWrongCount)?d.avgWrongCount:""}}; 合计平均答错数量:{{!$.isEmpty(d.avgWrongCount)?d.avgWrongCount:"0"}};
合计平均准确率:{{!$.isEmpty(d.avgQuestionLogSummarySuccessRate)?d.avgQuestionLogSummarySuccessRate:""}}; 合计平均准确率:{{!$.isEmpty(d.avgQuestionLogSummarySuccessRate)?d.avgQuestionLogSummarySuccessRate:"0"}};
合计平均得分:{{!$.isEmpty(d.avgStudentScore)?d.avgStudentScore:""}} 合计平均得分:{{!$.isEmpty(d.avgStudentScore)?d.avgStudentScore:"0"}}
</h2> </h2>
</script> </script>

@ -11,9 +11,9 @@
<script type="text/html" id="demo"> <script type="text/html" id="demo">
<h2 style="float: left">互动汇总:【 <h2 style="float: left">互动汇总:【
讨论次数: {{!$.isEmpty(d.chatLogCount)?d.chatLogCount:""}}次; 讨论次数: {{!$.isEmpty(d.chatLogCount)?d.chatLogCount:"0"}}次;
学生提问次数:{{!$.isEmpty(d.studentSendCount)?d.studentSendCount:""}}人; 学生提问次数:{{!$.isEmpty(d.studentSendCount)?d.studentSendCount:"0"}}人;
教师提问次数:{{!$.isEmpty(d.teacherSendCount)?d.teacherSendCount:""}}人; 教师提问次数:{{!$.isEmpty(d.teacherSendCount)?d.teacherSendCount:"0"}}人
</h2> </h2>
</script> </script>

@ -10,11 +10,11 @@
</div> </div>
<script type="text/html" id="demo"> <script type="text/html" id="demo">
<h2 style="float: left">课程实操汇总:【 <h2 style="float: left">课程实操汇总:【
观看视频平均得分:{{!$.isEmpty(d)?d.videoAvgScore:" "}}; 观看视频平均得分: {{!$.isEmpty(d)?d.videoAvgScore:"0"}};
观看ppt平均得分{{!$.isEmpty(d)?d.pptAvgScore:""}}; 观看ppt平均得分{{!$.isEmpty(d)?d.pptAvgScore:"0"}};
理论测评平均得分:{{!$.isEmpty(d)?d.theoryAvgScore:""}}; 理论测评平均得分:{{!$.isEmpty(d)?d.theoryAvgScore:"0"}};
实训操作步骤平均得分:{{!$.isEmpty(d)?d.stepAvgScore:""}} 实训操作步骤平均得分:{{!$.isEmpty(d)?d.stepAvgScore:"0"}}
报告撰写平均得分:{{!$.isEmpty(d)?d.reportAvgScore:""}} 报告撰写平均得分:{{!$.isEmpty(d)?d.reportAvgScore:"0"}}
</h2> </h2>
</script> </script>

@ -133,9 +133,16 @@
align: "center", align: "center",
}, },
{ {
field: 'pptFiles.fileName', field: 'pptFiles',
title: 'PPT名称', title: 'PPT名称',
align: "center" align: "center",
templet:function (d) {
var fileName = "-";
if(d.pptFiles.length>0){
fileName = d.pptFiles[0].fileName;
}
return fileName;
}
}, },
{ {
field: 'pptScore', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1 field: 'pptScore', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1

@ -128,9 +128,13 @@
hideField: false, hideField: false,
}, },
{ {
field: 'reportFileMap.fileName', //数据字典类型为 school_class.class_name.class_status=1 field: 'reportFileMap', //数据字典类型为 school_class.class_name.class_status=1
title: '报告名称', title: '报告名称',
align: "center", align: "center",
templet:function (d) {
var fileName = d.reportFileMap.fileName||"-";
return fileName;
}
}, },
{ {
field: 'reportFile', field: 'reportFile',
@ -138,6 +142,7 @@
align: "center", align: "center",
templet:function (d) { templet:function (d) {
var htm = '<a class="layui-table-link" lay-event="download">下载</a>'; var htm = '<a class="layui-table-link" lay-event="download">下载</a>';
return htm;
} }
}, },
{ {
@ -181,11 +186,8 @@
field: 'studentName', field: 'studentName',
title: '姓名', align: "center" title: '姓名', align: "center"
}, { }, {
field: 'sumStudentScore', field: 'sumScore',
title: '得分', align: "center", title: '得分', align: "center",
templet:function (d) {
return '0'
}
} }
]] ]]
}); });
@ -296,8 +298,9 @@
}); });
}); });
}else if(obj.event === 'download'){ }else if(obj.event === 'download'){
layer.confirm('是否确定删除该信息?', function (index) { layer.confirm('是否确定下载该信息?', function (index) {
Lib.downloadFile2(data.reportFile,"报告表") var reportFile = data.reportFileMap.fileUrl||"-";
Lib.downloadFile2(reportFile);
}); });
} }
}) })

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

@ -166,7 +166,7 @@
title: '得分', title: '得分',
align: "center", align: "center",
templet: function (d) { templet: function (d) {
var htm = d.myOptions == d.rightKey ? d.questionScore : "0"; var htm = d.myOptions == d.rightKey ? d.theoryScore : "0";
return htm; return htm;
} }
} }

@ -130,14 +130,21 @@
hideField: false, hideField: false,
}, },
{ {
field: 'questionScore', //数据字典类型为 school_class.class_name.class_status=1 field: 'handsOnName', //数据字典类型为 school_class.class_name.class_status=1
title: '项目名称', title: '项目名称',
align: "center", align: "center",
}, },
{ {
field: 'videoFile.fileName', field: 'videoFiles',
title: '视频名称', title: '视频名称',
align: "center" align: "center",
templet:function (d) {
var fileName = "-";
if(d.videoFiles.length>0){
fileName = d.videoFiles[0].fileName;
}
return fileName;
}
}, },
{ {
field: 'videoScore', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1 field: 'videoScore', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1
@ -178,9 +185,6 @@
}, { }, {
field: 'sumScore', field: 'sumScore',
title: '得分', align: "center", title: '得分', align: "center",
templet:function (d) {
return d.sumScore||'-';
}
} }
]] ]]
}); });

@ -10,10 +10,10 @@
</div> </div>
<script type="text/html" id="demo"> <script type="text/html" id="demo">
<h2 style="float: left">签到汇总:【 <h2 style="float: left">签到汇总:【
合计签到次数:{{!$.isEmpty(d.totalSigninCount)?d.totalSigninCount:""}};次; 合计签到次数: {{!$.isEmpty(d.totalSigninCount)?d.totalSigninCount:"0"}}次;
合计签到人数:{{!$.isEmpty(d.totalSigninNumber)?d.totalSigninNumber:""}}人; 合计签到人数:{{!$.isEmpty(d.totalSigninNumber)?d.totalSigninNumber:"0"}}人;
合计缺勤:{{!$.isEmpty(d.totalUnSigninNumber)?d.totalUnSigninNumber:""}}人; 合计缺勤:{{!$.isEmpty(d.totalUnSigninNumber)?d.totalUnSigninNumber:"0"}}人;
合计到课率:{{!$.isEmpty(d.totalAttendanceRate)?d.totalAttendanceRate:""}}% 合计到课率:{{!$.isEmpty(d.totalAttendanceRate)?d.totalAttendanceRate:"0"}}%
</h2> </h2>
</script> </script>

Loading…
Cancel
Save