|
@@ -131,9 +131,10 @@ export default {
|
|
f.every(e => {
|
|
f.every(e => {
|
|
let eb = _.get(e, 'batch');
|
|
let eb = _.get(e, 'batch');
|
|
let cb = _.get(ncla, 'batch');
|
|
let cb = _.get(ncla, 'batch');
|
|
- let en = _.get(e, 'name');
|
|
|
|
- let cn = _.get(ncla, 'name');
|
|
|
|
- return eb == cb && en == cn;
|
|
|
|
|
|
+ // let en = _.get(e, 'name');
|
|
|
|
+ // let cn = _.get(ncla, 'name');
|
|
|
|
+ // && en == cn
|
|
|
|
+ return eb == cb;
|
|
})
|
|
})
|
|
);
|
|
);
|
|
// console.log(ncla);
|
|
// console.log(ncla);
|
|
@@ -165,13 +166,20 @@ export default {
|
|
for (const bn of bl) {
|
|
for (const bn of bl) {
|
|
for (const a of al) {
|
|
for (const a of al) {
|
|
let mid = _.get(a, bn);
|
|
let mid = _.get(a, bn);
|
|
- if (mid) rl.push(mid);
|
|
|
|
|
|
+ if (mid) {
|
|
|
|
+ let h = _.head(mid);
|
|
|
|
+ if (parseInt(h.name)) rl.push(mid);
|
|
|
|
+ else {
|
|
|
|
+ let r = rl.findIndex(f => f.find(ff => ff.batch == h.batch));
|
|
|
|
+ if (r < 0) rl.push(mid);
|
|
|
|
+ else rl[r].push(...mid);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
obj[i] = rl;
|
|
obj[i] = rl;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-
|
|
|
|
//整理列数最大值
|
|
//整理列数最大值
|
|
let lenl = [];
|
|
let lenl = [];
|
|
for (const o of arr) {
|
|
for (const o of arr) {
|
|
@@ -189,6 +197,8 @@ export default {
|
|
obj[i].push([]);
|
|
obj[i].push([]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //合并同批次特殊班
|
|
|
|
+ obj;
|
|
this.$set(this, `list`, obj);
|
|
this.$set(this, `list`, obj);
|
|
msg.close();
|
|
msg.close();
|
|
},
|
|
},
|