|
@@ -137,9 +137,12 @@ export default {
|
|
|
if (b.class && b.class.length > 0) {
|
|
|
const head = _.head(b.class);
|
|
|
// 该批次班级类型,也就是这些课程对应的班级类型
|
|
|
- const { type } = head;
|
|
|
+ const { type, name } = head;
|
|
|
const ctres = this.classTypeList.find(f => f.code == type);
|
|
|
- if (ctres) classtype = ctres.name;
|
|
|
+ if (ctres) {
|
|
|
+ classtype = ctres.name;
|
|
|
+ if (ctres != '0') classtype = `${classtype}-${name}`;
|
|
|
+ }
|
|
|
}
|
|
|
b.lessons = b.lessons.map(l => ({ ...l, ...obj, classtype }));
|
|
|
|