zhangjie 2 년 전
부모
커밋
206d9c0ea2
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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(),
       };