|
@@ -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"
|
|
@@ -327,7 +343,7 @@
|
|
|
>
|
|
|
<!-- 批 -->
|
|
|
<img
|
|
|
- src="../../assets/navBtn2.png"
|
|
|
+ src="../../assets/mlBtn.png"
|
|
|
style="width: 25px"
|
|
|
alt=""
|
|
|
/>
|
|
@@ -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"
|
|
@@ -8627,7 +8652,7 @@
|
|
|
<div
|
|
|
class="pButton"
|
|
|
@click="(pzDialog = true), selectPz()"
|
|
|
- v-if="tType == 4 || ispzType == 4"
|
|
|
+ v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
|
|
|
>
|
|
|
<!-- 批 -->
|
|
|
<img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
|
|
@@ -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) {
|
|
@@ -20248,7 +20310,6 @@ export default {
|
|
|
height: calc(100% - 80px);
|
|
|
z-index: 999;
|
|
|
background: #fff;
|
|
|
- border-radius: 15px;
|
|
|
border-top-right-radius: 0px;
|
|
|
border-bottom-right-radius: 0px;
|
|
|
overflow: hidden;
|
|
@@ -20372,6 +20433,10 @@ export default {
|
|
|
background: #fff;
|
|
|
}
|
|
|
|
|
|
+.pzContent >>> img{
|
|
|
+ max-width:100%;
|
|
|
+}
|
|
|
+
|
|
|
.pzListBox {
|
|
|
padding-top: 15px;
|
|
|
height: calc(100% - 110px);
|