|
|
|
@ -22,7 +22,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
|
|
|
|
|
var tableData4 = [];
|
|
|
|
|
var resourcesQuestionIds = ""; //选中题目id
|
|
|
|
|
|
|
|
|
|
var courseInfoIds = $("input[name=courseInfoId_1]").val();
|
|
|
|
|
var teacherOpenCourseId = $("input[name=teacherOpenCourseId]").val();
|
|
|
|
|
var typeInfo = $("#taskTypeInfo input[name='taskType']:checked").val(); //当前操作的类型
|
|
|
|
|
if (typeInfo == 1){
|
|
|
|
|
$(".progressCss_mp4 .closeInfo").unbind();
|
|
|
|
@ -33,7 +33,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
|
|
|
|
|
$(".progressCss_ppt .closeInfo").unbind();
|
|
|
|
|
$(".progressCss_ppt .closeInfo").click(function (){
|
|
|
|
|
$(this).parents(".progressCss_ppt").remove();
|
|
|
|
|
});;
|
|
|
|
|
});
|
|
|
|
|
}else if(typeInfo == 3){
|
|
|
|
|
getQuestionTotal();
|
|
|
|
|
resourcesQuestionIds = $("input[name='taskList']").val(); //选中的题目ID
|
|
|
|
@ -225,7 +225,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
|
|
|
|
|
, btn: ['保存','关闭']
|
|
|
|
|
,success:function () {
|
|
|
|
|
resourcesQuestionTable();
|
|
|
|
|
Lib.getCourseInfo($("select[name='courseInfoId_1']"), courseInfoIds);
|
|
|
|
|
Lib.getCourseInfo($("select[name='courseInfoId_1']"), teacherOpenCourseId);
|
|
|
|
|
}
|
|
|
|
|
, yes: function (index, layero) {
|
|
|
|
|
var ret = Common.getAjax('/jlw/handsOnSimulationTasks/getObjectiveProblem.do?problemIds='+resourcesQuestionIds);
|
|
|
|
@ -250,7 +250,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
|
|
|
|
|
btn.on('click', function () {
|
|
|
|
|
resourcesQuestionTable1.reload({
|
|
|
|
|
where: {
|
|
|
|
|
'courseInfoParentId':courseInfoIds,
|
|
|
|
|
'courseInfoParentId':teacherOpenCourseId,
|
|
|
|
|
'courseInfoId':$("#resourcesQuestionTable_demo select[name='courseInfoId_1']").find("option:selected").val(),
|
|
|
|
|
"questionStem":$("#resourcesQuestionTable_demo input[name='generalQuestionSettingName']").val(),
|
|
|
|
|
'questionType':$("#resourcesQuestionTable_demo select[name='questionType']").find("option:selected").val()
|
|
|
|
@ -296,7 +296,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
|
|
|
|
|
resourcesQuestionIds = [];
|
|
|
|
|
$("#countQ").html(0);
|
|
|
|
|
var param = {
|
|
|
|
|
'courseInfoParentId':courseInfoIds,
|
|
|
|
|
'courseInfoParentId':teacherOpenCourseId,
|
|
|
|
|
'courseInfoId':$("#resourcesQuestionTable_demo select[name='courseInfoId_1']").find("option:selected").val(),
|
|
|
|
|
"questionStem":$("#resourcesQuestionTable_demo input[name='generalQuestionSettingName']").val(),
|
|
|
|
|
'questionType':$("#resourcesQuestionTable_demo select[name='questionType']").find("option:selected").val()
|
|
|
|
@ -319,7 +319,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
|
|
|
|
|
url: Common.ctxPath + '/jlw/resourcesQuestion/list.json' // 数据接口
|
|
|
|
|
, page: Lib.tablePage // 开启分页
|
|
|
|
|
, limit: 8
|
|
|
|
|
, where: {"courseInfoParentId": courseInfoIds}
|
|
|
|
|
, where: {"courseInfoParentId": teacherOpenCourseId}
|
|
|
|
|
,cols: [[ // 表头
|
|
|
|
|
{
|
|
|
|
|
type: 'checkbox', align: "center"
|
|
|
|
@ -369,9 +369,9 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
|
|
|
|
|
initSubmit:function(){
|
|
|
|
|
$("#addButton").click(function(){
|
|
|
|
|
form.on('submit(form)', function(){
|
|
|
|
|
var taskId = $("#addForm input[name='taskId']").val();
|
|
|
|
|
var taskId = $("#addForm input[name='taskId']").val(),param = {},
|
|
|
|
|
handsOnId = $("#addForm input[name='handsOnId']").val();
|
|
|
|
|
handsOnId = $("#addForm input[name='handsOnId']").val(),
|
|
|
|
|
teacherOpenCourseId = $("#addForm input[name='teacherOpenCourseId']").val();
|
|
|
|
|
var taskType = $("#taskTypeInfo input[name='taskType']:checked").val(); //得到当前操作的任务类型 1:观看视频 2:PPT 3:理论测评 4:实操 5:报告撰写
|
|
|
|
|
var key = $("#taskTypeContent .layui-show");
|
|
|
|
|
param.taskTitle = key.find("input[name='taskTitle']").val(); //标题
|
|
|
|
@ -494,6 +494,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
|
|
|
|
|
param.taskType = taskType;
|
|
|
|
|
param.taskId = taskId;
|
|
|
|
|
param.handsOnId = handsOnId; //案例ID
|
|
|
|
|
param .teacherOpenCourseId = teacherOpenCourseId;
|
|
|
|
|
var url = "/jlw/teacherOpenCourseHandsOnSimulationTasks/edit.json";
|
|
|
|
|
if($.isEmpty(taskId)){
|
|
|
|
|
url = "/jlw/teacherOpenCourseHandsOnSimulationTasks/add.json";
|
|
|
|
@ -505,24 +506,11 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
|
|
|
|
|
time: 1500 //2秒关闭(如果不配置,默认是3秒)
|
|
|
|
|
}, function () {
|
|
|
|
|
if (ret.code == 0) {
|
|
|
|
|
window.parent.location.reload();
|
|
|
|
|
Lib.closeFrame();
|
|
|
|
|
parent.loadList();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
/*if(!$.isEmpty(taskId)){
|
|
|
|
|
teacherOpenCourseHandsOnSimulationTasksApi.updateTeacherOpenCourseHandsOnSimulationTasks($('#addForm'),function(){
|
|
|
|
|
parent.window.dataReload();
|
|
|
|
|
Common.info("更新成功");
|
|
|
|
|
Lib.closeFrame();
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
teacherOpenCourseHandsOnSimulationTasksApi.addTeacherOpenCourseHandsOnSimulationTasks($('#addForm'),function(){
|
|
|
|
|
parent.window.dataReload();
|
|
|
|
|
Common.info("添加成功");
|
|
|
|
|
Lib.closeFrame();
|
|
|
|
|
});
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|