|
|
|
@ -26,8 +26,17 @@
|
|
|
|
|
<div class="layui-col-md9">
|
|
|
|
|
<div class="layui-inline">
|
|
|
|
|
<layui:searchForm formId="searchForm" searchList="" condition="${search}">
|
|
|
|
|
<div class="layui-inline" id="opTime_view">
|
|
|
|
|
|
|
|
|
|
<div class="layui-inline">
|
|
|
|
|
<!--#if(questionSettingType=='CHAPTER_EXERCISE'){-->
|
|
|
|
|
<label class="layui-form-label">章节名称</label>
|
|
|
|
|
<!--#}else if(questionSettingType=='EXAM'){-->
|
|
|
|
|
<label class="layui-form-label">考试名称</label>
|
|
|
|
|
<!--#}else if(questionSettingType=='HOMEWORK_FILE('){-->
|
|
|
|
|
<label class="layui-form-label" style="width: 85px">附件作业名称</label>
|
|
|
|
|
<!--#}else if(questionSettingType=='HOMEWORK_QUESTION'){-->
|
|
|
|
|
<label class="layui-form-label" style="width: 85px">题库作业名称</label>
|
|
|
|
|
<!--#}-->
|
|
|
|
|
<div class="layui-input-inline" id="view"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</layui:searchForm>
|
|
|
|
|
</div>
|
|
|
|
@ -46,7 +55,17 @@
|
|
|
|
|
</div>
|
|
|
|
|
<input type="hidden" name="teacherOpenCourseId" autocomplete="off" class="layui-input" value="${teacherOpenCourseId}"/>
|
|
|
|
|
<input type="hidden" name="questionSettingType" autocomplete="off" class="layui-input" value="${questionSettingType}"/>
|
|
|
|
|
<input type="hidden" name="questionSettingId" autocomplete="off" class="layui-input" value="${questionSettingId}"/>
|
|
|
|
|
<!--#} -->
|
|
|
|
|
<script id="demo" type="text/html">
|
|
|
|
|
<select name="teacherOpenCourseQuestionSettingId" lay-verify="">
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
{{# layui.each(d, function(index, item){ }}
|
|
|
|
|
<option value="{{item.teacherOpenCourseQuestionSettingId}}">{{item.teacherOpenCourseQuestionSettingName}}
|
|
|
|
|
</option>
|
|
|
|
|
{{# }); }}
|
|
|
|
|
</select>
|
|
|
|
|
</script>
|
|
|
|
|
<script id="CHAPTER_EXERCISE_demo" type="text/html">
|
|
|
|
|
<label class="layui-form-label">章节名称</label>
|
|
|
|
|
<div class="layui-input-block">
|
|
|
|
@ -102,10 +121,9 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
var teacherOpenCourseQuestionLogTable = null;
|
|
|
|
|
var studentTable = null;
|
|
|
|
|
|
|
|
|
|
var teacherOpenCourseStudentSigninSettingId=$("input[name='teacherOpenCourseStudentSigninSettingId']").val();
|
|
|
|
|
var questionSettingId = $("input[name='questionSettingId']").val();
|
|
|
|
|
var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val();
|
|
|
|
|
var questionSettingType = $("input[name='questionSettingType']").val();
|
|
|
|
|
|
|
|
|
|
laydate.render({
|
|
|
|
|
elem: '#test5'
|
|
|
|
|
,type: 'datetime'
|
|
|
|
@ -113,59 +131,13 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
});
|
|
|
|
|
var data = [];
|
|
|
|
|
|
|
|
|
|
var getTpl, view;
|
|
|
|
|
|
|
|
|
|
if (questionSettingType == "CHAPTER_EXERCISE") {
|
|
|
|
|
|
|
|
|
|
var paras = {
|
|
|
|
|
//courseInfoParentId: teacherOpenCourseId,
|
|
|
|
|
courseInfoType: 2,
|
|
|
|
|
courseInfoStatus: 1
|
|
|
|
|
};
|
|
|
|
|
var ret = Common.getAjax("/jlw/courseInfo/getValues.json", paras);
|
|
|
|
|
if (ret.code == 0) {
|
|
|
|
|
data = ret.data;
|
|
|
|
|
}
|
|
|
|
|
var getTpl = CHAPTER_EXERCISE_demo.innerHTML
|
|
|
|
|
, view = document.getElementById('opTime_view');
|
|
|
|
|
|
|
|
|
|
} else if (questionSettingType == "EXAM") {
|
|
|
|
|
|
|
|
|
|
var ret = Common.postAjax("/jlw/questionLogSummary/analysisPageList.json", {
|
|
|
|
|
"teacherOpenCourseId": teacherOpenCourseId,
|
|
|
|
|
'questionSettingType': questionSettingType
|
|
|
|
|
});
|
|
|
|
|
if (ret.code == 0) {
|
|
|
|
|
data = ret.data;
|
|
|
|
|
}
|
|
|
|
|
var getTpl = EXAM_demo.innerHTML
|
|
|
|
|
, view = document.getElementById('opTime_view');
|
|
|
|
|
|
|
|
|
|
} else if (questionSettingType == "HOMEWORK_FILE") {
|
|
|
|
|
|
|
|
|
|
var ret = Common.postAjax("/jlw/questionLogSummary/analysisPageList.json", {
|
|
|
|
|
"teacherOpenCourseId": teacherOpenCourseId,
|
|
|
|
|
'questionSettingType': questionSettingType
|
|
|
|
|
});
|
|
|
|
|
if (ret.code == 0) {
|
|
|
|
|
data = ret.data;
|
|
|
|
|
}
|
|
|
|
|
var getTpl = HOMEWORK_FILE_demo.innerHTML
|
|
|
|
|
, view = document.getElementById('opTime_view');
|
|
|
|
|
|
|
|
|
|
} else if (questionSettingType == "HOMEWORK_QUESTION") {
|
|
|
|
|
|
|
|
|
|
var ret = Common.postAjax("/jlw/questionLogSummary/analysisPageList.json", {
|
|
|
|
|
"teacherOpenCourseId": teacherOpenCourseId,
|
|
|
|
|
'questionSettingType': questionSettingType
|
|
|
|
|
});
|
|
|
|
|
if (ret.code == 0) {
|
|
|
|
|
data = ret.data;
|
|
|
|
|
}
|
|
|
|
|
var getTpl = HOMEWORK_QUESTION_demo.innerHTML
|
|
|
|
|
, view = document.getElementById('opTime_view');
|
|
|
|
|
var url = "/api/teacherOpenCourseQuestionSetting/getList.do?teacherOpenCourseId=" + teacherOpenCourseId + "&teacherOpenCourseQuestionSettingType=" + questionSettingType;
|
|
|
|
|
var ret = Common.getAjax(url);
|
|
|
|
|
if (ret.code == 0) {
|
|
|
|
|
data = ret.data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var getTpl = demo.innerHTML
|
|
|
|
|
, view = document.getElementById('view');
|
|
|
|
|
|
|
|
|
|
laytpl(getTpl).render(data, function(html){
|
|
|
|
|
view.innerHTML = html;
|
|
|
|
@ -195,6 +167,7 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
,page : Lib.tablePage // 开启分页
|
|
|
|
|
/* ,toolbar: '#toolbar_teacherOpenCourseQuestionLog' //自定义头部左侧工具栏
|
|
|
|
|
,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/
|
|
|
|
|
,where:{'teacherOpenCourseQuestionSettingId':questionSettingId}
|
|
|
|
|
,limit : 10,
|
|
|
|
|
cols : [ [ // 表头
|
|
|
|
|
{
|
|
|
|
@ -289,7 +262,7 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
method: 'post',
|
|
|
|
|
even: true,
|
|
|
|
|
// skin:'nob',
|
|
|
|
|
// where:getParam_s(),
|
|
|
|
|
where:getParam_s(),
|
|
|
|
|
size: "sm",
|
|
|
|
|
url: Common.ctxPath + '/api/teacherOpenCourseQuestionLog/studentScoreList.do' // 数据接口
|
|
|
|
|
, page: Lib.tablePage // 开启分页
|
|
|
|
@ -319,11 +292,11 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
});
|
|
|
|
|
//触发行单击事件
|
|
|
|
|
table.on('row(studentTable)', function(obj){
|
|
|
|
|
var settingId = $("select[name='teacherOpenCourseQuestionSettingId']").val();
|
|
|
|
|
var param={
|
|
|
|
|
'teacherOpenCourseStudentSigninSettingId': teacherOpenCourseStudentSigninSettingId,
|
|
|
|
|
'courseInfoId': $("select[name='courseInfoId']").val(),
|
|
|
|
|
'studentId':obj.data.studentId
|
|
|
|
|
}
|
|
|
|
|
'studentId':obj.data.studentId,
|
|
|
|
|
'teacherOpenCourseQuestionSettingId':$.isEmpty(settingId)?questionSettingId:settingId,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
teacherOpenCourseQuestionLogTable.reload({
|
|
|
|
|
where: param,
|
|
|
|
@ -341,6 +314,8 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
var btn_s = $("#searchFormSearch");
|
|
|
|
|
btn_s.on('click', function () {
|
|
|
|
|
var data = $("#searchForm").serializeJson();
|
|
|
|
|
data.teacherOpenCourseQuestionSettingId =$.isEmpty(data.teacherOpenCourseQuestionSettingId)?questionSettingId:data.teacherOpenCourseQuestionSettingId
|
|
|
|
|
|
|
|
|
|
teacherOpenCourseQuestionLogTable.reload({
|
|
|
|
|
where: data,
|
|
|
|
|
page: {
|
|
|
|
@ -399,8 +374,27 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
Common.openDlg(url, "teacherOpenCourseQuestionLog管理>上传");
|
|
|
|
|
},*/
|
|
|
|
|
exportDocument: function () {
|
|
|
|
|
Common.openConfirm("确认要导出该详情?", function () {
|
|
|
|
|
//$.downFile(Common.ctxPath + "/api/teacherOpenCourseQuestionLog/export.do?teacherOpenCourseId="+teacherOpenCourseId);
|
|
|
|
|
var url,title;
|
|
|
|
|
var settingId = $("select[name='teacherOpenCourseQuestionSettingId']").val();
|
|
|
|
|
settingId = $.isEmpty(settingId)?questionSettingId:settingId
|
|
|
|
|
|
|
|
|
|
if(questionSettingType == "CHAPTER_EXERCISE"){///jlw/questionLogSummary/homeworkFileAnalysisExport.json
|
|
|
|
|
title = '章节详情表';
|
|
|
|
|
url = "/api/teacherOpenCourseQuestionLog/zyDetailExport.do?teacherOpenCourseQuestionSettingId=" + settingId;
|
|
|
|
|
//+ teacherOpenCourseId + '&questionSettingType=' + questionSettingType;
|
|
|
|
|
}else if(questionSettingType == "EXAM"){
|
|
|
|
|
title = '考试详情表';
|
|
|
|
|
url = "/api/teacherOpenCourseQuestionLog/zyDetailExport.do?teacherOpenCourseQuestionSettingId=" + settingId;
|
|
|
|
|
}else if(questionSettingType == "HOMEWORK_FILE"){
|
|
|
|
|
title = '附件作业详情表';
|
|
|
|
|
}else if(questionSettingType == "HOMEWORK_QUESTION"){
|
|
|
|
|
title ="题库作业详情表";
|
|
|
|
|
url = "/api/teacherOpenCourseQuestionLog/zyDetailExport.do?teacherOpenCourseQuestionSettingId=" + settingId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Common.openConfirm("确认要导出"+title+"?", function (index) {
|
|
|
|
|
$.downFile(Common.ctxPath + url,title);
|
|
|
|
|
layer.close(index);
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
addButton_cancel:function () {
|
|
|
|
@ -437,10 +431,9 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
};
|
|
|
|
|
function getParam_s(){
|
|
|
|
|
var param = {
|
|
|
|
|
//"teacherOpenCourseStudentSigninSettingSessionTime":$("select[name='teacherOpenCourseStudentSigninSettingSessionTime']").val(),
|
|
|
|
|
"schoolClassIdPlural":$("#studentForm select[name='classId']").val(),
|
|
|
|
|
"studentSnOrName":$("#studentForm input[name='studentOrName']").val(),
|
|
|
|
|
//'teacherOpenCourseId':teacherOpenCourseId
|
|
|
|
|
'teacherOpenCourseId': teacherOpenCourseId
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return param
|
|
|
|
|