lsc il y a 1 an
Parent
commit
bf3469e9f2

+ 63 - 1
src/components/easy2/studyStudent.vue

@@ -200,6 +200,22 @@
             </div>
           </div>
         </div>
+        <div
+          class="isNoMessage"
+          v-if="
+            chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+              .chapterData.length == 0 &&
+            chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+              .toolChoose[0].tool.length == 0 &&
+            chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+              .taskDetail == '' &&
+            !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && !(courseDetail.userid == userid ||
+                (courseDetail.course_teacher &&
+                  courseDetail.course_teacher.indexOf(userid) != -1))
+          "
+        >
+          <img src="../../assets/icon/isNoMessage.png" alt />
+        </div>
         <div class="study_top" :class="{ pzClass: pzDialog }">
           <div
             class="vedioBox"
@@ -560,6 +576,15 @@
                   ? '0 0 20px 20px'
                   : '20px',
             }"
+             v-if="
+                ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+                  .toolChoose[0].tool &&
+                chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+                  .toolChoose[0].tool.length > 0) || (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+                    .taskDetail != '')) || (courseDetail.userid == userid ||
+                (courseDetail.course_teacher &&
+                  courseDetail.course_teacher.indexOf(userid) != -1))
+              "
           >
             <div
               class="taskBox"
@@ -8664,6 +8689,7 @@
               </div>
             </div>
             <div
+              @click="checkImg(getImgList(pz.content))"
               class="pzContent cont"
               v-html="pz.content"
               v-if="pz.type == '1'"
@@ -11878,6 +11904,15 @@ export default {
     previewImg(url) {
       this.$hevueImgPreview(url);
     },
+    checkImg(list){
+      if(!list.length){
+        return
+      }
+      this.$hevueImgPreview({
+          multiple: true, // 开启多图预览模式
+          imgList: list, // 需要预览的多图数组
+      })
+    },
     change(val) {
       console.log(val);
     },
@@ -15187,7 +15222,24 @@ export default {
           }
 
           _this.timer = setInterval(function () {
-            _this.selectSWorks(gindex);
+            if (_this.tcid) {
+              _this.getCourseGroup(gindex);
+            } else {
+              _this.selectSWorks(gindex);
+            }
+
+            _this.selectStudent();
+            _this.selectSLook();
+            if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
+              _this.setCTask();
+            }
+            if (_this.dialogVisibleGroup) {
+              _this.groupJson =
+                _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
+                  _this.taskCount
+                ].toolChoose[_this.toolindex].groupJson;
+            }
+
             if (_this.tType == 4 || _this.ispzType == 4) {
               _this.selectPz();
             }
@@ -17747,6 +17799,16 @@ export default {
         return check;
       };
     },
+    getImgList(){
+      return function(val){
+        let srcList = [];  // 定义一个数组用来接收后面的img地址
+        
+        val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) {  // 查找匹配的元素   match为整个img标签  capture为src中的内容
+            srcList.push(capture);
+        });
+        return srcList
+      }
+    }
   },
   mounted() {
     if (this.screenType == 2) {

+ 63 - 1
src/components/easy3/studyStudent.vue

@@ -200,6 +200,22 @@
             </div>
           </div>
         </div>
+        <div
+          class="isNoMessage"
+          v-if="
+            chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+              .chapterData.length == 0 &&
+            chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+              .toolChoose[0].tool.length == 0 &&
+            chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+              .taskDetail == '' &&
+            !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && !(courseDetail.userid == userid ||
+                (courseDetail.course_teacher &&
+                  courseDetail.course_teacher.indexOf(userid) != -1))
+          "
+        >
+          <img src="../../assets/icon/isNoMessage.png" alt />
+        </div>
         <div class="study_top" :class="{ pzClass: pzDialog }">
           <div
             class="vedioBox"
@@ -539,6 +555,15 @@
                   ? '0 0 20px 20px'
                   : '20px',
             }"
+             v-if="
+                ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+                  .toolChoose[0].tool &&
+                chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+                  .toolChoose[0].tool.length > 0) || (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+                    .taskDetail != '')) || (courseDetail.userid == userid ||
+                (courseDetail.course_teacher &&
+                  courseDetail.course_teacher.indexOf(userid) != -1))
+              "
           >
             <div
               class="taskBox"
@@ -8643,6 +8668,7 @@
               </div>
             </div>
             <div
+              @click="checkImg(getImgList(pz.content))"
               class="pzContent cont"
               v-html="pz.content"
               v-if="pz.type == '1'"
@@ -11857,6 +11883,15 @@ export default {
     previewImg(url) {
       this.$hevueImgPreview(url);
     },
+    checkImg(list){
+      if(!list.length){
+        return
+      }
+      this.$hevueImgPreview({
+          multiple: true, // 开启多图预览模式
+          imgList: list, // 需要预览的多图数组
+      })
+    },
     change(val) {
       console.log(val);
     },
@@ -15042,7 +15077,24 @@ export default {
           }
 
           _this.timer = setInterval(function () {
-            _this.selectSWorks(gindex);
+            if (_this.tcid) {
+              _this.getCourseGroup(gindex);
+            } else {
+              _this.selectSWorks(gindex);
+            }
+
+            _this.selectStudent();
+            _this.selectSLook();
+            if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
+              _this.setCTask();
+            }
+            if (_this.dialogVisibleGroup) {
+              _this.groupJson =
+                _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
+                  _this.taskCount
+                ].toolChoose[_this.toolindex].groupJson;
+            }
+
             if (_this.tType == 4 || _this.ispzType == 4) {
               _this.selectPz();
             }
@@ -17602,6 +17654,16 @@ export default {
         return check;
       };
     },
+    getImgList(){
+      return function(val){
+        let srcList = [];  // 定义一个数组用来接收后面的img地址
+        
+        val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) {  // 查找匹配的元素   match为整个img标签  capture为src中的内容
+            srcList.push(capture);
+        });
+        return srcList
+      }
+    }
   },
   mounted() {
     if (this.screenType == 2) {

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

@@ -660,7 +660,7 @@
                 删除
               </div>
             </div>
-            <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
+            <div @click="checkImg(getImgList(pz.content))" class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
             <div class="pzContent" v-if="pz.type == '2'">
               <audio :src="pz.content" controls="controls" ref="audio">
                 Your browser does not support the audio element.
@@ -1225,6 +1225,15 @@ export default {
     previewImg(url) {
       this.$hevueImgPreview(url);
     },
+    checkImg(list){
+      if(!list.length){
+        return
+      }
+      this.$hevueImgPreview({
+          multiple: true, // 开启多图预览模式
+          imgList: list, // 需要预览的多图数组
+      })
+    },
     openTable(f) {
       this.tableJson.text = JSON.parse(f);
       this.dialogVisibleTable2 = true;
@@ -2760,6 +2769,16 @@ export default {
         return _people ? _people : "";
       };
     },
+    getImgList(){
+      return function(val){
+        let srcList = [];  // 定义一个数组用来接收后面的img地址
+        
+        val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) {  // 查找匹配的元素   match为整个img标签  capture为src中的内容
+            srcList.push(capture);
+        });
+        return srcList
+      }
+    }
   },
   mounted() {
     if (this.screenType == 2) {

+ 21 - 1
src/components/studio/studyStudent.vue

@@ -663,7 +663,8 @@
                 删除
               </div>
             </div>
-            <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
+             
+            <div @click="checkImg(getImgList(pz.content))" class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
             <div class="pzContent" v-if="pz.type == '2'">
               <audio :src="pz.content" controls="controls" ref="audio">
                 Your browser does not support the audio element.
@@ -1228,6 +1229,15 @@ export default {
     previewImg(url) {
       this.$hevueImgPreview(url);
     },
+    checkImg(list){
+      if(!list.length){
+        return
+      }
+      this.$hevueImgPreview({
+          multiple: true, // 开启多图预览模式
+          imgList: list, // 需要预览的多图数组
+      })
+    },
     openTable(f) {
       this.tableJson.text = JSON.parse(f);
       this.dialogVisibleTable2 = true;
@@ -2763,6 +2773,16 @@ export default {
         return _people ? _people : "";
       };
     },
+    getImgList(){
+      return function(val){
+        let srcList = [];  // 定义一个数组用来接收后面的img地址
+        
+        val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) {  // 查找匹配的元素   match为整个img标签  capture为src中的内容
+            srcList.push(capture);
+        });
+        return srcList
+      }
+    }
   },
   mounted() {
     // if (this.screenType == 2) {

+ 152 - 94
src/components/studyStudent.vue

@@ -232,7 +232,9 @@
               .toolChoose[0].tool.length == 0 &&
             chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
               .taskDetail == '' &&
-            !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
+            !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && !(courseDetail.userid == userid ||
+                (courseDetail.course_teacher &&
+                  courseDetail.course_teacher.indexOf(userid) != -1))
           "
         >
           <img src="../assets/icon/isNoMessage.png" alt />
@@ -578,11 +580,13 @@
                     : '20px',
               }"
               v-if="
-                (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+                ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
                   .toolChoose[0].tool &&
                 chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
                   .toolChoose[0].tool.length > 0) || (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
-                    .taskDetail != '')
+                    .taskDetail != '')) || (courseDetail.userid == userid ||
+                (courseDetail.course_teacher &&
+                  courseDetail.course_teacher.indexOf(userid) != -1))
               "
             >
               <div
@@ -626,6 +630,14 @@
                   ></div>
                 </div>
               </div>
+              <div
+              class="vedioBox"
+              v-if="
+                courseDetail.userid == userid ||
+                (courseDetail.course_teacher &&
+                  courseDetail.course_teacher.indexOf(userid) != -1)
+              "
+            >
               <div
                 class="queTop"
                 style="
@@ -634,7 +646,6 @@
                   font-size: 20px;
                   color: #0e1e33;
                 "
-                v-show="false"
               >
                 工具栏
                 <el-button
@@ -645,7 +656,7 @@
                   >确定</el-button
                 >
               </div>
-              <div class="tool_work_box" v-show="false">
+              <div class="tool_work_box">
                 <div class="tool_box">
                   <div class="tool_type_box">
                     <div class="chooseWho">
@@ -711,9 +722,10 @@
                             v-if="checktoolArray.indexOf(10) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -734,9 +746,10 @@
                             v-if="checktoolArray.indexOf(7) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -755,9 +768,10 @@
                             v-if="checktoolArray.indexOf(1) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -776,9 +790,10 @@
                             v-if="checktoolArray.indexOf(52) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -797,9 +812,10 @@
                             v-if="checktoolArray.indexOf(3) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -818,9 +834,10 @@
                             v-if="checktoolArray.indexOf(48) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -851,9 +868,10 @@
                             v-if="checktoolArray.indexOf(16) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -872,9 +890,10 @@
                             v-if="checktoolArray.indexOf(50) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -895,9 +914,10 @@
                             v-if="checktoolArray.indexOf(18) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -916,9 +936,10 @@
                             v-if="checktoolArray.indexOf(21) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -937,9 +958,10 @@
                             v-if="checktoolArray.indexOf(22) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -958,9 +980,10 @@
                             v-if="checktoolArray.indexOf(23) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -979,9 +1002,10 @@
                             v-if="checktoolArray.indexOf(24) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1000,9 +1024,10 @@
                             v-if="checktoolArray.indexOf(32) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1021,9 +1046,10 @@
                             v-if="checktoolArray.indexOf(57) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1042,9 +1068,10 @@
                             v-if="checktoolArray.indexOf(63) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1065,9 +1092,10 @@
                             v-if="checktoolArray.indexOf(40) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1088,9 +1116,10 @@
                             v-if="checktoolArray.indexOf(28) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1109,9 +1138,10 @@
                             v-if="checktoolArray.indexOf(37) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1130,9 +1160,10 @@
                             v-if="checktoolArray.indexOf(38) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1151,9 +1182,10 @@
                             v-if="checktoolArray.indexOf(31) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1172,9 +1204,10 @@
                             v-if="checktoolArray.indexOf(39) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1193,9 +1226,10 @@
                             v-if="checktoolArray.indexOf(58) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1214,9 +1248,10 @@
                             v-if="checktoolArray.indexOf(59) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1235,9 +1270,10 @@
                             v-if="checktoolArray.indexOf(60) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1256,9 +1292,10 @@
                             v-if="checktoolArray.indexOf(61) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1279,9 +1316,10 @@
                             v-if="checktoolArray.indexOf(26) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1300,9 +1338,10 @@
                             v-if="checktoolArray.indexOf(25) == -1"
                           />
                           <div class="checkDiv" v-else>
-                            <img src="../assets/icon/checkedIs.png" alt /><span
-                              >已选择</span
-                            >
+                            <img
+                              src="../assets/icon/checkedIs.png"
+                              alt
+                            /><span>已选择</span>
                           </div>
                         </div>
                       </div>
@@ -1310,6 +1349,7 @@
                   </div>
                 </div>
               </div>
+            </div>
               <div
                 class="toolHeng2"
                 style="position: relative"
@@ -7206,6 +7246,7 @@
               </div>
             </div>
             <div
+              @click="checkImg(getImgList(pz.content))"
               class="pzContent cont"
               v-html="pz.content"
               v-if="pz.type == '1'"
@@ -10503,13 +10544,11 @@ export default {
         });
     },
     checkBz(index) {
-      this.toolIndex = index;
-      this.tool =
-        this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
-          this.taskCount
-        ].toolChoose[this.toolIndex];
       this.isUpdateToolDetail = false;
       this.$forceUpdate();
+      setTimeout(()=>{
+        document.scrollingElement.scrollTop = document.querySelectorAll(".filebox")[index].offsetTop + document.querySelector(".student_body").offsetTop
+      },500)
     },
     addTools2(i) {
       if (i == 4) {
@@ -10591,6 +10630,15 @@ export default {
     previewImg(url) {
       this.$hevueImgPreview(url);
     },
+    checkImg(list){
+      if(!list.length){
+        return
+      }
+      this.$hevueImgPreview({
+          multiple: true, // 开启多图预览模式
+          imgList: list, // 需要预览的多图数组
+      })
+    },
     change(val) {
       console.log(val);
     },
@@ -16718,6 +16766,16 @@ export default {
         return check;
       };
     },
+    getImgList(){
+      return function(val){
+        let srcList = [];  // 定义一个数组用来接收后面的img地址
+        
+        val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) {  // 查找匹配的元素   match为整个img标签  capture为src中的内容
+            srcList.push(capture);
+        });
+        return srcList
+      }
+    }
   },
   mounted() {
     if (this.screenType == 2) {