|
@@ -3566,7 +3566,13 @@
|
|
|
|
|
|
<div slot="footer">
|
|
|
<el-button
|
|
|
- @click="(commentDialogVisible = false), (this.commentIndexJson = {})"
|
|
|
+ @click="
|
|
|
+ (commentDialogVisible = false),
|
|
|
+ (commentIndexJson = {}),
|
|
|
+ videoDetail.sources && videoDetail.sources[0]
|
|
|
+ ? (videoDetail.sources[0].src = '')
|
|
|
+ : ''
|
|
|
+ "
|
|
|
>取 消</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -3882,10 +3888,19 @@
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button
|
|
|
- @click="(dialogVisibleScore = false), (this.commentIndexJson = {})"
|
|
|
+ @click="
|
|
|
+ (dialogVisibleScore = false),
|
|
|
+ (commentIndexJson = {}),
|
|
|
+ videoDetail.sources && videoDetail.sources[0]
|
|
|
+ ? (videoDetail.sources[0].src = '')
|
|
|
+ : ''
|
|
|
+ "
|
|
|
>取 消</el-button
|
|
|
>
|
|
|
- <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ v-if="courseDetail.userid == userid"
|
|
|
+ @click="scoreWork(commentDetail.wid)"
|
|
|
>确 定</el-button
|
|
|
>
|
|
|
</span>
|
|
@@ -4539,8 +4554,8 @@ export default {
|
|
|
this.commentIndexJson = { toolIndex: toolIndex, wIndex: wIndex };
|
|
|
this.commentDetail = [];
|
|
|
this.commentDialogVisible = true;
|
|
|
+ this.commentDetail = w;
|
|
|
if (w.works && w.type == 1) {
|
|
|
- this.commentDetail = w;
|
|
|
this.pptImgUrl = "";
|
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
|
|
|
if (
|
|
@@ -4561,20 +4576,17 @@ export default {
|
|
|
this.pptImgUrl = w.works;
|
|
|
this.showPDF = true;
|
|
|
}
|
|
|
- } else if (w.works && w.type == 3 && this.commentDialogVisible == false) {
|
|
|
+ } else if (w.works && w.type == 3) {
|
|
|
this.videoDetail = {};
|
|
|
this.playerOptions1.sources[0].src = w.works;
|
|
|
this.videoDetail = this.playerOptions1;
|
|
|
- this.videoVisible = true;
|
|
|
+ // this.videoVisible = true;
|
|
|
} else if (w.works && w.type == 4) {
|
|
|
- this.commentDetail = w;
|
|
|
this.eScore = JSON.parse(w.works);
|
|
|
this.rateJson =
|
|
|
this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
this.taskCount
|
|
|
].toolChoose[toolIndex].rateJson;
|
|
|
- } else {
|
|
|
- this.commentDetail = w;
|
|
|
}
|
|
|
},
|
|
|
openScore(w) {
|
|
@@ -4583,8 +4595,9 @@ export default {
|
|
|
this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
|
|
|
this.commentDetail = [];
|
|
|
this.dialogVisibleScore = true;
|
|
|
+ this.commentDetail = w;
|
|
|
+
|
|
|
if (w.works && w.type == 1) {
|
|
|
- this.commentDetail = w;
|
|
|
this.pptImgUrl = "";
|
|
|
var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
|
|
|
if (
|
|
@@ -4605,13 +4618,10 @@ export default {
|
|
|
this.pptImgUrl = w.works;
|
|
|
this.showPDF = true;
|
|
|
}
|
|
|
- } else if (w.works && w.type == 3 && this.dialogVisibleScore == false) {
|
|
|
+ } else if (w.works && w.type == 3) {
|
|
|
this.videoDetail = {};
|
|
|
this.playerOptions1.sources[0].src = w.works;
|
|
|
this.videoDetail = this.playerOptions1;
|
|
|
- this.videoVisible = true;
|
|
|
- } else {
|
|
|
- this.commentDetail = w;
|
|
|
}
|
|
|
},
|
|
|
addComment(wid, uid, t) {
|
|
@@ -4945,8 +4955,8 @@ export default {
|
|
|
}
|
|
|
if (this.worksStudent[i] && this.worksStudent[i].length) {
|
|
|
this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
|
|
|
- let jscoreA = a.score ? JSON.parse(a.score).wScore : 0
|
|
|
- let jscoreB = b.score ? JSON.parse(b.score).wScore : 0
|
|
|
+ let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
|
|
|
+ let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
|
|
|
var scoreA = parseInt(jscoreA);
|
|
|
var scoreB = parseInt(jscoreB);
|
|
|
if (scoreA == scoreB) {
|