|
|
|
@ -16,7 +16,7 @@
|
|
|
|
|
<div class="layui-row" id="view">
|
|
|
|
|
<h2 style="float: left">作业汇总:【
|
|
|
|
|
合计平均得分:<span id="avgStudentScore"></span>
|
|
|
|
|
合计及格率:<span id="avgQuestionLogSummaryIsPass"></span>
|
|
|
|
|
;合计及格率:<span id="avgQuestionLogSummaryIsPass"></span>%
|
|
|
|
|
】
|
|
|
|
|
</h2>
|
|
|
|
|
<div class="layui-inline" style="float: right">
|
|
|
|
@ -77,23 +77,26 @@
|
|
|
|
|
teacherOpenCourseId: teacherOpenCourseId,
|
|
|
|
|
questionSettingType: questionSettingType
|
|
|
|
|
};
|
|
|
|
|
if(questionSettingType == "HOMEWORK_QUESTION"){//"作业-题目类型
|
|
|
|
|
url = '/jlw/teacherOpenCourseQuestionSetting/analysis.json';
|
|
|
|
|
/*if(questionSettingType == "HOMEWORK_QUESTION"){//"作业-题目类型
|
|
|
|
|
url = '/jlw/teacherOpenCourseQuestionSetting/analysis.json';
|
|
|
|
|
}else if(questionSettingType == "HOMEWORK_FILE"){//作业-附件类型
|
|
|
|
|
url = '/jlw/teacherOpenCourseQuestionSetting/analysis.json'
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
var ret = Common.postAjax(url, param);
|
|
|
|
|
if (ret.code == 0) {
|
|
|
|
|
var data = ret.data;
|
|
|
|
|
if($.isEmpty(data)){
|
|
|
|
|
data = {
|
|
|
|
|
avgStudentScore:'0',
|
|
|
|
|
avgQuestionLogSummaryIsPass:'0'
|
|
|
|
|
avgStudentScore:'0.00',
|
|
|
|
|
avgQuestionLogSummaryIsPass:'0.00'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$("#avgStudentScore").html(data.avgStudentScore);
|
|
|
|
|
$("#avgQuestionLogSummaryIsPass").html(data.avgQuestionLogSummaryIsPass);
|
|
|
|
|
let avgStudentScore = data.avgStudentScore || 0.00;
|
|
|
|
|
let avgQuestionLogSummaryIsPass = data.avgQuestionLogSummaryIsPass || 0.00;
|
|
|
|
|
$("#avgStudentScore").html(avgStudentScore);
|
|
|
|
|
$("#avgQuestionLogSummaryIsPass").html(avgQuestionLogSummaryIsPass);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|