From c81e061ba5c1ff41cb6ff37716d5c14e0eec2ae6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com>
Date: Wed, 17 May 2023 22:00:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../static/js/jlw/courseInfo/index.js | 16 +++++++++---
.../static/js/jlw/resourcesInfo/index.js | 7 +++--
.../static/js/jlw/teacherOpenCourse/index.js | 26 ++++++++++++++++++-
.../templates/jlw/courseInfo/index.html | 11 +++++++-
.../jlw/resourcesApplication/add.html | 4 +--
5 files changed, 54 insertions(+), 10 deletions(-)
diff --git a/web/src/main/resources/static/js/jlw/courseInfo/index.js b/web/src/main/resources/static/js/jlw/courseInfo/index.js
index 48d249f8..6a47a545 100644
--- a/web/src/main/resources/static/js/jlw/courseInfo/index.js
+++ b/web/src/main/resources/static/js/jlw/courseInfo/index.js
@@ -44,6 +44,15 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field : 'addTime',
title : '创建时间',align:"center"
},
+ {
+ field : 'userId',title : '课程来源',align:"center", templet: function (d) {
+ if(d.userId == null || d.userId == 1) {
+ return '系统授权'
+ } else {
+ return '院校添加'
+ }
+ }
+ },
{
field : 'courseInfoStatus',title : '状态',align:"center", templet: function (d) {
if(d.courseInfoStatus == 1){
@@ -56,11 +65,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
}
},
{
- field : 'userId',width:300,title : '操作',align:"center", templet: function (d) {
-
- var htm = '课程配置';
+ field : 'operation_',width:300,title : '操作',align:"center", templet: function (d) {
+ var htm = '课程配置';
htm += ''+(d.courseInfoStatus == 1?"禁用":"启用")+'';
- htm += '编辑';
+ htm += '编辑';
htm += '删除';
return 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 a6ef7a49..f007d141 100644
--- a/web/src/main/resources/static/js/jlw/resourcesInfo/index.js
+++ b/web/src/main/resources/static/js/jlw/resourcesInfo/index.js
@@ -11,9 +11,12 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
courseLabelTypes: "应用课程类,考证课程类,理论课程类",
rankLimit: 3
}).data,//获取课程数据
- htmY = '