|
|
|
@ -5,12 +5,20 @@ layui.define([ 'form', 'laydate', 'table' ,'laytpl'], function(exports) {
|
|
|
|
|
var laytpl= layui.laytpl;
|
|
|
|
|
var questionLogSummaryTable = null;
|
|
|
|
|
|
|
|
|
|
var data = [];
|
|
|
|
|
var data = {};
|
|
|
|
|
var teacherOpenCourseId = $("input[name='teacherOpenCourseId']").val();
|
|
|
|
|
var ret = Common.postAjax("/jlw/teacherOpenCourseQuestionSetting/analysis.json",
|
|
|
|
|
{'teacherOpenCourseId':teacherOpenCourseId,'questionSettingType':'CHAPTER_EXERCISE'});
|
|
|
|
|
if(ret.code==0){
|
|
|
|
|
data = ret.data;
|
|
|
|
|
if($.isEmpty(data)){
|
|
|
|
|
data = {
|
|
|
|
|
questionTotalCount:'',
|
|
|
|
|
avgCorrectCount:'',
|
|
|
|
|
avgWrongCount:'',
|
|
|
|
|
avgStudentScore:'',
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
var getTpl = demo.innerHTML
|
|
|
|
|
,view = document.getElementById('view');
|
|
|
|
|
laytpl(getTpl).render(data, function(html){
|
|
|
|
@ -46,149 +54,45 @@ layui.define([ 'form', 'laydate', 'table' ,'laytpl'], function(exports) {
|
|
|
|
|
,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/
|
|
|
|
|
,limit : 10,
|
|
|
|
|
cols : [ [ // 表头
|
|
|
|
|
{
|
|
|
|
|
type : 'checkbox',
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionLogSummaryId',
|
|
|
|
|
title : '学生做题日志汇总ID',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionLogSummaryId'])?false:sx_['questionLogSummaryId'],
|
|
|
|
|
|
|
|
|
|
width : 60,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionSettingId',
|
|
|
|
|
title : '题目配置ID',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionSettingId'])?false:sx_['questionSettingId'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionSettingName',
|
|
|
|
|
title : '题目配置名称',
|
|
|
|
|
field : 'questionSettingName',
|
|
|
|
|
title : '章节名称',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionSettingName'])?false:sx_['questionSettingName'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionSettingType',
|
|
|
|
|
title : '类型 枚举(ResourcesQuestionSnapshotFromTypeEnum)',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionSettingType'])?false:sx_['questionSettingType'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionLogSummaryFromType',
|
|
|
|
|
title : '来源类型 枚举',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionLogSummaryFromType'])?false:sx_['questionLogSummaryFromType'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionSettingTotalScore',
|
|
|
|
|
title : '配置的题目总分数',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionSettingTotalScore'])?false:sx_['questionSettingTotalScore'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'personId',
|
|
|
|
|
title : '人员ID(学生ID等等)',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['personId'])?false:sx_['personId'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionLogIds',
|
|
|
|
|
title : '关联的做题日志IDs',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionLogIds'])?false:sx_['questionLogIds'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionLogSummaryQuestionTotalCount',
|
|
|
|
|
title : '配置的题目总数',
|
|
|
|
|
field : 'questionTotalCount',
|
|
|
|
|
title : '章节练习题目数量',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionLogSummaryQuestionTotalCount'])?false:sx_['questionLogSummaryQuestionTotalCount'],
|
|
|
|
|
hide:$.isEmpty(sx_['questionTotalCount'])?false:sx_['questionTotalCount'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionLogSummaryStudentDoCount',
|
|
|
|
|
title : '学生做题总数',
|
|
|
|
|
field : 'avgCorrectCount',
|
|
|
|
|
title : '平均答对数量',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionLogSummaryStudentDoCount'])?false:sx_['questionLogSummaryStudentDoCount'],
|
|
|
|
|
hide:$.isEmpty(sx_['avgCorrectCount'])?false:sx_['avgCorrectCount'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionLogSummarySuccessCount',
|
|
|
|
|
title : '正确数量',
|
|
|
|
|
field : 'avgWrongCount',
|
|
|
|
|
title : '平均答错数量',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionLogSummarySuccessCount'])?false:sx_['questionLogSummarySuccessCount'],
|
|
|
|
|
hide:$.isEmpty(sx_['avgWrongCount'])?false:sx_['avgWrongCount'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionLogSummaryErrorCount',
|
|
|
|
|
title : '错误数量',
|
|
|
|
|
field : 'avgStudentScore',
|
|
|
|
|
title : '合计得分',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionLogSummaryErrorCount'])?false:sx_['questionLogSummaryErrorCount'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionLogSummarySuccessRate',
|
|
|
|
|
title : '正确率',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionLogSummarySuccessRate'])?false:sx_['questionLogSummarySuccessRate'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionLogSummaryCurrentPassRate',
|
|
|
|
|
title : '当前配置的及格比率',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionLogSummaryCurrentPassRate'])?false:sx_['questionLogSummaryCurrentPassRate'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionLogSummaryIsPass',
|
|
|
|
|
title : '是否及格',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionLogSummaryIsPass'])?false:sx_['questionLogSummaryIsPass'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionLogSummaryStatusText', //数据字典类型为 global_status
|
|
|
|
|
title : '状态(1正常 2删除)',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionLogSummaryStatusText'])?false:sx_['questionLogSummaryStatusText'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'questionLogSummaryAddTime',
|
|
|
|
|
title : '添加时间',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['questionLogSummaryAddTime'])?false:sx_['questionLogSummaryAddTime'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'orgId',
|
|
|
|
|
title : '组织ID',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['orgId'])?false:sx_['orgId'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field : 'userId',
|
|
|
|
|
title : '用户ID',
|
|
|
|
|
align:"center",
|
|
|
|
|
hideField :false,
|
|
|
|
|
hide:$.isEmpty(sx_['userId'])?false:sx_['userId'],
|
|
|
|
|
hide:$.isEmpty(sx_['avgStudentScore'])?false:sx_['avgStudentScore'],
|
|
|
|
|
}
|
|
|
|
|
,{
|
|
|
|
|
field : 'operation_',title : '操作',align:"center", templet: function (d) {
|
|
|
|
|
var htm = '<button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">编辑</button>';
|
|
|
|
|
htm += '<button type="button" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</button>';
|
|
|
|
|
var htm = '<button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="details">详情</button>';
|
|
|
|
|
/*htm += '<button type="button" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</button>';*/
|
|
|
|
|
return htm;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -240,14 +144,23 @@ layui.define([ 'form', 'laydate', 'table' ,'laytpl'], function(exports) {
|
|
|
|
|
Lib.doSearchForm($("#searchForm"), questionLogSummaryTable, 1);
|
|
|
|
|
view.initToolBar()
|
|
|
|
|
},
|
|
|
|
|
addButton_cancel:function () {
|
|
|
|
|
parent.Lib.tableRefresh();
|
|
|
|
|
Lib.closeFrame();
|
|
|
|
|
},
|
|
|
|
|
exportDocument: function () {
|
|
|
|
|
layui.use([ 'questionLogSummaryApi' ], function() {
|
|
|
|
|
/*layui.use([ 'questionLogSummaryApi' ], function() {
|
|
|
|
|
var questionLogSummaryApi = layui.questionLogSummaryApi
|
|
|
|
|
Common.openConfirm("确认要导出这些通用题目日志汇总数据?", function() {
|
|
|
|
|
questionLogSummaryApi.exportExcel($("#searchForm"), function(fileId) {
|
|
|
|
|
Lib.download(fileId);
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
});*/
|
|
|
|
|
layer.confirm('是否确定导出章节练习表吗?', function (index) {
|
|
|
|
|
var url =Common.ctxPath + "/jlw/questionLogSummary/exportAnalysis.json?teacherOpenCourseId="+teacherOpenCourseId+'&questionSettingType=CHAPTER_EXERCISE';
|
|
|
|
|
$.downFile(url);
|
|
|
|
|
layer.close(index);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
importDocument: function () {
|
|
|
|
@ -283,6 +196,9 @@ layui.define([ 'form', 'laydate', 'table' ,'laytpl'], function(exports) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}else if (obj.event === 'details') {
|
|
|
|
|
var url = "/jlw/teacherOpenCourseStudentSigninLog/index.do?signinSettingId=" + data.teacherOpenCourseStudentSigninSettingId + "&tOCId=" + teacherOpenCourseId;
|
|
|
|
|
Common.openDlg(url,"/详情");
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|