Merge remote-tracking branch 'origin/beetlsql3-dev' into beetlsql3-dev

beetlsql3-dev
Mlxa0324 2 years ago
commit ef20584670

@ -28,6 +28,7 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.beetl.sql.annotation.entity.EnumValue;
import org.beetl.sql.core.SqlId;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -495,9 +496,9 @@ public class StudentTeacherSystemUseLogAnalysisService extends CoreBaseService<S
StudentTeacherSystemUseLogAnalysis logAnalysis = sqlManager.lambdaQuery(StudentTeacherSystemUseLogAnalysis.class)
.andEq(StudentTeacherSystemUseLogAnalysis::getUniversitiesCollegesId, universitiesCollegesId)
.andEq(StudentTeacherSystemUseLogAnalysis::getOrgId, orgId)
.andEq(StudentTeacherSystemUseLogAnalysis::getUserId, userId)
.andEq(StudentTeacherSystemUseLogAnalysis::getUniversitiesCollegesId, Query.filterEmpty(universitiesCollegesId))
.andEq(StudentTeacherSystemUseLogAnalysis::getOrgId, Query.filterEmpty(orgId))
.andEq(StudentTeacherSystemUseLogAnalysis::getUserId, Query.filterEmpty(userId))
.orderBy("id DESC")
.limit(0, 1)
.single();

@ -255,6 +255,7 @@ public class TeacherOpenCourseStudentSigninLogService extends CoreBaseService<Te
TeacherOpenCourseStudentSigninLog entity = new TeacherOpenCourseStudentSigninLog();
entity.setStudentId(student.getStudentId());
entity.setTeacherOpenCourseStudentSigninSettingId(signinSetting.getTeacherOpenCourseStudentSigninSettingId());
entity.setTeacherOpenCourseStudentSigninLogTag(SIGN_IN);
Assert.isTrue(ObjectUtil.isEmpty(teacherOpenCourseStudentSigninLogDao.template(entity)), "该学生已经签到过了!");
// 判断是否加入到这个课程中
@ -323,15 +324,15 @@ public class TeacherOpenCourseStudentSigninLogService extends CoreBaseService<Te
Date startTime = signinSetting.getTeacherOpenCourseStudentSigninSettingStartTime();
Date endTime = signinSetting.getTeacherOpenCourseStudentSigninSettingEndTime();
if (Objects.isNull(startTime)){
Assert.notNull(student, "未开始签到");
Assert.notNull(null, "未开始签到");
}
if (startTime.getTime() > time.getTime()){
Assert.notNull(student, "未开始签到");
Assert.notNull(null, "未开始签到");
}
if (!Objects.isNull(endTime) && endTime.getTime() < time.getTime()){
Assert.notNull(student, "未开始签到");
Assert.notNull(null, "已结束签到");
}
// 获取到真实的IP
@ -354,8 +355,23 @@ public class TeacherOpenCourseStudentSigninLogService extends CoreBaseService<Te
signinLogQuery.setOrgId(student.getOrgId());
signinLogQuery.setUserId(student.getUserId());
// 学生签到记录添加
add(signinLogQuery);
TeacherOpenCourseStudentSigninLog single = teacherOpenCourseStudentSigninLogDao.getSQLManager()
.lambdaQuery(TeacherOpenCourseStudentSigninLog.class)
.andEq(TeacherOpenCourseStudentSigninLog::getTeacherOpenCourseStudentSigninSettingId, signinSetting.getTeacherOpenCourseStudentSigninSettingId())
.andEq(TeacherOpenCourseStudentSigninLog::getTeacherOpenCourseStudentSigninLogTag,UN_SIGN_IN)
.andEq(TeacherOpenCourseStudentSigninLog::getStudentId,student.getStudentId())
.andEq(TeacherOpenCourseStudentSigninLog::getSchoolClassId,student.getClassId())
.single();
if (ObjectUtil.isNotNull(single)){
single.setTeacherOpenCourseStudentSigninLogRemark(null);
single.setTeacherOpenCourseStudentSigninLogTag(SIGN_IN);
single.setTeacherOpenCourseStudentSigninLogAddTime(new Date());
single.setTeacherOpenCourseStudentSigninLogIp(myIpAddress);
teacherOpenCourseStudentSigninLogDao.upsertByTemplate(single);
}else {
// 学生签到记录添加
add(signinLogQuery);
}
}
/**
@ -419,15 +435,15 @@ public class TeacherOpenCourseStudentSigninLogService extends CoreBaseService<Te
Date startTime = signinSetting.getTeacherOpenCourseStudentSigninSettingStartTime();
Date endTime = signinSetting.getTeacherOpenCourseStudentSigninSettingEndTime();
if (Objects.isNull(startTime)){
Assert.notNull(student, "未开始签到");
Assert.notNull(null, "未开始签到");
}
if (startTime.getTime() > time.getTime()){
Assert.notNull(student, "未开始签到");
Assert.notNull(null, "未开始签到");
}
if (!Objects.isNull(endTime) && endTime.getTime() < time.getTime()){
Assert.notNull(student, "未开始签到");
Assert.notNull(null, "已结束签到");
}
// 断言,验证码验证
@ -447,8 +463,23 @@ public class TeacherOpenCourseStudentSigninLogService extends CoreBaseService<Te
signinLogQuery.setOrgId(student.getOrgId());
signinLogQuery.setUserId(student.getUserId());
// 学生签到记录添加
add(signinLogQuery);
TeacherOpenCourseStudentSigninLog single = teacherOpenCourseStudentSigninLogDao.getSQLManager()
.lambdaQuery(TeacherOpenCourseStudentSigninLog.class)
.andEq(TeacherOpenCourseStudentSigninLog::getTeacherOpenCourseStudentSigninSettingId, signinSetting.getTeacherOpenCourseStudentSigninSettingId())
.andEq(TeacherOpenCourseStudentSigninLog::getTeacherOpenCourseStudentSigninLogTag,UN_SIGN_IN)
.andEq(TeacherOpenCourseStudentSigninLog::getStudentId,student.getStudentId())
.andEq(TeacherOpenCourseStudentSigninLog::getSchoolClassId,student.getClassId())
.single();
if (ObjectUtil.isNotNull(single)){
single.setTeacherOpenCourseStudentSigninLogRemark(null);
single.setTeacherOpenCourseStudentSigninLogTag(SIGN_IN);
single.setTeacherOpenCourseStudentSigninLogAddTime(new Date());
teacherOpenCourseStudentSigninLogDao.upsertByTemplate(single);
}else {
// 学生签到记录添加
add(signinLogQuery);
}
}
public JsonResult importTemplate(List<FileEntity> fileEntityList, List<Long>list, CoreUser coreUser){
@ -754,7 +785,7 @@ public class TeacherOpenCourseStudentSigninLogService extends CoreBaseService<Te
signInLog.setTeacherOpenCourseStudentSigninLogIp(getIpAddr(Objects.requireNonNull(request)));
signInLog.setTeacherOpenCourseStudentSigninLogTag(UN_SIGN_IN);
signInLog.setOrgId(single.getOrgId());
signInLog.setUserId(single.getUserId());
signInLog.setUserId(item.getUserId());
teacherOpenCourseStudentSigninLogDao.insert(signInLog);
}
});

@ -144,10 +144,16 @@ public class CourseLabelController{
if (coreUser.isUniAdmin()) {
param.setSeeSelf(true);
}
param.setCourseLabelStatus(1);
if (!coreUser.isAdmin()){
param.setOrgIdPlural("1,"+coreUser.getOrgId());
param.setCourseLabelType("理论课程类");
}
List<CourseLabel>list = courseLabelService.getValuesByQueryNotWithPermission(param);
list = list.stream()
.filter(courseLabel -> SetUtils.hashSet(coreUser.getOrgId(), 1L).contains(courseLabel.getOrgId()) || courseLabel.getOrgId() == null)
.collect(Collectors.toList());
// list = list.stream()
// .filter(courseLabel -> SetUtils.hashSet(coreUser.getOrgId(), 1L).contains(courseLabel.getOrgId()) || courseLabel.getOrgId() == null)
// .collect(Collectors.toList());
return JsonResult.success(list);
}

@ -187,7 +187,7 @@ public class TeacherOpenCourseController{
if (!coreUser.isAdmin()) {
condition.setOrgId(coreUser.getOrgId());
}
condition.setTeacherOpenCourseStatus(1);
// condition.setTeacherOpenCourseStatus(1);
teacherOpenCourseService.queryByCondition(page);
return JsonResult.success(page);
}

@ -1,5 +1,6 @@
package com.ibeetl.jlw.web;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import cn.jlw.Interceptor.SCoreUser;
import cn.jlw.validate.ValidateConfig;
@ -161,6 +162,12 @@ public class UniversitiesCollegesController{
if(result.hasErrors()){
return JsonResult.failMessage(result);
}else{
if (ObjectUtil.isEmpty(createUserDTO.getUserCode())){
return JsonResult.failMessage("用户名不能为空");
}
if (createUserDTO.getUserCode().length() >12){
return JsonResult.failMessage("用户名过长");
}
universitiesColleges.setAddTime(new Date());
universitiesColleges.setUniversitiesCollegesStatus(1);
universitiesCollegesService.addAndCreateCoreUser(universitiesColleges, createUserDTO);

@ -1,5 +1,6 @@
package com.ibeetl.jlw.web;
import cn.hutool.core.util.ObjectUtil;
import cn.jlw.Interceptor.SCoreUser;
import cn.jlw.validate.ValidateConfig;
import com.ibeetl.admin.core.annotation.Function;
@ -160,6 +161,13 @@ public class UniversityFacultyController extends BaseController {
if(result.hasErrors()){
return JsonResult.failMessage(result);
}else{
if (ObjectUtil.isEmpty(universityFacultyQuery.getUniversitiesCollegesId())){
return JsonResult.failMessage("请选择院校名称");
}
if (ObjectUtil.isEmpty(universityFacultyQuery.getUniversityFacultyName())){
return JsonResult.failMessage("请输入院系名称");
}
UniversitiesColleges universitiesColleges = universitiesCollegesService.queryById(universityFacultyQuery.getUniversitiesCollegesId());
// 操作人
universityFacultyQuery.setUserId(coreUser.getId());
@ -177,6 +185,13 @@ public class UniversityFacultyController extends BaseController {
if(result.hasErrors()){
return JsonResult.failMessage(result);
}else {
if (ObjectUtil.isEmpty(universityFacultyQuery.getUniversitiesCollegesId())){
return JsonResult.failMessage("请选择院校名称");
}
if (ObjectUtil.isEmpty(universityFacultyQuery.getUniversityFacultyName())){
return JsonResult.failMessage("请输入院系名称");
}
universityFacultyQuery.setUserId(null);
universityFacultyQuery.setOrgId(null);
String msg = universityFacultyService.edit(universityFacultyQuery);

@ -1,5 +1,6 @@
package com.ibeetl.jlw.web;
import cn.hutool.core.util.ObjectUtil;
import cn.jlw.Interceptor.SCoreUser;
import cn.jlw.validate.ValidateConfig;
import com.ibeetl.admin.core.annotation.Function;
@ -183,6 +184,9 @@ public class UniversitySystemController extends BaseController {
if(result.hasErrors()){
return JsonResult.failMessage(result);
}else{
if (ObjectUtil.isEmpty(universitySystemQuery.getUniversitySystemName())){
return JsonResult.failMessage("请输入专业名称");
}
UniversityFaculty universityFaculty = facultyService.queryById(universitySystemQuery.getUniversityFacultyId());
// 操作人
universitySystemQuery.setUserId(coreUser.getId());

@ -26,6 +26,8 @@ public class CourseLabelQuery extends PageParam {
@Query(name = "查看自己和系统分配的")
private Boolean seeSelf ;
private String orgIdPlural;
public Long getCourseLabelId(){
return courseLabelId;
}
@ -89,4 +91,12 @@ public class CourseLabelQuery extends PageParam {
public void setSeeSelf(Boolean seeSelf) {
this.seeSelf = seeSelf;
}
public String getOrgIdPlural() {
return orgIdPlural;
}
public void setOrgIdPlural(String orgIdPlural) {
this.orgIdPlural = orgIdPlural;
}
}

@ -114,6 +114,8 @@ public class StudentQuery extends PageParam {
private Integer log;
private Long resourcesApplicationId;
private Long universityFacultyId;
/**
*
*/
@ -543,4 +545,12 @@ public class StudentQuery extends PageParam {
public void setStudentOrName(String studentOrName) {
this.studentOrName = studentOrName;
}
public Long getUniversityFacultyId() {
return universityFacultyId;
}
public void setUniversityFacultyId(Long universityFacultyId) {
this.universityFacultyId = universityFacultyId;
}
}

@ -907,7 +907,7 @@ getCourseSystemOAndUniversities
AND ta.course_info_status = 1
AND a.course_label_status = 1
@if(!isEmpty(orgId)){
AND ta.org_id = #orgId#
AND lb.org_id = #orgId#
AND lb.use_type IN(1,2)
@}
)

@ -103,4 +103,6 @@ getValuesByQueryNotWithPermission
@if(!isEmpty(seeSelf) && seeSelf && !isEmpty(userId)){
and (t.add_type = 'ADMIN_ADD' or t.user_id = #userId#)
@}
@if(!isEmpty(seeSelf)){
and FIND_IN_SET(t.org_id,#orgIdPlural#)
@}

@ -72,7 +72,8 @@ queryByConditionMergeOpenCourseHandsOn
t.course_info_id as system_course_info_id,
(select course_info_name from course_info zc where zc.course_info_id = t.course_info_id and zc.course_info_status = 1 limit 1) as system_course_info_id_text,
t.course_info_full_id,
t.data_type
t.data_type,
t.hands_on_status
@}
FROM
(
@ -87,7 +88,8 @@ queryByConditionMergeOpenCourseHandsOn
c.`user_id`,
a.course_info_id as system_course_info_id,
a.course_info_full_id,
'ADMIN_ADD' AS data_type
'ADMIN_ADD' AS data_type,
c.hands_on_status
FROM
hands_on c
LEFT JOIN course_info a ON c.course_child_node = a.course_info_id UNION ALL
@ -104,7 +106,8 @@ queryByConditionMergeOpenCourseHandsOn
a.course_info_full_id,-- 判断关联课程是系统内置,还是院校添加的
CASE WHEN a.course_info_id IS NOT NULL THEN
'ADMIN_ADD' ELSE 'FACULTY_ADD'
END AS data_type
END AS data_type,
1 as hands_on_status
FROM
teacher_open_course_hands_on c
LEFT JOIN course_info a ON c.course_child_node = a.course_info_id

@ -592,6 +592,9 @@ getValuesByQueryNotWithPermission
@if(!isEmpty(personId)){
and t.person_id =#personId#
@}
@if(!isEmpty(studentId)){
and t.person_id =#studentId#
@}
@if(!isEmpty(personIdPlural)){
and find_in_set(t.person_id,#personIdPlural#)
@}

@ -181,7 +181,68 @@ getCurriculumResourceManagementList
* 获取课程资源管理系统授权课+院校开课
SELECT
@pageTag(){
tt.*
tt.*
@}
FROM
(
SELECT
t.add_type_text,
t.course_info_id,
t.course_info_name,
t.course_info_parent_name,
t.course_info_parent_id,
t.course_info_parent_parent_name,
t.course_info_parent_parent_id,
t.add_time,
t.order_index,
t.resources_info_content,
t.resources_info_files,
t.resources_info_id,
t.resources_info_name,
t.resources_info_type,
t.source_type
@if(!isEmpty(orgId)){
,
IF((
SELECT
a.org_id
FROM
universities_colleges_jurisdiction_curriculum_resources a
WHERE
a.org_id = #orgId#
AND a.use_type IN(1,2)
AND a.course_info_id = t.course_info_parent_parent_id
AND a.use_end_time > NOW()
),
(
SELECT
a.org_id
FROM
universities_colleges_jurisdiction_curriculum_resources a
WHERE
a.org_id = #orgId#
AND a.use_type IN(1,2)
AND a.course_info_id = t.course_info_parent_parent_id
AND a.use_end_time > NOW()
),
(
SELECT
a.org_id
FROM
teacher_open_course a
WHERE
a.teacher_open_course_status = 1
AND a.teacher_open_course_id = t.course_info_parent_parent_id
)) AS org_id,
(
SELECT
a.user_id
FROM
teacher_open_course a
WHERE
a.teacher_open_course_status = 1
AND a.teacher_open_course_id = t.course_info_parent_parent_id
) AS user_id
@}
FROM
(
@ -323,13 +384,11 @@ getCurriculumResourceManagementList
lc.course_info_id) AS course_info_parent_parent_id,
ta.add_time,
ta.order_index,
ta.org_id,
ta.resources_info_content,
ta.resources_info_files,
ta.resources_info_id,
ta.resources_info_name,
ta.resources_info_type,
ta.user_id,
'2' AS source_type
FROM
resources_info ta
@ -341,7 +400,11 @@ getCurriculumResourceManagementList
UNION ALL
(
SELECT
@if(!isEmpty(orgId)){
(SELECT a.teacher_name FROM teacher a WHERE a.user_id = tb.user_id) AS add_type_text,
@}else {
lbd.`NAME` AS add_type_text,
@}
tb.teacher_open_course_merge_course_info_id AS course_info_id,
IF(
ISNULL((
@ -477,13 +540,11 @@ getCurriculumResourceManagementList
lbc.teacher_open_course_id) AS course_info_parent_parent_id,
tb.add_time,
tb.order_index,
tb.org_id,
tb.resources_info_content,
tb.resources_info_files AS resources_info_files,
tb.teacher_open_course_merge_resources_info_id AS resources_info_id,
tb.resources_info_name,
tb.resources_info_type,
tb.user_id,
'1' AS source_type
FROM
teacher_open_course_merge_resources_info tb
@ -493,10 +554,8 @@ getCurriculumResourceManagementList
LEFT JOIN core_org lbd ON lbd.`ID` = tb.org_id AND lbd.DEL_FLAG = 0
WHERE
tb.resources_info_status = 1
@if(!isEmpty(orgId)){
and tb.org_id =#orgId#
@}
)
) t
) tt
WHERE 1=1
@if(!isEmpty(resourcesInfoType)) {
@ -520,4 +579,7 @@ getCurriculumResourceManagementList
@if(!isEmpty(sourceType)) {
AND tt.source_type = #sourceType#
@}
@if(!isEmpty(orgId)){
AND tt.org_id = #orgId#
@}
ORDER BY tt.add_time DESC

@ -131,6 +131,9 @@ queryByCondition
@}
@if(!isEmpty(studentOrName)){
and (t.student_sn like #'%'+studentOrName+'%'# or t.student_name like #'%'+studentOrName+'%'#)
@}
@if(!isEmpty(universityFacultyId)){
and bb.university_faculty_id =#universityFacultyId#
@}
@if(!isEmpty(competitionId)){
-- 1只包含参赛学员 2不包含参赛学员

@ -42,6 +42,14 @@ layui.define([ 'form', 'laydate', 'table','courseInfoApi',"layedit"], function(e
// }else {
// layer.msg(ret.msg);
// }
layedit.set({ //富文本上传图片
uploadImage: {
url: Common.ctxPath + "/jlw/file/update.do",
imgUrl:Common.ctxPath,
type: 'post' //默认post
}
});
var courseInfoContent_ = layedit.build('courseInfoContent',{height:100}); //题干
var view = {
init:function(){

@ -14,6 +14,13 @@ layui.define(['form', 'laydate', 'table','laytpl','upload','layedit', 'handsOnAp
}
});
var courseInfoParentId = $("select[name='courseInfoId']").val();//课程ID
var sourceType = $("select[name='courseInfoId']").find('option:selected').attr("status");
var childValue = $("#courseChildNode").val();
//反显章节下拉框key,courseInfoParentId,courseInfoType,sourceType,resourcesQuestionIdsIsNotNull
Lib.getCourseInfo($("select[name='courseChildNode']"),courseInfoParentId,2,sourceType,'',childValue);
form.render();
window.loadList = function (){//重新加载实训任务列表
getListInfo();
}

@ -54,18 +54,18 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
{
field: 'systemCourseChildNodeText',
title: '归属章节', align: "center"
},
{
field: 'orgIdText',
title: '归属院校', align: "center"
}, {
field: 'addTime',
title: '导入时间',
align: "center",
}, {
field: 'orgIdText',
title: '案例来源', align: "center",hide:isAdmin?false:true
}, {
field: 'dataType',
title: '案例来源',
align: "center",
hide:isAdmin?true:false,
templet: function (d) {
return d.dataType == 'FACULTY_ADD' ? '院校添加' : (d.dataType == 'ADMIN_ADD' ? '系统内置': '')
}
@ -80,18 +80,18 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
field: 'operation_',
title: '操作',
align: "center",
fixed: 'right',
width: 260,
templet: function (d) {
var css = isAdmin? "" : "display: none;";
var htm = '<a class="layui-table-link" lay-event="up" data-item="${JSON.stringify(d)}" >上架</a>';
var htm = '<div style="text-align:left"><a class="layui-table-link" lay-event="up" data-item="${JSON.stringify(d)}" >上架</a>';
htm += '<a class="layui-table-link" lay-event="drown" data-item="${JSON.stringify(d)}" style="color: #bebebe!important">下架</a>';
// htm += '<a class="layui-table-link" lay-event="edit"style="' + css + '">编辑</a>';
htm += '<a class="layui-table-link" lay-event="edit">'+ (isAdmin?'编辑':'查看')+'</a>';
htm += '<a class="layui-table-link" lay-event="addTask">添加任务</a>';
if(d.dataType == 'FACULTY_ADD'|| isAdmin){
htm += '<a class="layui-table-link" lay-event="edit">'+ ((d.dataType == 'FACULTY_ADD' && !isAdmin)||(d.dataType == 'ADMIN_ADD' && isAdmin)?'编辑':'查看')+'</a>';
if((d.dataType == 'FACULTY_ADD' && !isAdmin)||(d.dataType == 'ADMIN_ADD' && isAdmin)){
htm += '<a class="layui-table-link" lay-event="addTask">添加任务</a>';
htm += '<a class="layui-table-link" lay-event="del">删除</a>';
}
htm +='</div>';
return htm;
}
}
@ -154,6 +154,9 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
var data = obj.data;
if (obj.event === 'edit') {
var url = "/jlw/handsOn/add.do?handsOnId=" + data.handsOnId;
if(data.dataType == 'FACULTY_ADD'){
url = "/jlw/teacherOpenCourseHandsOn/edit.do?resourcesInfoId=" + data.handsOnId;
}
Common.openDlg(url, "实操管理>" + data.handsOnName + ">编辑");
} else if (obj.event === "result") {
var url = "/jlw/handsOnAchievement/index2.do?handsOnId=" + data.handsOnId;
@ -203,7 +206,11 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
};
//选择归属课程 并且根据选择的课程查询章节 resourcesQuestionIdsIsNotNull:查询题目不为空的章节
form.on('select(select_courseInfoIds)', function (obj) {
Lib.getCourseInfo($("select[name='courseChildNode']"), obj.value, 1);
//Lib.getCourseInfo($("select[name='courseChildNode']"), obj.value, 1);
let sourceType = $("select[name='courseInfoId']").find('option:selected').attr("status");
let courseInfoType = 2;//courseInfoType2 章节3 节)
Lib.getCourseInfo($("select[name='courseChildNode']"), obj.value,courseInfoType,sourceType, 1);
});
/*//选择归属课程 并且根据选择的课程查询章节

@ -7,24 +7,25 @@ layui.define([ 'form', 'laydate', 'table','element','upload','resourcesInfoApi',
var layedit = layui.layedit;
var laytpl = layui.laytpl ;
var courseInfoContent_ = layedit.build('resourcesInfoContent',{height: 400});
var courseId = $("select[name='courseInfoId_0']").val();//课程ID
var chapterId = $("select[name='courseInfoId_1']").val();//章ID
var courseInfoId = $("select[name='courseInfoId_2']").val();//节ID
var sourceType = $("select[name='courseInfoId_0']").find('option:selected').attr("status");
var childValue = $("#courseInfoId_1").val();
var childChildValue = $("#courseInfoId_2").val();
layedit.set({ //富文本上传图片
uploadImage: {
url: Common.ctxPath + "/jlw/file/update.do",
imgUrl:Common.ctxPath
imgUrl:Common.ctxPath,
type: 'post' //默认post
}
});
var courseId = $("select[name='courseInfoId_0']").val();//课程ID
var sourceType = $("select[name='courseInfoId_0']").find('option:selected').attr("status");
var childValue = $("#courseInfoId_1").val();
var childChildValue = $("#courseInfoId_2").val();
Lib.getCourseInfo($("select[name='courseInfoId_1']"),courseId,2,sourceType,'',childValue);//key,courseInfoParentId,courseInfoType,sourceType,resourcesQuestionIdsIsNotNull
Lib.getCourseInfo($("select[name='courseInfoId_2']"),childValue,3,sourceType,'',childChildValue);//key,courseInfoParentId,courseInfoType,sourceType,resourcesQuestionIdsIsNotNull
var courseInfoContent_ = layedit.build('resourcesInfoContent',{height: 400});
form.render();
var view = {
init:function(){
Lib.initGenrealForm($("#addForm"),form);
@ -33,6 +34,9 @@ layui.define([ 'form', 'laydate', 'table','element','upload','resourcesInfoApi',
initSubmit:function(){
$("#addButton").click(function(){
form.on('submit(form)', function(){
var courseId = $("select[name='courseInfoId_0']").val();//课程ID
var chapterId = $("select[name='courseInfoId_1']").val();//章ID
var courseInfoId = $("select[name='courseInfoId_2']").val();//节ID
var resourcesInfoId = $("input[name='resourcesInfoId']").val();
var resourcesInfoType = $("select[name='resourcesInfoType']").val(); // 资源类型(详细见数据字典resources_info_type)
var sourceType = 2;

@ -39,7 +39,7 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
}
currentAuthCourseInfoDetails.forEach(function(e,i){
if(e.sourceType == 2){
if(e.sourceType == 2 && isAdmin){
if(e.courseLabelType == '考证课程类'){
textualResearchCourseList.push(e);
}else if(e.courseLabelType == '理论课程类'){
@ -47,7 +47,7 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
}else if(e.courseLabelType == '应用课程类'){
applicationCourseList.push(e);
}
}else if(e.sourceType == 1){
}else if(e.sourceType == 1&&!isAdmin){
openCourseList.push(e)
}
});
@ -69,10 +69,10 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
}
if(isAdmin){
selectList += htmY + '</optgroup>' + htmK + '</optgroup>' + htmL + '</optgroup>' + htmO + '</optgroup>' + "</select>";
selectList += htmY + '</optgroup>' + htmK + '</optgroup>' + htmL + '</optgroup>' + "</select>";
//console.log($("#isUser").val())
}else {
selectList+= htmL + '</optgroup>' + htmO + '</optgroup>' + "</select>";
selectList+= htmO + '</optgroup>' + "</select>";
}
/*$.each(courseLabelTypes, function (key, value) {
@ -114,67 +114,88 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
field: 'courseInfoParentParentName',
title: '归属课程',
templet: function (d) {
return selectList; //一级
if((d.sourceType == 1 && !isAdmin)||(d.sourceType == 2 && isAdmin)){
return selectList; //一级
}else {
return d.courseInfoParentParentName||"";
}
}
},
{
},{
field: 'courseInfoParentName',
title: '归属章节',
align: "center",
templet: function (d) {
var htm = "<select lay-filter='select_courseInfoIds_1'><option value=''>请选择</option>";
if (!$.isEmpty(d.courseInfoParentId)) {
if ($.isEmpty(selectMap[d.courseInfoParentParentId])) {
var h = htm;
var courseInfoChildtList = childCourseList(d.courseInfoParentParentId,2,d.sourceType);
if (!$.isEmpty(courseInfoChildtList)) {
courseInfoMap[d.courseInfoParentParentId] = courseInfoChildtList;
$.each(courseInfoChildtList, function (key, v) {
h += "<option value='" + v.courseInfoId + "'>" + v.courseInfoName + "</option>";
});
if((d.sourceType == 1 && !isAdmin)||(d.sourceType == 2 && isAdmin)){
var htm = "<select lay-filter='select_courseInfoIds_1'><option value=''>请选择</option>";
if (!$.isEmpty(d.courseInfoParentId)&&!$.isEmpty(d.courseInfoParentParentId)) {
if ($.isEmpty(selectMap[d.courseInfoParentParentId])) {
var h = htm;
var courseInfoChildtList = childCourseList(d.courseInfoParentParentId,2,d.sourceType);
if (!$.isEmpty(courseInfoChildtList)) {
courseInfoMap[d.courseInfoParentParentId] = courseInfoChildtList;
$.each(courseInfoChildtList, function (key, v) {
h += "<option value='" + v.courseInfoId + "'>" + v.courseInfoName + "</option>";
});
}
selectMap[d.courseInfoParentParentId] = h + "</select>";
return h;
} else {
return selectMap[d.courseInfoParentParentId];
}
selectMap[d.courseInfoParentParentId] = h + "</select>";
return h;
} else {
return selectMap[d.courseInfoParentParentId];
return htm + "</select>"; //二级
}
} else {
return htm + "</select>"; //二级
}else{
var value = '';
if(!$.isEmpty(d.courseInfoParentParentId)){
value = d.courseInfoParentName||"";
}
return value;
}
}
},
{
field: 'courseInfoName', title: '归属小节', align: "center", width: 200, templet: function (d) {
var htm = "<select lay-filter='select_courseInfoIds_2'><option value=''>请选择</option>";
if (!$.isEmpty(d.courseInfoId)) {
if ($.isEmpty(selectMap[d.courseInfoParentId])) {
var h = htm;
var courseInfoChildtChildList = childCourseList(d.courseInfoParentId,3,d.sourceType);
if (!$.isEmpty(courseInfoChildtChildList)) {
zjMap[d.courseInfoParentId] = courseInfoChildtChildList;
$.each(courseInfoChildtChildList, function (key, v) {
h += "<option value='" + v.courseInfoId + "'>" + v.courseInfoName + "</option>";
});
if((d.sourceType == 1 && !isAdmin)||(d.sourceType == 2 && isAdmin)){
var htm = "<select lay-filter='select_courseInfoIds_2'><option value=''>请选择</option>";
if (!$.isEmpty(d.courseInfoId)&&!$.isEmpty(d.courseInfoParentParentId)) {
if ($.isEmpty(selectMap[d.courseInfoParentId])) {
var h = htm;
var courseInfoChildtChildList = childCourseList(d.courseInfoParentId,3,d.sourceType);
if (!$.isEmpty(courseInfoChildtChildList)) {
zjMap[d.courseInfoParentId] = courseInfoChildtChildList;
$.each(courseInfoChildtChildList, function (key, v) {
h += "<option value='" + v.courseInfoId + "'>" + v.courseInfoName + "</option>";
});
}
selectMap[d.courseInfoParentId] = h + "</select>";
return h;
} else {
return selectMap[d.courseInfoParentId];
}
selectMap[d.courseInfoParentId] = h + "</select>";
return h;
} else {
return selectMap[d.courseInfoParentId];
return htm + "</select>"; //三级
}
} else {
return htm + "</select>"; //三级
}else{
var value = '';
if(!$.isEmpty(d.courseInfoParentParentId)){
value = d.courseInfoName||"";
}
return value;
}
}
},
{
field: 'addTypeText', title: '来源', align: "center"
field: 'addTypeText', title: '来源', align: "center",hide:isAdmin?false:true
},
{
field: 'sourceType', title: '来源', align: "center",hide:isAdmin?true:false,
templet:function (d) {
var htm = d.sourceType == 1?"院校添加":"系统内置";
return htm;
}
},
/*{
field: 'orgIdText', title: '上传院校', align: "center"
},*/
{
field: 'resourcesInfoType', title: '资源类型', align: "center", templet: function (d) {//(1视频 2PPT 3PDF)
var text = d.resourcesInfoType == 1 ? "视频" : d.resourcesInfoType == 2 ? "PPT" : d.resourcesInfoType == 3 ? "PDF" : d.resourcesInfoType == 4 ? "链接" : d.resourcesInfoType == 5 ? "图文" : '-';
@ -183,16 +204,20 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
},
{
field: 'userId', title: '操作', align: "center", field: 'right', templet: function (d) {
var htm = '<a class="layui-table-link" lay-event="edit">编辑</a>';
var htm='<div style="text-align:left">';
if((d.sourceType == 1 && !isAdmin)||(d.sourceType == 2 && isAdmin)){
htm += '<a class="layui-table-link" lay-event="edit">编辑</a>';
}
// htm += '<a class="layui-table-link" lay-event="previewPage" >' + (d.resourcesInfoType == 3 ? '下载' : '预览') + '</a>';
if(d.resourcesInfoType == 4){
htm += '<a class="layui-table-link" href="'+d.resourcesInfoContent+'" target="_blank" >预览</a>';
}else {
htm += '<a class="layui-table-link" lay-event="previewPage" >预览</a>';
}
if(d.sourceType == 1 || isAdmin){
if((d.sourceType == 1 && !isAdmin)||(d.sourceType == 2 && isAdmin)){
htm += '<a class="layui-table-link" lay-event="del">删除</a>';
}
htm += '</div>'
return htm;
}
}

@ -7,7 +7,7 @@
id 标签的ID值;
isShowGroupName 显示分组名称默认true;
defaultValue 默认值;
filterName 过滤的分类名称多个逗号隔开只支持【应用课程类】、【理论课程类】、【考证课程类】showGroupName为false也会过滤数据。
filterName 过滤的分类名称,多个逗号隔开;只支持【应用课程类】、【理论课程类】、【考证课程类】,【开课类】showGroupName为false也会过滤数据。
isShowOpentCourse 显示开课课程
*/
@ -62,7 +62,7 @@ var newId = !isEmpty(id) ? id : ('select_id_' + (name!'0') + '_' + @cn.hutool.c
* </select>
*/
// jq选择器
// jq选择器
var ele = $('#${newId}');
// 过滤label
var filterNames = '${filterName!""}';
@ -131,7 +131,7 @@ var newId = !isEmpty(id) ? id : ('select_id_' + (name!'0') + '_' + @cn.hutool.c
}
if (isShowGroupNameHandler()) ele.append('</optgroup>');
}
if (filterNames.indexOf('开课课程类') >= 0 || filterNames === "") {
if (filterNames.indexOf('开课类') >= 0 || filterNames === "") {
if (isShowGroupNameHandler()) ele.append('<optgroup label="开课课程类">');
for (let currentAuthCourseInfoDetail of openCourseList) {
var cid = currentAuthCourseInfoDetail.courseInfoId || '-1';

@ -48,10 +48,10 @@
<!--#if(user.get().isAdmin){ -->
<!--#// 查询授权的课程列表。自动根据身份判断 isSignRole.get()!'' :1admin+管理员 2:uniAdmin学院管理员 3:teacher 4student-->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId", "id": "courseInfoIds", "isShowGroupName": "true","defaultValue": courseInfoId}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId", "id": "courseInfoIds", "isShowGroupName": "true","filterName": "应用课程类,理论课程类,考证课程类","defaultValue": courseInfoId}) {} -->
<!--#}else{ -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId", "id": "courseInfoIds", "isShowGroupName": "false","filterName": "理论课程类","defaultValue": courseInfoId}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId", "id": "courseInfoIds", "isShowGroupName": "true","filterName": "理论课程类,开课类","defaultValue": courseInfoId}) {} -->
<!--#} -->
</div>
</div>
@ -60,15 +60,10 @@
<div class="layui-form-item">
<label class="layui-form-label"><span class="req">*</span>归属章节:</label>
<div class="layui-input-block" style="width: 400px;">
<!--#if(courseInfoId != null){-->
<layui:simpleDictSelect style='layui-input-inline' value="${twoChildNode}"
type="course_info.course_info_name.course_info_status=1,course_info_type=2,course_info_parent_id=${courseInfoId}"
id="courseInfoId1" name="courseChildNode" layFilter="select_courseInfoIds_1"/>
<!--#}else{-->
<select name="courseInfoId_1" lay-filter="select_courseInfoIds_1">
<input type="hidden" id="courseChildNode" value="${twoChildNode}"/>
<select name="courseChildNode" lay-filter="select_courseInfoIds_1">
<option value="">请选择</option>
</select>
<!--#}-->
</div>
</div>
</div>
@ -106,6 +101,7 @@
ondrop="jQuery(this).removeClass('uploader-dragover');">
<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" style="display: none;" id="testListAction">
开始上传

@ -28,7 +28,7 @@
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId", "id": "courseInfoId", "isShowGroupName": "true"}) {} -->
<!--#}else{ -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId", "id": "courseInfoId", "isShowGroupName": "false","filterName": "理论课程类"}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId", "id": "courseInfoId", "isShowGroupName": "true","filterName": "理论课程类,开课类"}) {} -->
<!--#} -->
</div>
</div>
@ -41,16 +41,6 @@
</div>
</div>
<!--
这里是demo 新增加initArray
<div class="layui-inline">
<label class="layui-form-label">来源:</label>
<div class="layui-input-block">
<layui:simpleDictSelect style='layui-input-inline' laySearch="lay-search"
type="course_info.course_info_name.course_info_status=1,course_info_type=2"
id="courseChildNode" name="courseChildNode" layFilter="select_courseInfoIds_" initArray="1,超级管理员"/>
</div>
</div> -->
<div class="layui-inline">
<label class="layui-form-label">案例名称:</label>
<div class="layui-input-block">
@ -62,15 +52,15 @@
<div class="layui-inline">
<label class="layui-form-label">案例来源:</label>
<div class="layui-input-block">
<input type="text" name="addTypeText" class="layui-input" >
<input type="text" name="orgIdText" class="layui-input" >
</div>
</div>
<!--#}else{ -->
<div class="layui-inline">
<label class="layui-form-label">案例来源:</label>
<div class="layui-input-block">
<select name="handsOnFrom" lay-filter="selectHandsOnFrom">
<option value="">请选择</option>
<select name="dataType" lay-filter="selectHandsOnFrom">
<option value="">全部</option>
<option value="ADMIN_ADD">系统内置</option>
<option value="FACULTY_ADD">院校添加</option>
</select>

@ -44,10 +44,10 @@
<!--#if(user.get().isAdmin){ -->
<!--#// 查询授权的课程列表。自动根据身份判断 isSignRole.get()!'' :1admin+管理员 2:uniAdmin学院管理员 3:teacher 4student-->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true"}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true","filterName": "应用课程类,理论课程类,考证课程类"}) {} -->
<!--#}else{ -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "false","filterName": "理论课程类"}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true","filterName": "理论课程类,开课类"}) {} -->
<!--#} -->
</div>
</div>
@ -104,6 +104,7 @@
ondrop="jQuery(this).removeClass('uploader-dragover');">
<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"><span class="iconfont">&#xebca;</span>&nbsp;选择文件</button>
<button type="button" class="layui-btn bg_button" style="display: none;" id="testListAction">
开始上传

@ -27,7 +27,7 @@
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true"}) {} -->
<!--#}else{ -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "false","filterName": "理论课程类"}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true","filterName": "理论课程类,开课类"}) {} -->
<!--#} -->
</div>
</div>

@ -13,10 +13,10 @@
<!--#if(user.get().isAdmin){ -->
<!--#// 查询授权的课程列表。自动根据身份判断 isSignRole.get()!'' :1admin+管理员 2:uniAdmin学院管理员 3:teacher 4student-->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true", "defaultValue":courseInfoId}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true","filterName": "应用课程类,理论课程类,考证课程类", "defaultValue":courseInfoId}) {} -->
<!--#}else{ -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "false","filterName": "理论课程类,开课课程类", "defaultValue":courseInfoId}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true","filterName": "理论课程类,开课类", "defaultValue":courseInfoId}) {} -->
<!--#} -->
</div>
</div>
@ -65,8 +65,8 @@
ondrop="jQuery(this).removeClass('uploader-dragover');">
<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" style="display: none;"><u>select images</u></a>
<button type="button" class="layui-btn bg_button uploader-browse-pvwpm"
<a class="uploader-browse" style="display: none;"><u>select all</u></a>
<button type="button" class="layui-btn bg_button uploader-browse-pvwpm"
style="float: left;margin-right: 20px;margin-bottom: 20px;">选择文件
</button>

@ -56,7 +56,7 @@
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoId", "isShowGroupName": "true"}) {} -->
<!--#}else{ -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoId", "isShowGroupName": "true","filterName": "理论课程类,开课课程类"}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoId", "isShowGroupName": "true","filterName": "理论课程类,开课类"}) {} -->
<!--#} -->
</div>
</div>
@ -76,15 +76,21 @@
id="courseChildNodeNode" name="courseInfoId_2"/>
</div>
</div>
<!--#if(user.get().isAdmin){ -->
<div class="layui-inline">
<label class="layui-form-label">资源来源:</label>
<div class="layui-input-block">
<input type="text" name="addTypeText" class="layui-input" >
</div>
</div>
<!--#if(user.get().isAdmin){ -->
<!--<div class="layui-inline">
<label class="layui-form-label">资源来源:</label>
<div class="layui-input-block">
<input type="text" name="addTypeText" class="layui-input" >
</div>
</div>-->
<!--#}else{ -->
<div class="layui-inline">
<!--<div class="layui-inline">
<label class="layui-form-label">资源来源:</label>
<div class="layui-input-block">
<select name="sourceType" lay-filter="selectHandsOnFrom">
@ -93,7 +99,7 @@
<option value="1">院校添加</option>
</select>
</div>
</div>
</div>-->
<!--#} -->
</layui:searchForm>

@ -18,10 +18,10 @@
<!--#if(user.get().isAdmin){ -->
<!--#// 查询授权的课程列表。自动根据身份判断 isSignRole.get()!'' :1admin+管理员 2:uniAdmin学院管理员 3:teacher 4student-->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true","defaultValue":courseInfoId}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true", "filterName": "应用课程类,理论课程类,考证课程类", "defaultValue":courseInfoId}) {} -->
<!--#}else{ -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "false","filterName": "理论课程类","defaultValue": courseInfoId}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true","filterName": "理论课程类,开课类","defaultValue": courseInfoId}) {} -->
<!--#} -->
</div>
</div>

@ -32,7 +32,7 @@
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true"}) {} -->
<!--#}else{ -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "false","filterName": "理论课程类"}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true","filterName": "理论课程类,开课类"}) {} -->
<!--#} -->
</div>
</div>

@ -43,10 +43,10 @@
<!--#if(user.get().isAdmin){ -->
<!--#// 查询授权的课程列表。自动根据身份判断 isSignRole.get()!'' :1admin+管理员 2:uniAdmin学院管理员 3:teacher 4student-->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true","defaultValue": courseInfoId}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true","filterName": "应用课程类,理论课程类,考证课程类","defaultValue": courseInfoId}) {} -->
<!--#}else{ -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "false","filterName": "理论课程类","defaultValue": courseInfoId}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true","filterName": "理论课程类,开课类","defaultValue": courseInfoId}) {} -->
<!--#} -->
</div>
</div>
@ -96,6 +96,7 @@
<div class="uploader-drop" ondragenter="jQuery(this).addClass('uploader-dragover');" ondragend="jQuery(this).removeClass('uploader-dragover');" ondrop="jQuery(this).removeClass('uploader-dragover');">
<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" ><i class="iconfont">&#xebca;</i>&nbsp;选择文件</button>
<button type="button" class="layui-btn bg_button" style="display: none;" id="testListAction">开始上传</button>
</div>

@ -27,7 +27,7 @@
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true"}) {} -->
<!--#}else{ -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "false","filterName": "理论课程类"}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"courseInfoId_0", "id": "courseInfoIds", "isShowGroupName": "true","filterName": "理论课程类,开课类"}) {} -->
<!--#} -->
</div>
<div class="layui-inline">

@ -61,10 +61,10 @@
<!--#if(user.get().isAdmin){ -->
<!--#// 查询授权的课程列表。自动根据身份判断 isSignRole.get()!'' :1admin+管理员 2:uniAdmin学院管理员 3:teacher 4student-->
<!--#layout("/common/courseInfoSelect.html",{"name":"teacherOpenCourseId", "id": "teacherOpenCourseId", "isShowGroupName": "true", "defaultValue":teacherOpenCourseScheduleSession.teacherOpenCourseId, isShowOpentCourse:"true"}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"teacherOpenCourseId", "id": "teacherOpenCourseId", "isShowGroupName": "true", "filterName": "应用课程类,理论课程类,考证课程类", "defaultValue":teacherOpenCourseScheduleSession.teacherOpenCourseId}) {} -->
<!--#}else{ -->
<!--#layout("/common/courseInfoSelect.html",{"name":"teacherOpenCourseId", "id": "teacherOpenCourseId", "isShowGroupName": "false","filterName": "理论课程类", "defaultValue":!isEmpty(teacherOpenCourseScheduleSession.teacherOpenCourseId!)?teacherOpenCourseScheduleSession.teacherOpenCourseId:teacherOpenCourseScheduleSession.courseInfoId, isShowOpentCourse:"true"}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"teacherOpenCourseId", "id": "teacherOpenCourseId", "isShowGroupName": "true","filterName": "理论课程类,开课类", "defaultValue":!isEmpty(teacherOpenCourseScheduleSession.teacherOpenCourseId!)?teacherOpenCourseScheduleSession.teacherOpenCourseId:teacherOpenCourseScheduleSession.courseInfoId, isShowOpentCourse:"true"}) {} -->
<!--#} -->
</div>
</div>

@ -28,7 +28,7 @@
<!--#layout("/common/courseInfoSelect.html",{"name":"teacherOpenCourseId", "id": "", "isShowGroupName": "true", isShowOpentCourse:"true"}) {} -->
<!--#}else{ -->
<!--#layout("/common/courseInfoSelect.html",{"name":"teacherOpenCourseId", "id": "", "isShowGroupName": "false","filterName": "理论课程类", isShowOpentCourse:"true"}) {} -->
<!--#layout("/common/courseInfoSelect.html",{"name":"teacherOpenCourseId", "id": "", "isShowGroupName": "true","filterName": "理论课程类,开课类", isShowOpentCourse:"true"}) {} -->
<!--#} -->
</div>
</div>

Loading…
Cancel
Save