zhangjie 2 năm trước cách đây
mục cha
commit
206d9c0ea2
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/modules/base/components/PrintPlanBatchPushDialog.vue

+ 5 - 1
src/modules/base/components/PrintPlanBatchPushDialog.vue

@@ -92,8 +92,12 @@ export default {
   },
   methods: {
     initData() {
+      let thirdRelateName = `${this.courses[0].semesterName}-${this.courses[0].examName}`;
+      if (this.courses.length === 1) {
+        thirdRelateName = this.courses[0].thirdRelateName || thirdRelateName;
+      }
       this.modalForm = {
-        thirdRelateName: `${this.courses[0].semesterName}-${this.courses[0].examName}`,
+        thirdRelateName,
         list: this.courses,
         examTime: Date.now(),
       };