From 7d6f5ce1f568795d74fde60b246edb6e07336ee1 Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Wed, 19 May 2021 17:57:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E7=8F=AD=E8=AE=A1=E5=88=92=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=92=8C=E6=98=BE=E7=A4=BA=E5=8A=9F=E8=83=BD=E5=8A=9F?= =?UTF-8?q?=E8=83=BDbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/route/classplan/show.html | 4 +++- src/main/resources/static/route/classplan/update.html | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/route/classplan/show.html b/src/main/resources/static/route/classplan/show.html index 9b9c379..dbc126b 100644 --- a/src/main/resources/static/route/classplan/show.html +++ b/src/main/resources/static/route/classplan/show.html @@ -194,6 +194,7 @@ var teacherList = []; var classPlanLessons = []; var classPlanId = top.restAjax.params(window.location.href).classPlanId; + var orgId = '' // 初始化内容 function initData() { @@ -216,6 +217,7 @@ //初始化课程列表 initTeacherList(data.orgId); classPlanLessons = data.classPlanLessons; + orgId = data.orgId; }, function(code, data) { top.dialog.msg(data.msg); }, function() { @@ -249,7 +251,7 @@ form.render(); return; } - top.restAjax.get(top.restAjax.path('api/lessons/list',[]), {projectCatalogId : projectCatalogId}, null, function(code,data){ + top.restAjax.get(top.restAjax.path('api/lessons/list',[]), {projectCatalogId : projectCatalogId, orgId: orgId}, null, function(code,data){ dataObj['lesson'] = data; dataObj['teacher'] = teacherList; laytpl(document.getElementById('lessonTbodyTemplate').innerHTML).render(dataObj, function(html) { diff --git a/src/main/resources/static/route/classplan/update.html b/src/main/resources/static/route/classplan/update.html index 4c247c0..d9f86d0 100644 --- a/src/main/resources/static/route/classplan/update.html +++ b/src/main/resources/static/route/classplan/update.html @@ -202,6 +202,7 @@ var teacherList = []; var classPlanLessons = []; var classPlanId = top.restAjax.params(window.location.href).classPlanId; + var orgId = ''; // 初始化内容 function initData() { @@ -229,6 +230,7 @@ //初始化课程列表 initTeacherList(data.orgId); classPlanLessons = data.classPlanLessons; + orgId = data.orgId }, function(code, data) { top.dialog.msg(data.msg); }, function() { @@ -382,6 +384,13 @@ form.render(null, 'dataForm'); top.dialog.dialogTreeData.selectedNodes = {}; initLessonsList(); + if($('#projectCatalogId').val() == ''){ + $('.teacher-lessons-div').hide(); + return; + } else if($('#planStartTime').val() != '' && $('#planEndTime').val() != ''){ + initLessonsList(); + $('.teacher-lessons-div').show(); + } } }); });