zhangjie преди 3 години
родител
ревизия
acf88e7ef1
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      src/modules/college/course/InspectCourseExamOverview.vue

+ 3 - 2
src/modules/college/course/InspectCourseExamOverview.vue

@@ -267,11 +267,12 @@ export default {
     },
     initData(datas) {
       this.summary = datas.examBaseInfo;
+      this.commonCourseOption = null;
+      this.courseOtherOption = null;
+      if (!datas.collegeInfo) return;
       this.lowAvgCourseList = datas.collegeInfo.lowAvgInfo.lowAvgCourseList.map(
         item => item.courseName
       );
-      this.commonCourseOption = null;
-      this.courseOtherOption = null;
       if (!datas.collegeInfo.collegeCourseInfoList.length) return;
       const positions = datas.collegeInfo.collegeCourseInfoList.map(
         item => item.colRelativePosition