zhangjie %!s(int64=2) %!d(string=hai) anos
pai
achega
206d9c0ea2
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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(),
       };