zhangjie 3 năm trước cách đây
mục cha
commit
acf88e7ef1

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

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