课程资源管理-开课课程+授权课程

beetlsql3-dev
姚丹ab 2 years ago
parent 389aa6339f
commit f5e52d3d44

@ -523,6 +523,22 @@ public class TeacherOpenCourseMergeCourseInfoController {
return JsonResult.success(teacherOpenCourseMergeCourseInfoService.getTreeByTeacherOpenCourseId(teacherOpenCourseId));
}
/**
*@author
*@data 2023/07/03
*
*/
//跳转至课程配置页面
@GetMapping(MODEL + "/courseConfigureNew.do")
@Function("teacherOpenCourseMergeCourseInfo.add")
public ModelAndView courseConfigureNew(Long teacherOpenCourseMergeCourseInfoId) {
ModelAndView view = new ModelAndView("/jlw/teacherOpenCourseMergeCourseInfo/courseConfigureNew.html");
TeacherOpenCourseMergeCourseInfo teacherOpenCourseMergeCourseInfo = teacherOpenCourseMergeCourseInfoService.queryById(teacherOpenCourseMergeCourseInfoId);
view.addObject("courseInfo", teacherOpenCourseMergeCourseInfo);
return view;
}
/**
*
* BUG

@ -64,7 +64,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
}
},
{
field : 'operation_',width:300,title : '操作',align:"center", templet: function (d) {
field : 'operation_',width:300,title : '操作', templet: function (d) {
var htm = '<a class="layui-table-link" lay-event="courseConfigure">课程配置</a>';
htm += '<a class="layui-table-link" lay-event="editStatus">'+(d.courseInfoStatus == 1?"禁用":"启用")+'</a>';
htm += '<a class="layui-table-link" lay-event="edit">编辑</a>';
@ -115,8 +115,15 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
}, initTableTool: table.on('tool(courseInfoTable)', function (obj) {
var data = obj.data;
if (obj.event === 'edit') {
var url = "/jlw/courseInfo/add.do?courseInfoId="+data.courseInfoId;
Common.openDlg(url,"");
console.log(data)
if(data.sourceType == 1){
var url = "/jlw/teacherOpenCourseMergeCourseInfo/courseConfigureNew.do?teacherOpenCourseMergeCourseInfoId="+data.courseInfoId;
Common.openDlg(url,"");
}else if(data.sourceType == 2){
var url = "/jlw/courseInfo/add.do?courseInfoId="+data.courseInfoId;
Common.openDlg(url,"");
}
}else if(obj.event === "del"){
layer.confirm('是否确定删除该课程?', function (index) { //courseInfoStatus:状态(1启用 2禁用 3删除)
var ret = Common.postAjax("/jlw/courseInfo/delete.json", {ids: data.courseInfoId});

@ -277,9 +277,13 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
} else if (obj.event === "addTask") {//添加任务
// var url = "/jlw/handsOn/add.do?handsOnId=" + data.handsOnId+'&sign=1';
// Common.openDlg(url, "课程实训案例管理>新增课程实训案例>添加实训任务");
var courseInfoId = data.dataType === 'FACULTY_ADD'?data.teacherOpenCourseId:data.systemCourseInfoId
var url = "/jlw/handsOnSimulationTasks/add.do?handsOnId=" + data.handsOnId + '&courseInfoId=' + courseInfoId;
var courseInfoId = data.dataType === 'FACULTY_ADD'?data.teacherOpenCourseId:data.systemCourseInfoId;
var url;
if(isAdmin){
url = "/jlw/handsOnSimulationTasks/add.do?handsOnId=" + data.handsOnId + '&courseInfoId=' + courseInfoId;
}else {
url = "/jlw/teacherOpenCourseHandsOnSimulationTasks/add.do?handsOnId="+ data.handsOnId + '&courseInfoId=' + courseInfoId;
}
Common.openDlg(url);
} else if (obj.event === "up") {
upDrown("1", data.handsOnId);

@ -20,7 +20,7 @@ layui.define([ 'form', 'laydate', 'table','laytpl','upload','layedit','teacherOp
form.render();
window.loadList = function (){//重新加载实训任务列表
getListInfo();
/*getListInfo();*/
}
var handsOnId = $("input[name='handsOnId']").val();
var teacherOpenCourseId = $("input[name='teacherOpenCourseId']").val();
@ -93,8 +93,9 @@ layui.define([ 'form', 'laydate', 'table','laytpl','upload','layedit','teacherOp
$(this).parent().parent().remove()
});
function getListInfo(){ //获取
/*function getListInfo(){ //获取
var ret = Common.postAjax("/api/teacherOpenCourseHandsOnSimulationTasks/getPageList.do",{handsOnId:$("#updateForm input[name='handsOnId']").val()})
console.log(retf)
if (ret.code == 0) {
var getTpl = sc_demo.innerHTML
,view = document.getElementById('sc_view');
@ -106,7 +107,7 @@ layui.define([ 'form', 'laydate', 'table','laytpl','upload','layedit','teacherOp
$(".sc").click(del_simu);
});
}
}
}*/
exports('edit',view);
});

@ -85,6 +85,10 @@
});
}*/
var isAdmin = ('${user.get().isAdmin}' == 'true'? true:false ) ;
upload.render({
elem: '#importTemplate',
url: Common.ctxPath + '${uploadFileUrl}',
@ -135,7 +139,12 @@
}
$("#downloadTemplate").click(function () {
$.downFile(Common.ctxPath + "/jlw/student/downloadTemplate.json",'学生导入模板.xlsx');
//var isAdmin = ('${user.get().isAdmin}' == 'true'? true:false ) ;
if(isAdmin){
$.downFile(Common.ctxPath + "/jlw/student/downloadTemplate.json",'超管-学生导入模板.xlsx');
}else {
$.downFile(Common.ctxPath + "/jlw/student/downloadTemplate.json",'院校管理员-学生导入模板.xlsx');
}
});
$("#addButton").click(function(){

@ -86,6 +86,7 @@
$(".del").click(deleteInfo);
});
}*/
var isAdmin = ('${user.get().isAdmin}' == 'true'? true:false ) ;
//导入
upload.render({
@ -140,7 +141,11 @@
}
$("#downloadTemplate").click(function () {
$.downFile(Common.ctxPath + "/jlw/teacher/downloadTemplate.json",'教师导入模板.xlsx');
if(isAdmin){
$.downFile(Common.ctxPath + "/jlw/teacher/downloadTemplate.json",'超管-教师导入模板.xlsx');
}else {
$.downFile(Common.ctxPath + "/jlw/teacher/downloadTemplate.json",'院校管理员-教师导入模板.xlsx');
}
});
$("#addButton").click(function(){

@ -117,8 +117,8 @@
,limit : 10,
cols : [ [ // 表头
{
field: 'code', title: '学号', align: "center",
hide: "${isSignRole.get()!''}" != 1 ? false : true
field: 'code', title: '学号', align: "center",${isSignRole.get()!''}"
hide: " != 1 ? false : true
},
{
field: 'name', title: '姓名', align: "center",

@ -68,7 +68,7 @@
<a class="uploader-browse-folder" style="display: none;"><u>select folder</u></a>
<a class="uploader-browse-image" style="display: none;"><u>select images</u></a>
<a class="uploader-browse-pvwpm" style="display: none;"><u>select [.ppt', '.pptx', '.doc', '.docx', '.pdf', '.mp4']</u></a>
<button type="button" class="layui-btn bg_button uploader-browse">选择文件</button>
<button type="button" class="layui-btn bg_button uploader-browse" style="${!user.get().isAdmin ? '':'display: none;'}">选择文件</button>
<button type="button" class="layui-btn bg_button" style="display: none;" id="testListAction">
开始上传
</button>
@ -120,7 +120,7 @@
<div class="layui-row" id="handsOnSimulationTasks" style="${teacherOpenCourseHandsOn.handsOnId != null?'':'display: none;'}">
<div>
<label class="layui-form-label">实操任务:</label>
<div class="layui-input-block">
<div class="layui-input-block" style="${!user.get().isAdmin?'':'display: none;'}">
<button type="button" class="layui-btn bg_button button_add" style="float: left">
<i class="layui-icon">&#xe654;</i>
</button>
@ -144,23 +144,23 @@
<th>操作</th>
</tr>
</thead>
<script id="sc_demo" type="text/html">
{{# layui.each(d.list, function(index, item){ }}
<tr>
<td>{{item.taskOrder}}</td>
<td>{{item.taskTitle}}</td>
<td>{{item.taskType == '1'?'观看视频':item.taskType == '2'?'观看PPT': item.taskType ==
'3'?'理论测评':item.taskType == '4'?'实训操作步骤':item.taskType == '5'?'报告撰写':'其他'}}
</td>
<td>{{item.taskScore}}</td>
<td><a taskid="{{item.taskId}}" class="layui-btn layui-btn-sm bg_button bj">编辑</a> <a
taskid="{{item.taskId}}" style="background-color: red" class="layui-btn layui-btn-sm sc">删除</a>
</td>
</tr>
{{# }); }}
</script>
<tbody id="sc_view">
<tbody >
<!--#if(handsOnSimulationTasks != null && handsOnSimulationTasks != '' && handsOnSimulationTasks != '""'&& handsOnSimulationTasks != []){-->
<!--# for(item in handsOnSimulationTasks){ -->
<tr>
<td>${item.taskOrder}</td>
<td>${item.taskTitle}</td>
<td>${item.taskTitle == '1'?'观看视频':item.taskType == '2'?'观看PPT': item.taskType ==
'3'?'理论测评':item.taskType == '4'?'实训操作步骤':item.taskType == '5'?'报告撰写':'其他'}
</td>
<td>${item.taskScore}</td>
<td><a taskid="${item.taskId}" class="layui-btn layui-btn-sm bg_button bj">编辑</a> <a
taskid="${item.taskId}" style="background-color: red" class="layui-btn layui-btn-sm sc">删除</a>
</td>
</tr>
<!--#} -->
<!--#}-->
</tbody>
</table>
</div>

@ -1,7 +1,39 @@
<!--# layout("/common/layout.html",{"jsBase":"/js/jlw/teacherOpenCourseHandsOnSimulationTasks/"}){ -->
<link rel="stylesheet" type="text/css" href="${ctxPath}/css/plugin.css?v=${jsVer}" media="all"/>
<link rel="stylesheet" href="${ctxPath}/plugins/editorMd/css/editormd.css"/>
<script src="${ctxPath}/plugins/editorMd/editormd.min.js"></script>
<link rel="stylesheet" href="${ctxPath}/plugins/highlight/styles/a11y-light.min.css" />
<script type="text/javascript" src="${ctxPath}/plugins/highlight/highlight.min.js?v=${jsVer}"></script>
<style>
.progressCss_mp4,.progressCss_file,.progressCss_ppt{
width: 320px;
background: #e9e9e9;
padding: 14px;
position: relative;
margin-bottom:5px;
}
.closeInfo{
position: absolute;right: 10px;bottom: 10px;cursor: pointer;color: red;
}
#first label {
width: 70px;
}
#first .layui-input-block {
margin-left: 100px;
}
#second label {
width: 42px;
}
#second .layui-input-block {
margin-left: 72px;
}
</style>
<form class="layui-form" id="addForm">
<div class="layui-row">
<!--<div class="layui-row">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">实操id(关联主表)</label>
@ -122,7 +154,7 @@
</div>
</div>
</div>
</div>
</div>-->
<!-- 业务对象须有hidden字段保存delFlag和version字段-->
<input type="hidden" name="taskId" value="${teacherOpenCourseHandsOnSimulationTasks.taskId}" />
<layui:submitButtons id="addButton" buttonType="" showExamine="2" />

Loading…
Cancel
Save