|
@@ -1767,6 +1767,141 @@
|
|
|
</div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ v-if="
|
|
|
+ tType &&
|
|
|
+ ((tType == 2 && sIsOpen == true) ||
|
|
|
+ tType == 1 ||
|
|
|
+ tType == 4) &&
|
|
|
+ tool.tool.indexOf(62) != -1
|
|
|
+ "
|
|
|
+ class="worksBox"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="zuoyeYulan"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div class="worksTop">
|
|
|
+ <div>作业预览</div>
|
|
|
+ <div
|
|
|
+ class="corOpen"
|
|
|
+ @click="contract(toolIndex)"
|
|
|
+ v-if="
|
|
|
+ (isCloseList[toolIndex].isCloseBoolean) &&
|
|
|
+ isCloseList[toolIndex].isClose == 0
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 折叠
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="corOpen"
|
|
|
+ @click="contract(toolIndex)"
|
|
|
+ v-if="isCloseList[toolIndex].isClose == 1"
|
|
|
+ >
|
|
|
+ 展开
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <div
|
|
|
+ :id="'tool-' + toolIndex"
|
|
|
+ :style="{
|
|
|
+ height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
|
|
|
+ overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
|
|
|
+ }"
|
|
|
+ class="worksDetailBox"
|
|
|
+ v-if="
|
|
|
+ worksStudent.length &&
|
|
|
+ worksStudent[toolIndex].length > 0
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
|
+ :key="wIndex"
|
|
|
+ class="isWorksName2"
|
|
|
+ @click="
|
|
|
+ openTools(
|
|
|
+ 62,
|
|
|
+ toolIndex,
|
|
|
+ taskCount,
|
|
|
+ w.works,
|
|
|
+ w.sName
|
|
|
+ )
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ w.sName }}
|
|
|
+ <img
|
|
|
+ class="deleteImg deleteImg2"
|
|
|
+ src="../../assets/deleteworks.png"
|
|
|
+ v-if="
|
|
|
+ w.userid == userid || tType == 1 || tType == 4
|
|
|
+ "
|
|
|
+ @click.stop="deleteWorks(w.wid)"
|
|
|
+ alt
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="font-size: 18px" v-if="courseDetail.juri != ''">
|
|
|
+ 未提交
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="noWorksS"
|
|
|
+ v-if="noWorksS && noWorksS[toolIndex].length"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ v-for="(s, sIndex) in noWorksS[toolIndex]"
|
|
|
+ :key="sIndex"
|
|
|
+ class="noWorksName"
|
|
|
+ >
|
|
|
+ {{ s.student }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="
|
|
|
+ tType &&
|
|
|
+ tType == 2 &&
|
|
|
+ !sIsOpen &&
|
|
|
+ tool.tool.indexOf(62) != -1
|
|
|
+ "
|
|
|
+ class="worksBox"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="zuoyeYulan"
|
|
|
+ v-if="workStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ <span class="worksTitle">作业预览</span>
|
|
|
+ <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="worksDetailBox"
|
|
|
+ v-if="workStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="isWorksName2"
|
|
|
+ v-for="(w, wIndex) in workStudent[toolIndex]"
|
|
|
+ :key="wIndex"
|
|
|
+ @click="
|
|
|
+ openTools(62, toolIndex, taskCount, w.works, w.sName)
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ w.sName }}
|
|
|
+ <img
|
|
|
+ class="deleteImg deleteImg2"
|
|
|
+ src="../../assets/deleteworks.png"
|
|
|
+ v-if="w.userid == userid || tType == 1 || tType == 4"
|
|
|
+ @click.stop="deleteWorks(w.wid)"
|
|
|
+ alt
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div
|
|
|
v-if="
|
|
|
tType &&
|
|
@@ -4101,7 +4236,7 @@
|
|
|
class="workImg"
|
|
|
style="
|
|
|
border-radius: 15px;
|
|
|
- box-shadow: #eee 0px 0px 5px 5px;
|
|
|
+ box-shadow: 0px 0px 5px 5px #eee;
|
|
|
"
|
|
|
>
|
|
|
<div
|
|
@@ -4221,7 +4356,7 @@
|
|
|
class="workImg"
|
|
|
style="
|
|
|
border-radius: 15px;
|
|
|
- box-shadow: #eee 0px 0px 5px 5px;
|
|
|
+ box-shadow: 0px 0px 5px 5px #eee;
|
|
|
"
|
|
|
>
|
|
|
<!-- <img
|
|
@@ -11613,6 +11748,7 @@
|
|
|
:courseType="courseType"
|
|
|
:taskCount="taskCount"
|
|
|
:toolindex="toolindex"
|
|
|
+ :videoType="videoType"
|
|
|
></interVideo>
|
|
|
<UpdateMore
|
|
|
:dialogVisibleMember.sync="dialogVisibleMember"
|
|
@@ -12108,6 +12244,7 @@ export default {
|
|
|
16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
|
|
|
], //, 40
|
|
|
videoJson: {},
|
|
|
+ videoType:0,
|
|
|
toolType: 0,
|
|
|
checktoolArray: [],
|
|
|
vChapterData: [],
|
|
@@ -13717,6 +13854,18 @@ export default {
|
|
|
time: b[j].time,
|
|
|
userid: b[j].userid,
|
|
|
wid: b[j].id,
|
|
|
+ });
|
|
|
+ } else if (b[j].type == 14 && a[i].tool[0] == 62) {
|
|
|
+ //交互视频
|
|
|
+ this.workStudent[i].push({
|
|
|
+ works: b[j].content,
|
|
|
+ sName: b[j].name,
|
|
|
+ score: b[j].score,
|
|
|
+ img: b[j].img,
|
|
|
+ type: 14,
|
|
|
+ time: b[j].time,
|
|
|
+ userid: b[j].userid,
|
|
|
+ wid: b[j].id,
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -14843,6 +14992,26 @@ export default {
|
|
|
};
|
|
|
_worksStudent[i].push(_work);
|
|
|
_worksStudent2[i].push(_work);
|
|
|
+ this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
|
|
|
+ } else if (b[j].type == 14 && a[i].tool[0] == 62) {
|
|
|
+ //交互视频
|
|
|
+ let _work = {
|
|
|
+ userid: b[j].userid,
|
|
|
+ ateacher: b[j].ateacher,
|
|
|
+ wid: b[j].id,
|
|
|
+ works: b[j].content,
|
|
|
+ sName: b[j].name,
|
|
|
+ type: 14,
|
|
|
+ time: b[j].time,
|
|
|
+ score: b[j].score,
|
|
|
+ img: b[j].img,
|
|
|
+ likesCount: likesCount,
|
|
|
+ commentCount: commentCount,
|
|
|
+ isLikes: isLikes,
|
|
|
+ commentJson: commentJson,
|
|
|
+ };
|
|
|
+ _worksStudent[i].push(_work);
|
|
|
+ _worksStudent2[i].push(_work);
|
|
|
this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
|
|
|
} else if (b[j].type == 11 && a[i].tool[0] == 49) {
|
|
|
let _gindex = JSON.parse(b[j].content);
|
|
@@ -15653,8 +15822,9 @@ export default {
|
|
|
) {
|
|
|
if (
|
|
|
this.courseDetail.userid != this.userid &&
|
|
|
- this.courseDetail.course_teacher &&
|
|
|
- this.courseDetail.course_teacher.indexOf(this.userid) == -1
|
|
|
+ (!this.courseDetail.course_teacher ||
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
+ this.courseDetail.course_teacher.indexOf(this.userid) == -1))
|
|
|
) {
|
|
|
this.$message.error("任务未解锁");
|
|
|
} else {
|
|
@@ -15701,8 +15871,9 @@ export default {
|
|
|
!this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
|
|
|
.isLook &&
|
|
|
this.courseDetail.userid != this.userid &&
|
|
|
- this.courseDetail.course_teacher &&
|
|
|
- this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
|
|
|
+ (!this.courseDetail.course_teacher ||
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
+ this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
|
|
|
this.IsLookOpen
|
|
|
) {
|
|
|
this.$message.error("任务未解锁");
|
|
@@ -15726,8 +15897,9 @@ export default {
|
|
|
if (
|
|
|
!this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
|
|
|
this.courseDetail.userid != this.userid &&
|
|
|
- this.courseDetail.course_teacher &&
|
|
|
- this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
|
|
|
+ (!this.courseDetail.course_teacher ||
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
+ this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
|
|
|
this.IsLookOpen
|
|
|
) {
|
|
|
this.$message.error("任务未解锁");
|
|
@@ -15743,8 +15915,9 @@ export default {
|
|
|
!this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
|
|
|
.isLook &&
|
|
|
this.courseDetail.userid != this.userid &&
|
|
|
- this.courseDetail.course_teacher &&
|
|
|
- this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
|
|
|
+ (!this.courseDetail.course_teacher ||
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
+ this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
|
|
|
this.IsLookOpen
|
|
|
) {
|
|
|
this.$message.error("任务未解锁");
|
|
@@ -15808,8 +15981,9 @@ export default {
|
|
|
if (
|
|
|
!this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
|
|
|
this.courseDetail.userid != this.userid &&
|
|
|
- this.courseDetail.course_teacher &&
|
|
|
- this.courseDetail.course_teacher.indexOf(this.userid) == -1
|
|
|
+ (!this.courseDetail.course_teacher ||
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
+ this.courseDetail.course_teacher.indexOf(this.userid) == -1))
|
|
|
) {
|
|
|
this.$message.error("任务未解锁");
|
|
|
return;
|
|
@@ -17508,6 +17682,16 @@ export default {
|
|
|
this.newEnglishList = { engTitle:"",engText:"" }
|
|
|
this.newEnglishList1 = []
|
|
|
this.selectEngC(id,z);
|
|
|
+ }else if(t == 62){
|
|
|
+ this.videoType = 1;
|
|
|
+ this.videoJson = {};
|
|
|
+ this.videoJson = JSON.parse(c);
|
|
|
+ // this.videoJson =
|
|
|
+ // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ // index
|
|
|
+ // ].toolChoose[i].videoJson;
|
|
|
+ this.dialogVisibleVideo = true;
|
|
|
+
|
|
|
}
|
|
|
// else if (t == 15) {
|
|
|
// this.answerQ = "";
|
|
@@ -18027,6 +18211,8 @@ export default {
|
|
|
this.islock = this.groupJson.islock == 1 ? true : false;
|
|
|
this.dialogVisibleGroup = true;
|
|
|
} else if (t == 62) {
|
|
|
+ this.videoType = 0;
|
|
|
+ this.videoJson = {};
|
|
|
this.videoJson =
|
|
|
this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
index
|
|
@@ -21325,9 +21511,10 @@ export default {
|
|
|
min-width: 15px;
|
|
|
width: 15px;
|
|
|
height: 15px;
|
|
|
+ display: flex;
|
|
|
}
|
|
|
.lastText {
|
|
|
- padding: 0 5px 2px 5px;
|
|
|
+ padding: 0 5px 0 5px;
|
|
|
box-sizing: border-box;
|
|
|
font-size: 14px;
|
|
|
}
|