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