|
@@ -100,14 +100,9 @@ class TeaplanService extends CrudService {
|
|
|
// }
|
|
|
// 遍历所有批次信息
|
|
|
// 将全年计划中的批次信息取出放在一个数组中
|
|
|
- let teaListKfp = [];
|
|
|
- let teaListAll = _.cloneDeep(JSON.parse(JSON.stringify(headteacherList)));
|
|
|
for (const term of trainplan.termnum) {
|
|
|
for (const batch of term.batchnum) {
|
|
|
- if (teaListAll.length === 0) {
|
|
|
- teaListAll = teaListKfp;
|
|
|
- teaListKfp = [];
|
|
|
- }
|
|
|
+ const teaListAll = _.cloneDeep(JSON.parse(JSON.stringify(headteacherList)));
|
|
|
for (const teaplan of teaplanList) {
|
|
|
if (teaplan.nodate && (teaplan.nodate).length > 0) {
|
|
|
// 遍历班主任全年计划表中的不能上课的日期
|
|
@@ -148,7 +143,6 @@ class TeaplanService extends CrudService {
|
|
|
_class.headteacherid = _tea.id;
|
|
|
_.remove(teaListAll_, item => item.id === _tea.id);
|
|
|
_.remove(teaListAll, item => item.id === _tea.id);
|
|
|
- teaListKfp.push(_tea);
|
|
|
index = index + 1;
|
|
|
break;
|
|
|
}
|