谢杰标 3 лет назад
Родитель
Сommit
ae006b2bab

+ 7 - 1
src/views/education/classManageMent/classHoursReview/component/StudyTables.vue

@@ -277,6 +277,11 @@ export default {
           this.allType3List.push(ele);
           ele.status === 2 && this.allIds.push(ele.periodStatusId);
         } else {
+          if (ele.type == 1 && ele.arr) {
+            let item = ele.arr[0];
+            this.allType3List.push(item);
+            item.status === 2 && this.allIds.push(item.periodStatusId);
+          }
           this.getAllId(
             ele.type == 1 ? ele.classPeriods : ele.classPeriodSectionList
           );
@@ -407,8 +412,9 @@ export default {
     },
   },
   mounted() {
+    let that = this;
     window.onresize = function () {
-      this.setBomHeight();
+      that.setBomHeight();
     };
   },
   created() {

+ 2 - 2
src/views/education/classManageMent/classHoursReview/studyTimes.vue

@@ -194,7 +194,7 @@ export default {
     changeData(data) {
       let obj = {};
       data.forEach((e) => {
-        if(e.type==5){
+        if (e.type == 5) {
           e.classPeriodSectionList = [JSON.parse(JSON.stringify(e))];
         }
         // 区分章和模块卷
@@ -202,7 +202,7 @@ export default {
           e.classPeriods &&
             e.classPeriods.forEach((ele, i) => {
               if (ele.type == 5) {
-                ele.classPeriodSectionList = [ele];
+                ele.classPeriodSectionList = [JSON.parse(JSON.stringify(ele))];
                 e.arr = [ele];
                 e.classPeriods.splice(i, 1);
               }