';
if(d.dataType == 'ADMIN_ADD'){
- htm += '
上架'
+ htm += '
上架'
+ '
下架';
}
diff --git a/web/src/main/resources/static/js/jlw/resourcesInfo/index.js b/web/src/main/resources/static/js/jlw/resourcesInfo/index.js
index 8a760318..622e39b9 100644
--- a/web/src/main/resources/static/js/jlw/resourcesInfo/index.js
+++ b/web/src/main/resources/static/js/jlw/resourcesInfo/index.js
@@ -34,20 +34,18 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
courseInfoParentId: courseInfoId,
courseInfoType:courseInfoType,
sourceType:sourceType
- }).data;//获取课程数据
+ }).data;//获取课程章节数据
return data
}
currentAuthCourseInfoDetails.forEach(function(e,i){
- if(e.sourceType == 2 && isAdmin){
- if(e.courseLabelType == '考证课程类'){
- textualResearchCourseList.push(e);
- }else if(e.courseLabelType == '理论课程类'){
- theoryCourseList.push(e);
- }else if(e.courseLabelType == '应用课程类'){
- applicationCourseList.push(e);
- }
- }else if(e.sourceType == 1&&!isAdmin){
+ if(e.courseLabelType == '考证课程类'){
+ textualResearchCourseList.push(e);
+ }else if(e.courseLabelType == '理论课程类'){
+ theoryCourseList.push(e);
+ }else if(e.courseLabelType == '应用课程类'){
+ applicationCourseList.push(e);
+ }else if (e.courseLabelType == '院校'){
openCourseList.push(e)
}
});
@@ -72,7 +70,7 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
selectList += htmY + '' + htmK + '' + htmL + '' + "";
//console.log($("#isUser").val())
}else {
- selectList+= htmO + '' + "";
+ selectList+= htmL + '' + htmO + '' + "";
}
/*$.each(courseLabelTypes, function (key, value) {
@@ -108,12 +106,8 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
type: 'checkbox'
},
{
- field: 'resourcesInfoName', title: '资源名称', align: "center", style: "text-align: left;",
- templet:function (d) {
- var htm = '
'+d.resourcesInfoName+'
';
- return htm;
-
- }
+ field: 'resourcesInfoName', title: '资源名称', align: "center",
+ style: "text-align: left;overflow: hidden;text-overflow:ellipsis;",
},
{
field: 'courseInfoParentParentName',
@@ -122,13 +116,14 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
if((d.sourceType == 1 && !isAdmin)||(d.sourceType == 2 && isAdmin)){
return selectList; //一级
}else {
- var htm = '
'+d.courseInfoParentParentName||""+'
';
+ var htm = '
'+d.courseInfoParentParentName||""+'
';
return htm;
}
}
},{
field: 'courseInfoParentName',
title: '归属章节',
+ style: "text-align: left;",
align: "center",
templet: function (d) {
if((d.sourceType == 1 && !isAdmin)||(d.sourceType == 2 && isAdmin)){
@@ -152,16 +147,17 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
return htm + ""; //二级
}
}else{
- var value = '';
+ var value = '
';
if(!$.isEmpty(d.courseInfoParentParentId)){
- value = d.courseInfoParentName||"";
+ value += d.courseInfoParentName||"";
}
+ value += "
"
return value;
}
}
},
{
- field: 'courseInfoName', title: '归属小节', align: "center", width: 200, templet: function (d) {
+ field: 'courseInfoName', title: '归属小节', align: "center", width: 200, style: "text-align: left;", templet: function (d) {
if((d.sourceType == 1 && !isAdmin)||(d.sourceType == 2 && isAdmin)){
var htm = "
"; //三级
}
}else{
- var value = '';
+ var value = '
';
if(!$.isEmpty(d.courseInfoParentParentId)){
- value = d.courseInfoName||"";
+ value += d.courseInfoName||"";
}
+ value += "
"
return value;
}
}
From 4593453438b18ed4f0aad2effc23ac2ec45cd309 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com>
Date: Wed, 28 Jun 2023 15:43:25 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=AE=9E=E8=AE=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../resources/templates/jlw/handsOn/add.html | 3 ++-
.../jlw/teacherOpenCourseHandsOn/edit.html | 16 ++++++++++------
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/web/src/main/resources/templates/jlw/handsOn/add.html b/web/src/main/resources/templates/jlw/handsOn/add.html
index 5ec0d7a3..2166eba7 100644
--- a/web/src/main/resources/templates/jlw/handsOn/add.html
+++ b/web/src/main/resources/templates/jlw/handsOn/add.html
@@ -48,7 +48,7 @@
-
+
@@ -225,6 +225,7 @@
diff --git a/web/src/main/resources/templates/jlw/teacherOpenCourseHandsOn/edit.html b/web/src/main/resources/templates/jlw/teacherOpenCourseHandsOn/edit.html
index 82c9798e..1bf58006 100644
--- a/web/src/main/resources/templates/jlw/teacherOpenCourseHandsOn/edit.html
+++ b/web/src/main/resources/templates/jlw/teacherOpenCourseHandsOn/edit.html
@@ -6,11 +6,14 @@