lsc 2 years ago
parent
commit
72a9a0d449
1 changed files with 24 additions and 20 deletions
  1. 24 20
      src/components/student/studyStudent.vue

+ 24 - 20
src/components/student/studyStudent.vue

@@ -134,11 +134,11 @@
               </div>
             </div>
             <div class="student_head">
-              <div class="task_box"  v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
-                  taskCount
-                ].people || chapInfoList[courseType].chapterInfo[0].taskJson[
-                  taskCount
-                ].time">
+              <div class="task_box" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
+                taskCount
+              ].people || chapInfoList[courseType].chapterInfo[0].taskJson[
+                taskCount
+              ].time">
                 <div class="task_pbox" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
                   taskCount
                 ].people">负责人:{{
@@ -157,17 +157,19 @@
 }}</div>
               </div>
               <div class="task_box" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
-                  taskCount
-                ].tcMember && chapInfoList[courseType].chapterInfo[0].taskJson[
-                  taskCount
-                ].tcMember.length" :style="{margin: (chapInfoList[courseType].chapterInfo[0].taskJson[
-                  taskCount
-                ].people || chapInfoList[courseType].chapterInfo[0].taskJson[
-                  taskCount
-                ].time) ? '5px auto 5px' : '15px auto 5px'}">
+                taskCount
+              ].tcMember && chapInfoList[courseType].chapterInfo[0].taskJson[
+                taskCount
+              ].tcMember.length" :style="{
+  margin: (chapInfoList[courseType].chapterInfo[0].taskJson[
+    taskCount
+  ].people || chapInfoList[courseType].chapterInfo[0].taskJson[
+    taskCount
+  ].time) ? '5px auto 5px' : '15px auto 5px'
+}">
                 <div class="task_pbox">协同者:<span class="tcMember" v-for="(men, mindex) in chapInfoList[courseType].chapterInfo[0].taskJson[
-  taskCount
-].tcMember" :key="mindex">{{ getMan(men) }}</span></div>
+                  taskCount
+                ].tcMember" :key="mindex">{{ getMan(men) }}</span></div>
               </div>
               <div class="taskBox" v-if="
                 chapInfoList[courseType].chapterInfo[0].taskJson[
@@ -1378,12 +1380,14 @@ export default {
             clearInterval(_this.timer);
             _this.timer = null;
           }
-
+          if (_this.tType == 4) {
+            _this.selectPz();
+          }
           _this.timer = setInterval(function () {
             _this.getCourseDetail(2);
-            if (_this.tType == 4) {
-              _this.selectPz();
-            }
+            // if (_this.tType == 4) {
+            //   _this.selectPz();
+            // }
           }, 5000);
         })
         .catch((err) => {
@@ -5185,7 +5189,7 @@ ol {
   margin-left: 20px;
 }
 
-.tcMember + .tcMember::before{
+.tcMember+.tcMember::before {
   content: '、';
 }
 </style>