From cd6df24aee516a27922e8182cadee916e629af0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com> Date: Wed, 5 Jul 2023 00:52:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=AE=9E=E6=93=8D-=E5=BC=80?= =?UTF-8?q?=E8=AF=BE=E8=AF=BE=E7=A8=8B=E4=BB=BB=E5=8A=A1=E5=AE=9E=E6=93=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/static/js/jlw/handsOn/index.js | 14 +- .../add.html | 518 +++++++++++++++++- 2 files changed, 529 insertions(+), 3 deletions(-) diff --git a/web/src/main/resources/static/js/jlw/handsOn/index.js b/web/src/main/resources/static/js/jlw/handsOn/index.js index 0acd2464..d90743bb 100644 --- a/web/src/main/resources/static/js/jlw/handsOn/index.js +++ b/web/src/main/resources/static/js/jlw/handsOn/index.js @@ -20,6 +20,7 @@ layui.define(['form', 'laydate', 'table'], function (exports) { }, initTable: function () { var sx_ = localStorage.getItem("handsOnTable_field_" + Common.userInfoId); //筛选值显示、隐藏缓存 + var FACULTYADD = 'FACULTY_ADD' if ($.isEmpty(sx_)) { sx_ = {}; } else { @@ -48,8 +49,17 @@ layui.define(['form', 'laydate', 'table'], function (exports) { hideField: false, hide: $.isEmpty(sx_['handsOnName']) ? false : sx_['handsOnName'], }, { - field: $.isEmpty('systemCourseInfoIdText')?'systemCourseInfoIdText':"teacherOpenCourseTitle", - title: '归属课程', align: "center" + field: 'dataType', + title: '归属课程', align: "center", + templet:function (d) { + var htm; + if(d.dataType == "ADMIN_ADD"){ + htm = d.systemCourseInfoIdText; + }else if(d.dataType == "FACULTY_ADD"){ + htm = d.teacherOpenCourseTitle; + } + return htm; + } }, { field: 'systemCourseChildNodeText', diff --git a/web/src/main/resources/templates/jlw/teacherOpenCourseHandsOnSimulationTasks/add.html b/web/src/main/resources/templates/jlw/teacherOpenCourseHandsOnSimulationTasks/add.html index 4d8ea583..b54031f3 100644 --- a/web/src/main/resources/templates/jlw/teacherOpenCourseHandsOnSimulationTasks/add.html +++ b/web/src/main/resources/templates/jlw/teacherOpenCourseHandsOnSimulationTasks/add.html @@ -32,7 +32,487 @@ }