|
@@ -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) {
|