添加课程选择校验

This commit is contained in:
wans 2021-05-19 16:32:08 +08:00
parent a51c49e2f6
commit 356bf6392f

View File

@ -251,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) {
@ -383,6 +383,10 @@
top.dialog.dialogTreeData.selectedNodes = {};
if($('#projectCatalogId').val() == ''){
$('.teacher-lessons-div').hide();
return;
} else if($('#planStartTime').val() != '' && $('#planEndTime').val() != ''){
initLessonsList();
$('.teacher-lessons-div').show();
}
}
});