文档存档--课程实操

beetlsql3-dev
姚丹ab 2 years ago
parent a7ea9a0e56
commit f23d171593

@ -71,6 +71,7 @@
var handsOnId = $("input[name='handsOnId']").val(); var handsOnId = $("input[name='handsOnId']").val();
var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val(); var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val();
var studentIdClick = "";//左侧选中选学生id
var data = []; var data = [];
@ -111,7 +112,7 @@
,page : Lib.tablePage // 开启分页 ,page : Lib.tablePage // 开启分页
/* ,toolbar: '#toolbar_teacherOpenCourseQuestionLog' //自定义头部左侧工具栏 /* ,toolbar: '#toolbar_teacherOpenCourseQuestionLog' //自定义头部左侧工具栏
,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/ ,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/
,where:{'teacherOpenCourseId':teacherOpenCourseId, 'handsOnId':handsOnId} ,where:getParam()
,limit : 10, ,limit : 10,
cols : [ [ // 表头 cols : [ [ // 表头
{ {
@ -173,11 +174,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'
}
} }
]] ]]
}); });
@ -196,13 +194,9 @@
$(".layui-table-body tr ").attr({"style": "color:#666"});//其他tr恢复原样 $(".layui-table-body tr ").attr({"style": "color:#666"});//其他tr恢复原样
// console.log(obj.tr) //得到当前点击的tr // console.log(obj.tr) //得到当前点击的tr
$(obj.tr).attr({"style": "color:#5FB878"});//改变当前tr颜色 $(obj.tr).attr({"style": "color:#5FB878"});//改变当前tr颜色
var handsOnIdNew = $("select[name='handsOnId']").val();
var param={
'studentId':obj.data.studentId,
'teacherOpenCourseId':teacherOpenCourseId,
'handsOnId':$.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew
};
studentIdClick = data.studentId;
var param = getParam(studentIdClick)
studentHandsOnTaskPptTable.reload({ studentHandsOnTaskPptTable.reload({
where: param, where: param,
page: { page: {
@ -218,12 +212,11 @@
var btn_s = $("#searchFormSearch"); var btn_s = $("#searchFormSearch");
btn_s.on('click', function () { btn_s.on('click', function () {
var data = $("#searchForm").serializeJson(); /*var data = $("#searchForm").serializeJson();*/
var handsOnIdNew = $("select[name='handsOnId']").val(); var param = getParam(studentIdClick);
data.handsOnId = $.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew;
data.teacherOpenCourseId=teacherOpenCourseId;
studentHandsOnTaskPptTable.reload({ studentHandsOnTaskPptTable.reload({
where: data, where: param,
page: { page: {
curr: 1 curr: 1
} }
@ -232,6 +225,7 @@
var btn = $("#studentFormSearch"); var btn = $("#studentFormSearch");
btn.on('click', function () { btn.on('click', function () {
studentIdClick = "";
studentTable.reload({ studentTable.reload({
where: getParam_s(), where: getParam_s(),
page: { page: {
@ -244,12 +238,19 @@
initToolBar:function(){ initToolBar:function(){
toolbar = { toolbar = {
exportDocument: function () { exportDocument: function () {
var handsOnIdNew = $("select[name='handsOnId']").val(); Common.openConfirm("确认要导出-PPT平均得分信息?", function (index) {
handsOnIdNew = $.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew; let value = "";
var url = '/jlw/studentHandsOnTaskPpt/excel/export.do?teacherOpenCourseId='+teacherOpenCourseId+'&handsOnId='+handsOnIdNew; var url = '/jlw/studentHandsOnTaskPpt/excel/export.do';
let param = getParam(studentIdClick);
Common.openConfirm("确认要导出课程实操存档详情?", function (index) { for(let k in param) {
$.downFile(Common.ctxPath + url,'课程实操存档详情'); if(!$.isEmpty(param[k])){
value+='&'+k+"="+param[k];
}
}
if(!$.isEmpty(value)){
url = url +"?" + value.slice(1);
}
$.downFile(Common.ctxPath + url,'PPT平均得分表');
layer.close(index); layer.close(index);
}) })
}, },
@ -285,14 +286,22 @@
} }
}) })
}; };
function getParam(studentId) {
let param = $("#searchForm").serializeJson();
param.teacherOpenCourseId = teacherOpenCourseId;
param.studentId = studentId;
param.handsOnId = $.isEmpty(param.handsOnId)?handsOnId:param.handsOnId
return param;
}
function getParam_s(){ function getParam_s(){
var handsOnIdSelect = $("select[name='handsOnId']").val();
var param = { var param = {
"classId":$("#studentForm select[name='classId']").val(), "classId":$("#studentForm select[name='classId']").val(),
"studentName":$("#studentForm input[name='studentOrName']").val(), "studentOrName":$("#studentForm input[name='studentOrName']").val(),
'teacherOpenCourseId': teacherOpenCourseId, 'handsOnId':$.isEmpty(handsOnIdSelect)?handsOnId:handsOnIdSelect,
'handsOnId':handsOnId "type":2
}; };
return param return param
} }

@ -72,7 +72,7 @@
var handsOnId = $("input[name='handsOnId']").val(); var handsOnId = $("input[name='handsOnId']").val();
var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val(); var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val();
var studentIdClick = "";//左侧点击学生列的id
var data = []; var data = [];
var url = "/jlw/teacherOpenCourseHandsOn/getHandsOnList.do?teacherOpenCourseId=" + teacherOpenCourseId; var url = "/jlw/teacherOpenCourseHandsOn/getHandsOnList.do?teacherOpenCourseId=" + teacherOpenCourseId;
@ -112,7 +112,7 @@
,page : Lib.tablePage // 开启分页 ,page : Lib.tablePage // 开启分页
/* ,toolbar: '#toolbar_teacherOpenCourseQuestionLog' //自定义头部左侧工具栏 /* ,toolbar: '#toolbar_teacherOpenCourseQuestionLog' //自定义头部左侧工具栏
,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/ ,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/
,where:{'teacherOpenCourseId':teacherOpenCourseId, 'handsOnId':handsOnId} ,where:getParam()
,limit : 10, ,limit : 10,
cols : [ [ // 表头 cols : [ [ // 表头
{ {
@ -204,15 +204,9 @@
$(".layui-table-body tr ").attr({"style": "color:#666"});//其他tr恢复原样 $(".layui-table-body tr ").attr({"style": "color:#666"});//其他tr恢复原样
// console.log(obj.tr) //得到当前点击的tr // console.log(obj.tr) //得到当前点击的tr
$(obj.tr).attr({"style": "color:#5FB878"});//改变当前tr颜色 $(obj.tr).attr({"style": "color:#5FB878"});//改变当前tr颜色
var handsOnIdNew = $("select[name='handsOnId']").val(); studentIdClick = data.studentId;
var param={
'studentId':obj.data.studentId,
'teacherOpenCourseId':teacherOpenCourseId,
'handsOnId':$.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew
};
studentHandsOnTaskVideoTable.reload({ studentHandsOnTaskVideoTable.reload({
where: param, where: getParam(studentIdClick),
page: { page: {
curr: 1 curr: 1
} }
@ -226,12 +220,8 @@
var btn_s = $("#searchFormSearch"); var btn_s = $("#searchFormSearch");
btn_s.on('click', function () { btn_s.on('click', function () {
var data = $("#searchForm").serializeJson();
var handsOnIdNew = $("select[name='handsOnId']").val();
data.handsOnId = $.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew;
data.teacherOpenCourseId=teacherOpenCourseId;
studentHandsOnTaskVideoTable.reload({ studentHandsOnTaskVideoTable.reload({
where: data, where: getParam(studentIdClick),
page: { page: {
curr: 1 curr: 1
} }
@ -240,6 +230,7 @@
var btn = $("#studentFormSearch"); var btn = $("#studentFormSearch");
btn.on('click', function () { btn.on('click', function () {
studentIdClick = "";
studentTable.reload({ studentTable.reload({
where: getParam_s(), where: getParam_s(),
page: { page: {
@ -252,12 +243,19 @@
initToolBar:function(){ initToolBar:function(){
toolbar = { toolbar = {
exportDocument: function () { exportDocument: function () {
var handsOnIdNew = $("select[name='handsOnId']").val(); Common.openConfirm("确认要导出-报告撰写平均得分信息?", function (index) {
handsOnIdNew = $.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew; var url = '/jlw/studentHandsOnTaskReport/excel/export.do';
var url = '/jlw/studentHandsOnTaskReport/excel/export.do?teacherOpenCourseId='+teacherOpenCourseId+'&handsOnId='+handsOnIdNew; let value = "";
let param = getParam(studentIdClick);
Common.openConfirm("确认要导出课程实操存档详情?", function (index) { for(let k in param) {
$.downFile(Common.ctxPath + url,'课程实操存档详情'); if(!$.isEmpty(param[k])){
value+='&'+k+"="+param[k];
}
}
if(!$.isEmpty(value)){
url = url +"?" + value.slice(1);
}
$.downFile(Common.ctxPath + url,'报告撰写平均得分表');
layer.close(index); layer.close(index);
}) })
}, },
@ -297,12 +295,20 @@
} }
}) })
}; };
function getParam(studentId) {
var param = $("#searchForm").serializeJson();
param.teacherOpenCourseId = teacherOpenCourseId;
param.studentId = studentId;
param.handsOnId = $.isEmpty(param.handsOnId)?handsOnId:param.handsOnId;
return param;
}
function getParam_s(){ function getParam_s(){
var handsOnIdSelect = $("select[name='handsOnId']").val();
var param = { var param = {
"classId":$("#studentForm select[name='classId']").val(), "classId":$("#studentForm select[name='classId']").val(),
"studentName":$("#studentForm input[name='studentOrName']").val(), "studentOrName":$("#studentForm input[name='studentOrName']").val(),
'teacherOpenCourseId': teacherOpenCourseId, "handsOnId": $.isEmpty(handsOnIdSelect)? handsOnId : handsOnIdSelect,
"handsOnId": handsOnId 'type': 5
}; };
return param return param

@ -72,7 +72,7 @@
var handsOnId = $("input[name='handsOnId']").val(); var handsOnId = $("input[name='handsOnId']").val();
var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val(); var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val();
var studentIdClick = "";//左侧选中选学生id
var data = []; var data = [];
var url = "/jlw/teacherOpenCourseHandsOn/getHandsOnList.do?teacherOpenCourseId=" + teacherOpenCourseId; var url = "/jlw/teacherOpenCourseHandsOn/getHandsOnList.do?teacherOpenCourseId=" + teacherOpenCourseId;
@ -112,7 +112,7 @@
,page : Lib.tablePage // 开启分页 ,page : Lib.tablePage // 开启分页
/* ,toolbar: '#toolbar_teacherOpenCourseQuestionLog' //自定义头部左侧工具栏 /* ,toolbar: '#toolbar_teacherOpenCourseQuestionLog' //自定义头部左侧工具栏
,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/ ,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/
,where:{'teacherOpenCourseId':teacherOpenCourseId, 'handsOnId':handsOnId} ,where:getParam()
,limit : 10, ,limit : 10,
cols : [ [ // 表头 cols : [ [ // 表头
{ {
@ -210,15 +210,9 @@
$(".layui-table-body tr ").attr({"style": "color:#666"});//其他tr恢复原样 $(".layui-table-body tr ").attr({"style": "color:#666"});//其他tr恢复原样
// console.log(obj.tr) //得到当前点击的tr // console.log(obj.tr) //得到当前点击的tr
$(obj.tr).attr({"style": "color:#5FB878"});//改变当前tr颜色 $(obj.tr).attr({"style": "color:#5FB878"});//改变当前tr颜色
var handsOnIdNew = $("select[name='handsOnId']").val(); studentIdClick = data.studentId;
var param={
'studentId':obj.data.studentId,
'teacherOpenCourseId':teacherOpenCourseId,
'handsOnId':$.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew
};
studentHandsOnTaskVideoTable.reload({ studentHandsOnTaskVideoTable.reload({
where: param, where: getParam(studentIdClick),
page: { page: {
curr: 1 curr: 1
} }
@ -232,12 +226,8 @@
var btn_s = $("#searchFormSearch"); var btn_s = $("#searchFormSearch");
btn_s.on('click', function () { btn_s.on('click', function () {
var data = $("#searchForm").serializeJson();
var handsOnIdNew = $("select[name='handsOnId']").val();
data.handsOnId = $.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew;
data.teacherOpenCourseId=teacherOpenCourseId;
studentHandsOnTaskVideoTable.reload({ studentHandsOnTaskVideoTable.reload({
where: data, where: getParam(studentIdClick),
page: { page: {
curr: 1 curr: 1
} }
@ -246,6 +236,7 @@
var btn = $("#studentFormSearch"); var btn = $("#studentFormSearch");
btn.on('click', function () { btn.on('click', function () {
studentIdClick = "";
studentTable.reload({ studentTable.reload({
where: getParam_s(), where: getParam_s(),
page: { page: {
@ -258,12 +249,19 @@
initToolBar:function(){ initToolBar:function(){
toolbar = { toolbar = {
exportDocument: function () { exportDocument: function () {
var handsOnIdNew = $("select[name='handsOnId']").val(); Common.openConfirm("确认要导出-实训操作步骤平均得分信息?", function (index) {
handsOnIdNew = $.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew; var url = '/jlw/studentHandsOnTaskStep/excel/export.do';
var url = '/jlw/studentHandsOnTaskStep/excel/export.do?teacherOpenCourseId='+teacherOpenCourseId+'&handsOnId='+handsOnIdNew; let value = "";
let param = getParam(studentIdClick);
Common.openConfirm("确认要导出课程实操存档详情?", function (index) { for(let k in param) {
$.downFile(Common.ctxPath + url,'课程实操存档详情'); if(!$.isEmpty(param[k])){
value+='&'+k+"="+param[k];
}
}
if(!$.isEmpty(value)){
url = url +"?" + value.slice(1);
}
$.downFile(Common.ctxPath + url,'实训操作步骤平均得分表');
layer.close(index); layer.close(index);
}) })
}, },
@ -299,12 +297,20 @@
} }
}) })
}; };
function getParam(studentId) {
var param = $("#searchForm").serializeJson();
param.teacherOpenCourseId = teacherOpenCourseId;
param.studentId = studentId;
param.handsOnId = $.isEmpty(param.handsOnId)?handsOnId:param.handsOnId
return param;
}
function getParam_s(){ function getParam_s(){
var handsOnIdSelect = $("select[name='handsOnId']").val();
var param = { var param = {
"classId":$("#studentForm select[name='classId']").val(), "classId":$("#studentForm select[name='classId']").val(),
"studentName":$("#studentForm input[name='studentOrName']").val(), "studentOrName":$("#studentForm input[name='studentOrName']").val(),
'teacherOpenCourseId': teacherOpenCourseId, "handsOnId": $.isEmpty(handsOnIdSelect)?handsOnId:handsOnIdSelect,
"handsOnId": handsOnId "type":4
}; };
return param return param

@ -72,6 +72,7 @@
var handsOnId = $("input[name='handsOnId']").val(); var handsOnId = $("input[name='handsOnId']").val();
var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val(); var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val();
var studentIdClick = "";
var data = []; var data = [];
@ -112,7 +113,7 @@
,page : Lib.tablePage // 开启分页 ,page : Lib.tablePage // 开启分页
/* ,toolbar: '#toolbar_teacherOpenCourseQuestionLog' //自定义头部左侧工具栏 /* ,toolbar: '#toolbar_teacherOpenCourseQuestionLog' //自定义头部左侧工具栏
,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/ ,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/
,where:{'teacherOpenCourseId':teacherOpenCourseId, 'handsOnId':handsOnId} ,where:getParam()
,limit : 10, ,limit : 10,
cols : [ [ // 表头 cols : [ [ // 表头
{ {
@ -201,11 +202,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'
}
} }
]] ]]
}); });
@ -224,13 +222,8 @@
$(".layui-table-body tr ").attr({"style": "color:#666"});//其他tr恢复原样 $(".layui-table-body tr ").attr({"style": "color:#666"});//其他tr恢复原样
// console.log(obj.tr) //得到当前点击的tr // console.log(obj.tr) //得到当前点击的tr
$(obj.tr).attr({"style": "color:#5FB878"});//改变当前tr颜色 $(obj.tr).attr({"style": "color:#5FB878"});//改变当前tr颜色
var handsOnIdNew = $("select[name='handsOnId']").val(); studentIdClick = data.studentId;
var param={ var param= getParam(studentIdClick)
'studentId':obj.data.studentId,
'teacherOpenCourseId':teacherOpenCourseId,
'handsOnId':$.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew
};
studentHandsOnTaskTheoryTable.reload({ studentHandsOnTaskTheoryTable.reload({
where: param, where: param,
page: { page: {
@ -246,12 +239,9 @@
var btn_s = $("#searchFormSearch"); var btn_s = $("#searchFormSearch");
btn_s.on('click', function () { btn_s.on('click', function () {
var data = $("#searchForm").serializeJson(); var param = getParam(studentIdClick);
var handsOnIdNew = $("select[name='handsOnId']").val();
data.handsOnId = $.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew;
data.teacherOpenCourseId=teacherOpenCourseId;
studentHandsOnTaskTheoryTable.reload({ studentHandsOnTaskTheoryTable.reload({
where: data, where: param,
page: { page: {
curr: 1 curr: 1
} }
@ -260,6 +250,7 @@
var btn = $("#studentFormSearch"); var btn = $("#studentFormSearch");
btn.on('click', function () { btn.on('click', function () {
studentIdClick = "";
studentTable.reload({ studentTable.reload({
where: getParam_s(), where: getParam_s(),
page: { page: {
@ -272,12 +263,19 @@
initToolBar:function(){ initToolBar:function(){
toolbar = { toolbar = {
exportDocument: function () { exportDocument: function () {
var handsOnIdNew = $("select[name='handsOnId']").val(); Common.openConfirm("确认要导出-理论测评平均得分信息?", function (index) {
handsOnIdNew = $.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew; var url = "/jlw/studentHandsOnTaskTheory/excel/export.do";
var url = '/jlw/studentHandsOnTaskTheory/excel/export.do?teacherOpenCourseId='+teacherOpenCourseId+'&handsOnId='+handsOnIdNew; let value = "";
let param = getParam(studentIdClick);
Common.openConfirm("确认要导出课程实操存档详情?", function (index) { for(let k in param) {
$.downFile(Common.ctxPath + url,'课程实操存档详情'); if(!$.isEmpty(param[k])){
value+='&'+k+"="+param[k];
}
}
if(!$.isEmpty(value)){
url = url +"?" + value.slice(1);
}
$.downFile(Common.ctxPath + url,'理论测评平均得分表');
layer.close(index); layer.close(index);
}) })
}, },
@ -313,12 +311,20 @@
} }
}) })
}; };
function getParam(studentId) {
var param = $("#searchForm").serializeJson();
param.teacherOpenCourseId = teacherOpenCourseId;
param.studentId = studentId;
param.handsOnId = $.isEmpty(param.handsOnId)?handsOnId:param.handsOnId
return param;
}
function getParam_s(){ function getParam_s(){
var handsOnIdSelect = $("select[name='handsOnId']").val();
var param = { var param = {
"classId":$("#studentForm select[name='classId']").val(), "classId":$("#studentForm select[name='classId']").val(),
"studentName":$("#studentForm input[name='studentOrName']").val(), "studentOrName":$("#studentForm input[name='studentOrName']").val(),
'teacherOpenCourseId': teacherOpenCourseId, "handsOnId": $.isEmpty(handsOnIdSelect)?handsOnId:handsOnIdSelect,
"handsOnId": handsOnId "type":3
}; };
return param return param

@ -72,6 +72,7 @@
var handsOnId = $("input[name='handsOnId']").val(); var handsOnId = $("input[name='handsOnId']").val();
var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val(); var teacherOpenCourseId=$("input[name='teacherOpenCourseId']").val();
var studentIdClick = "";//左侧点击学生列的id
var data = []; var data = [];
@ -111,8 +112,9 @@
url: Common.ctxPath + '/api/studentHandsOnTaskVideo/getPageList.do' // 数据接口 url: Common.ctxPath + '/api/studentHandsOnTaskVideo/getPageList.do' // 数据接口
,page : Lib.tablePage // 开启分页 ,page : Lib.tablePage // 开启分页
/* ,toolbar: '#toolbar_teacherOpenCourseQuestionLog' //自定义头部左侧工具栏 /* ,toolbar: '#toolbar_teacherOpenCourseQuestionLog' //自定义头部左侧工具栏
,defaultToolbar: ['filter', 'print', 'exports'] //头部右侧工具栏*/ ,defaultToolbar14
,where:{'teacherOpenCourseId':teacherOpenCourseId} +466: ['filter', 'print', 'exports'] //头部右侧工具栏*/
,where:getParam()
,limit : 10, ,limit : 10,
cols : [ [ // 表头 cols : [ [ // 表头
{ {
@ -144,8 +146,7 @@
} }
] ] ] ]
}); });
let param = getParam_s();
param.handsOnId = handsOnId;
studentTable = table.render({ studentTable = table.render({
elem: '#studentTable', elem: '#studentTable',
height: Lib.getTableHeight(), height: Lib.getTableHeight(),
@ -153,7 +154,7 @@
method: 'get', method: 'get',
even: true, even: true,
// skin:'nob', // skin:'nob',
where:param, where:getParam_s(),
size: "sm", size: "sm",
url: Common.ctxPath + '/api/teacherOpenCourseHandsOnSimulationTasks/getStudentScore.do' // 数据接口 url: Common.ctxPath + '/api/teacherOpenCourseHandsOnSimulationTasks/getStudentScore.do' // 数据接口
,parseData: function(res){ //res 即为原始返回的数据 ,parseData: function(res){ //res 即为原始返回的数据
@ -198,13 +199,8 @@
$(".layui-table-body tr ").attr({"style": "color:#666"});//其他tr恢复原样 $(".layui-table-body tr ").attr({"style": "color:#666"});//其他tr恢复原样
// console.log(obj.tr) //得到当前点击的tr // console.log(obj.tr) //得到当前点击的tr
$(obj.tr).attr({"style": "color:#5FB878"});//改变当前tr颜色 $(obj.tr).attr({"style": "color:#5FB878"});//改变当前tr颜色
var handsOnIdNew = $("select[name='handsOnId']").val(); studentIdClick = data.studentId;
var param={ var param = getParam(studentIdClick)
'studentId':obj.data.studentId,
'teacherOpenCourseId':teacherOpenCourseId,
'handsOnId':$.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew
};
studentHandsOnTaskVideoTable.reload({ studentHandsOnTaskVideoTable.reload({
where: param, where: param,
page: { page: {
@ -220,12 +216,8 @@
var btn_s = $("#searchFormSearch"); var btn_s = $("#searchFormSearch");
btn_s.on('click', function () { btn_s.on('click', function () {
var data = $("#searchForm").serializeJson();
var handsOnIdNew = $("select[name='handsOnId']").val();
data.handsOnId = $.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew;
data.teacherOpenCourseId=teacherOpenCourseId;
studentHandsOnTaskVideoTable.reload({ studentHandsOnTaskVideoTable.reload({
where: data, where: getParam(studentIdClick),
page: { page: {
curr: 1 curr: 1
} }
@ -234,6 +226,7 @@
var btn = $("#studentFormSearch"); var btn = $("#studentFormSearch");
btn.on('click', function () { btn.on('click', function () {
studentIdClick = "";
studentTable.reload({ studentTable.reload({
where: getParam_s(), where: getParam_s(),
page: { page: {
@ -246,12 +239,19 @@
initToolBar:function(){ initToolBar:function(){
toolbar = { toolbar = {
exportDocument: function () { exportDocument: function () {
var handsOnIdNew = $("select[name='handsOnId']").val(); Common.openConfirm("确认要导出-视频平均得分信息?", function (index) {
handsOnIdNew = $.isEmpty(handsOnIdNew)?handsOnId:handsOnIdNew; let value = "";
var url = '/jlw/studentHandsOnTaskVideo/excel/export.do?teacherOpenCourseId='+teacherOpenCourseId+'&handsOnId='+handsOnIdNew; let param = getParam(studentIdClick);
var url = "/jlw/studentHandsOnTaskVideo/excel/export.do";
Common.openConfirm("确认要导出课程实操存档详情?", function (index) { for(let k in param) {
$.downFile(Common.ctxPath + url,'课程实操存档详情'); if(!$.isEmpty(param[k])){
value+='&'+k+"="+param[k];
}
}
if(!$.isEmpty(value)){
url = url +"?" + value.slice(1);
}
$.downFile(Common.ctxPath + url,'视频平均得分表');
layer.close(index); layer.close(index);
}) })
}, },
@ -287,11 +287,19 @@
} }
}) })
}; };
function getParam(studentId) {
var param = $("#searchForm").serializeJson();
param.teacherOpenCourseId = teacherOpenCourseId;
param.studentId = studentId;
param.handsOnId = $.isEmpty(param.handsOnId)?handsOnId:param.handsOnId;
return param;
}
function getParam_s(){ function getParam_s(){
var handsOnIdSelect = $("select[name='handsOnId']").val();
var param = { var param = {
"classId":$("#studentForm select[name='classId']").val(), "classId":$("#studentForm select[name='classId']").val(),
"studentName":$("#studentForm input[name='studentOrName']").val(), "studentOrName":$("#studentForm input[name='studentOrName']").val(),
'teacherOpenCourseId': teacherOpenCourseId, "handsOnId":$.isEmpty(handsOnIdSelect)? handsOnId : handsOnIdSelect,
'type':1 'type':1
}; };

Loading…
Cancel
Save