添加课程选择校验
This commit is contained in:
parent
a51c49e2f6
commit
356bf6392f
@ -251,7 +251,7 @@
|
|||||||
form.render();
|
form.render();
|
||||||
return;
|
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['lesson'] = data;
|
||||||
dataObj['teacher'] = teacherList;
|
dataObj['teacher'] = teacherList;
|
||||||
laytpl(document.getElementById('lessonTbodyTemplate').innerHTML).render(dataObj, function(html) {
|
laytpl(document.getElementById('lessonTbodyTemplate').innerHTML).render(dataObj, function(html) {
|
||||||
@ -383,6 +383,10 @@
|
|||||||
top.dialog.dialogTreeData.selectedNodes = {};
|
top.dialog.dialogTreeData.selectedNodes = {};
|
||||||
if($('#projectCatalogId').val() == ''){
|
if($('#projectCatalogId').val() == ''){
|
||||||
$('.teacher-lessons-div').hide();
|
$('.teacher-lessons-div').hide();
|
||||||
|
return;
|
||||||
|
} else if($('#planStartTime').val() != '' && $('#planEndTime').val() != ''){
|
||||||
|
initLessonsList();
|
||||||
|
$('.teacher-lessons-div').show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user