lsc 2 years ago
parent
commit
a3a1403eee
1 changed files with 39 additions and 37 deletions
  1. 39 37
      src/components/studyStudent.vue

+ 39 - 37
src/components/studyStudent.vue

@@ -64,19 +64,19 @@
             <div class="returnBtn" style="background: #225bc7" @click.stop="
               goTo(
                 '/courseDetail?userid=' +
-                  userid +
-                  '&oid=' +
-                  oid +
-                  '&org=' +
-                  org +
-                  '&cid=' +
-                  classId +
-                  '&courseId=' +
-                  id +
-                  '&tType=' +
-                  tType +
-                  '&screenType=' +
-                  screenType
+                userid +
+                '&oid=' +
+                oid +
+                '&org=' +
+                org +
+                '&cid=' +
+                classId +
+                '&courseId=' +
+                id +
+                '&tType=' +
+                tType +
+                '&screenType=' +
+                screenType
               )
             ">
               返回
@@ -98,7 +98,7 @@
         ">
           <img src="../assets/icon/isNoMessage.png" alt />
         </div>
-        <div class="study_top" :class="{pzClass:pzDialog}">
+        <div class="study_top" :class="{ pzClass: pzDialog }">
           <div class="vedioBox" v-if="
             vedio[taskCount].length > 0 ||
             chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
@@ -134,14 +134,14 @@
                       taskCount
                     ].taskDetail != ''
                   " v-html="
-                    chapInfoList[courseType].chapterInfo[0].taskJson[
-                      taskCount
-                    ].taskDetail
-                      ? chapInfoList[courseType].chapterInfo[0].taskJson[
-                          taskCount
-                        ].taskDetail
-                      : '暂无描述'
-                  ">
+  chapInfoList[courseType].chapterInfo[0].taskJson[
+    taskCount
+  ].taskDetail
+    ? chapInfoList[courseType].chapterInfo[0].taskJson[
+      taskCount
+    ].taskDetail
+    : '暂无描述'
+">
                     <!-- <span style="color: #cbcbcb">任务描述</span> -->
                     <!-- {{
                         chapInfoList[courseType].chapterInfo[0].taskJson[
@@ -303,7 +303,7 @@
                           isClickNav == 'text' + textIndex ? 'isClickNav' : ''
                         ">
                           {{
-                          textList[taskCount].length > 0 ? text.name : ""
+                              textList[taskCount].length > 0 ? text.name : ""
                           }}.doc
                         </div>
                       </div>
@@ -932,11 +932,11 @@
                         v-if="item.answer == checkIndex">
                         <span>正确率</span>
                         <span>{{
-                        (checkJson[toolIndex][index].checkPerent[checkIndex]
-                        ? checkJson[toolIndex][index].checkPerent[
-                        checkIndex
-                        ]
-                        : 0) + "%"
+                            (checkJson[toolIndex][index].checkPerent[checkIndex]
+                              ? checkJson[toolIndex][index].checkPerent[
+                              checkIndex
+                              ]
+                              : 0) + "%"
                         }}</span>
                       </div>
                     </div>
@@ -1541,7 +1541,7 @@
                 </div>-->
                 评一评
               </div>
-              <div class="evaCss" :class="{evaCssMax:Stbodywidth < 974}">
+              <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
                 <div class="elist_input">
                   <div v-for="(eItem, eIndex) in chapInfoList[courseType]
                   .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
@@ -1566,7 +1566,7 @@
                       </div>
                       <div class="elist_inptu_text" style="padding-left: 10px">
                         <span v-if="eItem.detail != ''">{{
-                        eItem.detail
+                            eItem.detail
                         }}</span>
                         <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
                       </div>
@@ -1825,7 +1825,7 @@
           <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
             <div class="pzNavTop">
               <div>批</div>
-              <div>{{ pz.username.length > 5 ? pz.username.substring(0,5)+'...' : pz.username }}的批注</div>
+              <div>{{ pz.username.length > 5 ? pz.username.substring(0, 5) + '...' : pz.username }}的批注</div>
               <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">删除</div>
             </div>
             <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'">
@@ -1849,9 +1849,9 @@
           <img src="../assets/icon/noPz.png" alt="" />
         </div>
         <div class="addPzButton">
-          <div class="addPz" @click="addPzDialog = true,pzType = 1">添加批注</div>
+          <div class="addPz" @click="addPzDialog = true, pzType = 1">添加批注</div>
           <div class="img1">
-            <div @click="addPzDialog = true,pzType = 2"><img src="../assets/audio.png" /><span>音频</span></div>
+            <div @click="addPzDialog = true, pzType = 2"><img src="../assets/audio.png" /><span>音频</span></div>
             <!-- <img src="../assets/picture.png" @click="addPzDialog = true,pzType = 3" /> -->
           </div>
         </div>
@@ -1871,9 +1871,9 @@
       </div>
       <div class="addPzBox">
         <div class="addPzCheck">
-          <span :class="{isChooseActive:pzType==1}" @click="pzType = 1">文本</span>
+          <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
           <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
-          <span :class="{isChooseActive:pzType==2}" @click="pzType = 2">音频</span>
+          <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
         </div>
         <div style="height: calc(100% - 95px);">
           <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
@@ -3969,12 +3969,14 @@ export default {
           this.selectStudent();
           this.selectSWorks();
           let _this = this;
+          if (_this.tType == 4) {
+            _this.pzDialog = true;
+          }
           _this.timer = setInterval(function () {
             _this.selectSWorks();
             _this.selectStudent();
             _this.selectSLook();
             if (_this.tType == 4) {
-              _this.pzDialog = true;
               _this.selectPz();
             }
           }, 5000);
@@ -4848,7 +4850,7 @@ export default {
       if (document.getElementsByClassName("box_course")) {
         var a = document.getElementsByClassName("box_course")[0].offsetHeight;
         document.getElementsByClassName("vedioList")[0].style.height = a + "px";
-        document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px"; 
+        document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
       }
       this.Stbodywidth = document.getElementsByClassName('student_body').length && document.getElementsByClassName('student_body')[0].offsetWidth
     }