开班计划修改和显示功能功能bug修复
This commit is contained in:
parent
356bf6392f
commit
7d6f5ce1f5
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user