|
|
|
@ -32,44 +32,79 @@
|
|
|
|
|
</layui:searchForm>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-inline layui-form-item" style="margin-top:-5px;">
|
|
|
|
|
<layui:accessButton function="teacherOpenCourseStudentSigninLog.query" action="exportDocument"><span
|
|
|
|
|
<layui:accessButton function="teacherOpenCourseQuestionLog.query" action="exportDocument"><span
|
|
|
|
|
class="iconfont"></span>导出</layui:accessButton>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-inline" style="float: right">
|
|
|
|
|
<layui:accessButton function="teacherOpenCourseStudentSigninLog.query" class="layui-btn-primary"
|
|
|
|
|
<layui:accessButton function="teacherOpenCourseQuestionLog.query" class="layui-btn-primary"
|
|
|
|
|
action="addButton_cancel"><span class="iconfont"></span>返回</layui:accessButton>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<table class="teacherOpenCourseStudentSigninLogTable"
|
|
|
|
|
lay-filter="teacherOpenCourseStudentSigninLogTable"></table>
|
|
|
|
|
<table id="teacherOpenCourseQuestionLogTable"
|
|
|
|
|
lay-filter="teacherOpenCourseQuestionLogTable"></table>
|
|
|
|
|
</div>
|
|
|
|
|
</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}"/>
|
|
|
|
|
<!--#} -->
|
|
|
|
|
<script id="opTime_demo" type="text/html">
|
|
|
|
|
<label class="layui-form-label">日期筛选</label>
|
|
|
|
|
<div class="layui-input-inline">
|
|
|
|
|
<select name="teacherOpenCourseStudentSigninSettingSessionTime" lay-verify="" > </select>
|
|
|
|
|
<!--<input type="text" name="" placeholder="teacherOpenCourseStudentSigninSettingSessionTime"
|
|
|
|
|
autocomplete="off" class="layui-input" id="test5">-->
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
{{# layui.each(d, function(index, item){ }}
|
|
|
|
|
<option value="{{item}}">{{item}}</option>
|
|
|
|
|
{{# }); }}
|
|
|
|
|
<script id="CHAPTER_EXERCISE_demo" type="text/html">
|
|
|
|
|
<label class="layui-form-label">章节名称</label>
|
|
|
|
|
<div class="layui-input-block">
|
|
|
|
|
<!--<select name="courseInfoId" lay-verify="" ></select>-->
|
|
|
|
|
<select name="courseInfoId" lay-verify="">
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
{{# layui.each(d, function(index, item){ }}
|
|
|
|
|
<option value="{{item.courseInfoId}}">{{item.courseInfoName}}</option>
|
|
|
|
|
{{# }); }}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<script id="EXAM_demo" type="text/html">
|
|
|
|
|
<label class="layui-form-label">考试名称</label>
|
|
|
|
|
<div class="layui-input-inline">
|
|
|
|
|
<select name="questionSettingName" lay-verify="">
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
{{# layui.each(d, function(index, item){ }}
|
|
|
|
|
<option value="{{item.questionSettingName}}">{{item.questionSettingName}}</option>
|
|
|
|
|
{{# }); }}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</script>
|
|
|
|
|
<script id="HOMEWORK_FILE_demo" type="text/html">
|
|
|
|
|
<label class="layui-form-label" style="width: 85px">附件作业名称</label>
|
|
|
|
|
<div class="layui-input-inline">
|
|
|
|
|
<select name="teacherOpenCourseStudentSigninSettingSessionTime" lay-verify="">
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
{{# layui.each(d, function(index, item){ }}
|
|
|
|
|
<option value="{{item.questionSettingName}}">{{item.questionSettingName}}</option>
|
|
|
|
|
{{# }); }}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</script>
|
|
|
|
|
<script id="HOMEWORK_QUESTION_demo" type="text/html">
|
|
|
|
|
<label class="layui-form-label" style="width: 85px">题库作业名称</label>
|
|
|
|
|
<div class="layui-input-inline">
|
|
|
|
|
<select name="teacherOpenCourseStudentSigninSettingSessionTime" lay-verify="">
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
{{# layui.each(d, function(index, item){ }}
|
|
|
|
|
<option value="{{item.questionSettingName}}">{{item.questionSettingName}}</option>
|
|
|
|
|
{{# }); }}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</script>
|
|
|
|
|
<script>
|
|
|
|
|
layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
var form = layui.form;
|
|
|
|
|
var laydate = layui.laydate;
|
|
|
|
|
var table = layui.table;
|
|
|
|
|
var laytpl = layui.laytpl;
|
|
|
|
|
var teacherOpenCourseStudentSigninLogTable = null;
|
|
|
|
|
var teacherOpenCourseQuestionLogTable = null;
|
|
|
|
|
var studentTable = null;
|
|
|
|
|
|
|
|
|
|
var teacherOpenCourseStudentSigninSettingId=$("input[name='teacherOpenCourseStudentSigninSettingId']").val();
|
|
|
|
|
var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val();
|
|
|
|
|
var questionSettingType = $("input[name='questionSettingType']").val();
|
|
|
|
|
|
|
|
|
|
laydate.render({
|
|
|
|
|
elem: '#test5'
|
|
|
|
@ -77,41 +112,88 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
, trigger: 'click'
|
|
|
|
|
});
|
|
|
|
|
var data = [];
|
|
|
|
|
var ret = Common.postAjax("/jlw/teacherOpenCourseStudentSigninSetting/sessionDateList.json", {"teacherOpenCourseId": teacherOpenCourseId});
|
|
|
|
|
|
|
|
|
|
if(ret.code==0){
|
|
|
|
|
data = ret.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 getTpl = opTime_demo.innerHTML
|
|
|
|
|
,view = document.getElementById('opTime_view');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
laytpl(getTpl).render(data, function(html){
|
|
|
|
|
view.innerHTML = html;
|
|
|
|
|
});
|
|
|
|
|
form.render();
|
|
|
|
|
|
|
|
|
|
var view ={
|
|
|
|
|
init:function(){
|
|
|
|
|
var that = this
|
|
|
|
|
var that = this;
|
|
|
|
|
this.initTable();
|
|
|
|
|
this.initSearchForm();
|
|
|
|
|
this.initToolBar();
|
|
|
|
|
window.dataReload = function(){
|
|
|
|
|
Lib.doSearchForm($("#searchForm"), teacherOpenCourseStudentSigninLogTable);
|
|
|
|
|
Lib.doSearchForm($("#searchForm"), studentTable)
|
|
|
|
|
Lib.doSearchForm($("#searchForm"), teacherOpenCourseQuestionLogTable);
|
|
|
|
|
Lib.doSearchForm($("#searchForm"), studentTable);
|
|
|
|
|
that.initToolBar();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
initTable:function(){
|
|
|
|
|
var sx_ = localStorage.getItem("teacherOpenCourseStudentSigninLogTable_field_"+Common.userInfoId); //筛选值显示、隐藏缓存
|
|
|
|
|
var sx_ = localStorage.getItem("teacherOpenCourseQuestionLogTable_field_" + Common.userInfoId); //筛选值显示、隐藏缓存
|
|
|
|
|
if($.isEmpty(sx_)){sx_ = {};}else {sx_ = JSON.parse(sx_);}
|
|
|
|
|
teacherOpenCourseStudentSigninLogTable = table.render({
|
|
|
|
|
elem: '.teacherOpenCourseStudentSigninLogTable',
|
|
|
|
|
teacherOpenCourseQuestionLogTable = table.render({
|
|
|
|
|
elem: '#teacherOpenCourseQuestionLogTable',
|
|
|
|
|
height : Lib.getTableHeight(1),
|
|
|
|
|
cellMinWidth: 100,
|
|
|
|
|
method : 'post',
|
|
|
|
|
url : Common.ctxPath + '/jlw/teacherOpenCourseStudentSigninLog/list.json' // 数据接口
|
|
|
|
|
,where: {'teacherOpenCourseStudentSigninSettingId':teacherOpenCourseStudentSigninSettingId}
|
|
|
|
|
url: Common.ctxPath + '/api/teacherOpenCourseQuestionLog/list.do' // 数据接口
|
|
|
|
|
,page : Lib.tablePage // 开启分页
|
|
|
|
|
/* ,toolbar: '#toolbar_teacherOpenCourseStudentSigninLog' //自定义头部左侧工具栏
|
|
|
|
|
/* ,toolbar: '#toolbar_teacherOpenCourseQuestionLog' //自定义头部左侧工具栏
|
|
|
|
|
,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/
|
|
|
|
|
,limit : 10,
|
|
|
|
|
cols : [ [ // 表头
|
|
|
|
@ -120,62 +202,82 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
title: '学号',
|
|
|
|
|
align: "center",
|
|
|
|
|
hideField: false,
|
|
|
|
|
hide: $.isEmpty(sx_['teacherOpenCourseStudentSigninLogId']) ? false : sx_['teacherOpenCourseStudentSigninLogId'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'studentIdText', //数据字典类型为 student.student_name.student_status=1
|
|
|
|
|
field: 'studentName', //数据字典类型为 student.student_name.student_status=1
|
|
|
|
|
title: '姓名',
|
|
|
|
|
align: "center",
|
|
|
|
|
hideField: false,
|
|
|
|
|
hide: $.isEmpty(sx_['studentIdText']) ? false : sx_['studentIdText'],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field: 'questionScore', //数据字典类型为 school_class.class_name.class_status=1
|
|
|
|
|
title: '题干',
|
|
|
|
|
align: "center",
|
|
|
|
|
hideField: false,
|
|
|
|
|
hide: $.isEmpty(sx_['questionScore']) ? false : sx_['questionScore'],
|
|
|
|
|
hide: questionSettingType != "HOMEWORK_FILE" ? false : true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'questionType',
|
|
|
|
|
title: '题型',
|
|
|
|
|
align: "center",
|
|
|
|
|
hideField: false,
|
|
|
|
|
hide: $.isEmpty(sx_['questionType']) ? false : sx_['questionType'],
|
|
|
|
|
hide: questionSettingType != "HOMEWORK_FILE" ? false : true,
|
|
|
|
|
templet:function (d) {//1单选 2多选 3判断 4填空 5分析
|
|
|
|
|
var htm = d.questionType===1?"单选":d.questionType===2?"多选":d.questionType===3?"判断":d.questionType===4?"填空":d.questionType===5?"分析":""
|
|
|
|
|
return htm;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'teacherOpenCourseIdText', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1
|
|
|
|
|
field: 'teacherOpenCourseQuestionLogAnswer', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1
|
|
|
|
|
title: '我的选项',
|
|
|
|
|
align: "center",
|
|
|
|
|
hideField: false,
|
|
|
|
|
hide: $.isEmpty(sx_['teacherOpenCourseIdText']) ? false : sx_['teacherOpenCourseIdText'],
|
|
|
|
|
templet: function (d) {
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
hide: questionSettingType != "HOMEWORK_FILE" ? false : true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'teacherOpenCourseStudentSigninLogRemark', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1
|
|
|
|
|
field: 'questionAnswer', //数据字典类型为 teacher_open_course.teacher_open_course_title.teacher_open_course_status=1
|
|
|
|
|
title: '正确答案',
|
|
|
|
|
align: "center",
|
|
|
|
|
hideField: false,
|
|
|
|
|
hide: $.isEmpty(sx_['teacherOpenCourseIdText']) ? false : sx_['teacherOpenCourseIdText'],
|
|
|
|
|
hide: questionSettingType != "HOMEWORK_FILE" ? false : true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'teacherOpenCourseStudentSigninSettingSessionTime',
|
|
|
|
|
field: 'status',
|
|
|
|
|
title: '状态',
|
|
|
|
|
align: "center",
|
|
|
|
|
hideField: false,
|
|
|
|
|
hide: $.isEmpty(sx_['teacherOpenCourseStudentSigninLogAddTime']) ? false : sx_['teacherOpenCourseStudentSigninLogAddTime'],
|
|
|
|
|
hide: questionSettingType != "HOMEWORK_FILE" ? false : true,
|
|
|
|
|
templet: function (d) {
|
|
|
|
|
var htm = d.questionAnswer == d.teacherOpenCourseQuestionLogAnswer ? "正确" : "错误";
|
|
|
|
|
return htm;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'questionName',
|
|
|
|
|
title: '报告名称',
|
|
|
|
|
align: "center",
|
|
|
|
|
hide: questionSettingType == "HOMEWORK_FILE" ? false : true,
|
|
|
|
|
},{
|
|
|
|
|
field: 'teacherOpenCourseStudentSigninSettingSessionTime',
|
|
|
|
|
title: '得分',
|
|
|
|
|
field: 'status',
|
|
|
|
|
title: '报告下载',
|
|
|
|
|
align: "center",
|
|
|
|
|
hideField: false,
|
|
|
|
|
hide: $.isEmpty(sx_['teacherOpenCourseStudentSigninLogAddTime']) ? false : sx_['teacherOpenCourseStudentSigninLogAddTime'],
|
|
|
|
|
hide: questionSettingType == "HOMEWORK_FILE" ? false : true,
|
|
|
|
|
templet:function (d) {
|
|
|
|
|
var htm = '<a class="layui-table-link" lay-event="download">下载</a>'
|
|
|
|
|
}
|
|
|
|
|
},{
|
|
|
|
|
field: 'teacherOpenCourseQuestionLogReply',
|
|
|
|
|
title: '教师评语',
|
|
|
|
|
align: "center",
|
|
|
|
|
hide: questionSettingType == "HOMEWORK_FILE" ? false : true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'questionScore',
|
|
|
|
|
title: questionSettingType != "HOMEWORK_FILE" ?'得分':'报告得分',
|
|
|
|
|
align: "center",
|
|
|
|
|
hide: questionSettingType != "HOMEWORK_FILE" ? false : true,
|
|
|
|
|
templet: function (d) {
|
|
|
|
|
var htm = d.questionAnswer == d.teacherOpenCourseQuestionLogAnswer ? d.questionScore : "0";
|
|
|
|
|
return htm;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
] ]
|
|
|
|
|
});
|
|
|
|
@ -183,12 +285,12 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
studentTable = table.render({
|
|
|
|
|
elem: '#studentTable',
|
|
|
|
|
height: Lib.getTableHeight(),
|
|
|
|
|
cellMinWidth: 100,
|
|
|
|
|
cellMinWidth: 80,
|
|
|
|
|
method: 'post',
|
|
|
|
|
even: true,
|
|
|
|
|
// skin:'nob',
|
|
|
|
|
where:getParam_s(),
|
|
|
|
|
size: "lg",
|
|
|
|
|
// where:getParam_s(),
|
|
|
|
|
size: "sm",
|
|
|
|
|
url: Common.ctxPath + '/api/teacherOpenCourseQuestionLog/studentScoreList.do' // 数据接口
|
|
|
|
|
, page: Lib.tablePage // 开启分页
|
|
|
|
|
, limit: 10,
|
|
|
|
@ -196,12 +298,9 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
{
|
|
|
|
|
field: 'studentSn',
|
|
|
|
|
title: '学号', align: "center",
|
|
|
|
|
templet:function (d) {
|
|
|
|
|
return $.isEmpty(d.studentInfo)?"":d.studentInfo.studentSn
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'studentIdText',
|
|
|
|
|
field: 'studentName',
|
|
|
|
|
title: '姓名', align: "center"
|
|
|
|
|
}, {
|
|
|
|
|
field: 'studentScore',
|
|
|
|
@ -210,8 +309,8 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
]]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
table.on('checkbox(teacherOpenCourseStudentSigninLogTable)', function(obj){
|
|
|
|
|
var teacherOpenCourseStudentSigninLog = obj.data;
|
|
|
|
|
table.on('checkbox(teacherOpenCourseQuestionLogTable)', function (obj) {
|
|
|
|
|
var teacherOpenCourseQuestionLog = obj.data;
|
|
|
|
|
if(obj.checked){
|
|
|
|
|
//按钮逻辑Lib.buttonEnable()
|
|
|
|
|
}else{
|
|
|
|
@ -222,11 +321,11 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
table.on('row(studentTable)', function(obj){
|
|
|
|
|
var param={
|
|
|
|
|
'teacherOpenCourseStudentSigninSettingId': teacherOpenCourseStudentSigninSettingId,
|
|
|
|
|
'teacherOpenCourseStudentSigninSettingSessionTime':$("select[name='teacherOpenCourseStudentSigninSettingSessionTime']").val(),
|
|
|
|
|
'courseInfoId': $("select[name='courseInfoId']").val(),
|
|
|
|
|
'studentId':obj.data.studentId
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
teacherOpenCourseStudentSigninLogTable.reload({
|
|
|
|
|
teacherOpenCourseQuestionLogTable.reload({
|
|
|
|
|
where: param,
|
|
|
|
|
page: {
|
|
|
|
|
curr: 1
|
|
|
|
@ -236,25 +335,18 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
initSearchForm:function(){
|
|
|
|
|
//Lib.initSearchForm( $("#searchForm"),teacherOpenCourseStudentSigninLogTable,form);
|
|
|
|
|
//Lib.initSearchForm( $("#searchForm"),teacherOpenCourseQuestionLogTable,form);
|
|
|
|
|
//Lib.initSearchForm( $("#studentForm"),studentTable,form);
|
|
|
|
|
|
|
|
|
|
var btn_s = $("#searchFormSearch");
|
|
|
|
|
btn_s.on('click', function () {
|
|
|
|
|
console.log($("select[name='teacherOpenCourseStudentSigninSettingSessionTime']").val())
|
|
|
|
|
var data = $("#searchForm").serializeJson();
|
|
|
|
|
teacherOpenCourseStudentSigninLogTable.reload({
|
|
|
|
|
teacherOpenCourseQuestionLogTable.reload({
|
|
|
|
|
where: data,
|
|
|
|
|
page: {
|
|
|
|
|
curr: 1
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
studentTable.reload({
|
|
|
|
|
where: getParam_s(),
|
|
|
|
|
page: {
|
|
|
|
|
curr: 1
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var btn = $("#studentFormSearch");
|
|
|
|
@ -270,17 +362,17 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
|
|
|
|
|
initToolBar:function(){
|
|
|
|
|
toolbar = {
|
|
|
|
|
add: function () {
|
|
|
|
|
var url = "/jlw/teacherOpenCourseStudentSigninLog/add.do";
|
|
|
|
|
/*add: function () {
|
|
|
|
|
var url = "/jlw/teacherOpenCourseQuestionLog/add.do";
|
|
|
|
|
Common.openDlg(url,"学生签到记录管理>新增");
|
|
|
|
|
},
|
|
|
|
|
edit: function () {
|
|
|
|
|
var data = Common.getOneFromTable(table,"teacherOpenCourseStudentSigninLogTable");
|
|
|
|
|
var data = Common.getOneFromTable(table,"teacherOpenCourseQuestionLogTable");
|
|
|
|
|
if(data==null){
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
var url = "/jlw/teacherOpenCourseStudentSigninLog/add.do?teacherOpenCourseStudentSigninLogId="+data.teacherOpenCourseStudentSigninLogId;
|
|
|
|
|
Common.openDlg(url,"学生签到记录管理>"+data.teacherOpenCourseStudentSigninLogId+">编辑");
|
|
|
|
|
var url = "/jlw/teacherOpenCourseQuestionLog/add.do?teacherOpenCourseQuestionLogId="+data.teacherOpenCourseQuestionLogId;
|
|
|
|
|
Common.openDlg(url,"学生签到记录管理>"+data.teacherOpenCourseQuestionLogId+">编辑");
|
|
|
|
|
},
|
|
|
|
|
del: function () {
|
|
|
|
|
layui.use(['del'], function(){
|
|
|
|
@ -289,52 +381,47 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
search: function () {
|
|
|
|
|
Lib.doSearchForm($("#searchForm"), teacherOpenCourseStudentSigninLogTable, 1);
|
|
|
|
|
Lib.doSearchForm($("#searchForm"), teacherOpenCourseQuestionLogTable, 1);
|
|
|
|
|
view.initToolBar()
|
|
|
|
|
},
|
|
|
|
|
refresh: function () {
|
|
|
|
|
searchForm.reset();
|
|
|
|
|
Lib.doSearchForm($("#searchForm"), teacherOpenCourseStudentSigninLogTable, 1);
|
|
|
|
|
Lib.doSearchForm($("#searchForm"), teacherOpenCourseQuestionLogTable, 1);
|
|
|
|
|
view.initToolBar()
|
|
|
|
|
},
|
|
|
|
|
exportDocument: function () {
|
|
|
|
|
layui.use([ 'teacherOpenCourseStudentSigninLogApi' ], function() {
|
|
|
|
|
var teacherOpenCourseStudentSigninLogApi = layui.teacherOpenCourseStudentSigninLogApi
|
|
|
|
|
Common.openConfirm("确认要导出签到详情?", function() {
|
|
|
|
|
// teacherOpenCourseStudentSigninLogApi.exportExcel($("#searchForm"), function(fileId) {
|
|
|
|
|
// // Lib.download(fileId);
|
|
|
|
|
// })
|
|
|
|
|
$.downFile(Common.ctxPath + "/api/teacherOpenCourseStudentSigninLog/export.do?teacherOpenCourseId="+teacherOpenCourseId);
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
importDocument: function () {
|
|
|
|
|
var uploadUrl = Common.ctxPath+"/jlw/teacherOpenCourseStudentSigninLog/importTemplate.json";
|
|
|
|
|
|
|
|
|
|
importDocument: function () {
|
|
|
|
|
var uploadUrl = Common.ctxPath+"/jlw/teacherOpenCourseQuestionLog/importTemplate.json";
|
|
|
|
|
//模板,
|
|
|
|
|
var templatePath= Common.ctxPath+"/jlw/teacherOpenCourseStudentSigninLog/downloadTemplate.json";
|
|
|
|
|
var templatePath= Common.ctxPath+"/jlw/teacherOpenCourseQuestionLog/downloadTemplate.json";
|
|
|
|
|
//公共的简单上传文件处理
|
|
|
|
|
var url = "/core/file/simpleUpload.do?uploadUrl="+uploadUrl+"&templatePath="+templatePath;
|
|
|
|
|
Common.openDlg(url, "TeacherOpenCourseStudentSigninLog管理>上传");
|
|
|
|
|
Common.openDlg(url, "teacherOpenCourseQuestionLog管理>上传");
|
|
|
|
|
},*/
|
|
|
|
|
exportDocument: function () {
|
|
|
|
|
Common.openConfirm("确认要导出该详情?", function () {
|
|
|
|
|
//$.downFile(Common.ctxPath + "/api/teacherOpenCourseQuestionLog/export.do?teacherOpenCourseId="+teacherOpenCourseId);
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
addButton_cancel:function () {
|
|
|
|
|
parent.Lib.tableRefresh();
|
|
|
|
|
Lib.closeFrame();
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
//触发事件
|
|
|
|
|
$('.ext-toolbar').on('click', function() {
|
|
|
|
|
var type = $(this).data('type');
|
|
|
|
|
toolbar[type] ? toolbar[type].call(this) : '';
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}, initTableTool: table.on('tool(teacherOpenCourseStudentSigninLogTable)', function (obj) {
|
|
|
|
|
}, initTableTool: table.on('tool(teacherOpenCourseQuestionLogTable)', function (obj) {
|
|
|
|
|
var data = obj.data;
|
|
|
|
|
if (obj.event === 'edit') {
|
|
|
|
|
var url = "/jlw/teacherOpenCourseStudentSigninLog/add.do?teacherOpenCourseStudentSigninLogId="+data.teacherOpenCourseStudentSigninLogId;
|
|
|
|
|
Common.openDlg(url,"学生签到记录管理>"+data.teacherOpenCourseStudentSigninLogId+">编辑");
|
|
|
|
|
//var url = "/jlw/teacherOpenCourseQuestionLog/add.do?teacherOpenCourseQuestionLogId="+data.teacherOpenCourseQuestionLogId;
|
|
|
|
|
Common.openDlg(url, "学生签到记录管理>" + data.teacherOpenCourseQuestionLogId + ">编辑");
|
|
|
|
|
}else if(obj.event === "del"){
|
|
|
|
|
layer.confirm('是否确定删除该信息?', function (index) {
|
|
|
|
|
var ret = Common.postAjax("/jlw/teacherOpenCourseStudentSigninLog/delete.json",{ids:data.teacherOpenCourseStudentSigninLogId});
|
|
|
|
|
// var ret = Common.postAjax("/jlw/teacherOpenCourseQuestionLog/delete.json",{ids:data.teacherOpenCourseQuestionLogId});
|
|
|
|
|
layer.msg(ret.code == 0?"删除成功!":ret.msg, {
|
|
|
|
|
offset: ['50%'],
|
|
|
|
|
icon: ret.code == 0?1:2,
|
|
|
|
@ -350,14 +437,17 @@ layui.use(['form','laydate','table','laytpl'], function(){
|
|
|
|
|
};
|
|
|
|
|
function getParam_s(){
|
|
|
|
|
var param = {
|
|
|
|
|
"teacherOpenCourseStudentSigninSettingSessionTime":$("select[name='teacherOpenCourseStudentSigninSettingSessionTime']").val(),
|
|
|
|
|
//"teacherOpenCourseStudentSigninSettingSessionTime":$("select[name='teacherOpenCourseStudentSigninSettingSessionTime']").val(),
|
|
|
|
|
"schoolClassIdPlural":$("#studentForm select[name='classId']").val(),
|
|
|
|
|
"studentSnOrName":$("#studentForm input[name='studentOrName']").val(),
|
|
|
|
|
'teacherOpenCourseId':teacherOpenCourseId
|
|
|
|
|
//'teacherOpenCourseId':teacherOpenCourseId
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return param
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
form.render();
|
|
|
|
|
view.init();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|