lrf402788946 4 年之前
父節點
當前提交
92844cbe78
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/views/plan/index.vue

+ 5 - 2
src/views/plan/index.vue

@@ -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 }));