|
@@ -2319,7 +2319,7 @@
|
|
|
<div>{{ w.likesCount }}</div>
|
|
|
</div>
|
|
|
<div class="commentList" style="margin-right: 15px">
|
|
|
- <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
|
|
|
+ <div class="commentImg" @click="commentOther(w, toolIndex, wIndex, gindex)">
|
|
|
<img src="../assets/icon/comment/comment.png" alt="" />
|
|
|
</div>
|
|
|
<div>{{ w.commentCount }}</div>
|
|
@@ -4216,14 +4216,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
addCourseWorksPl(i) {
|
|
|
- let _files = this.plworkFile
|
|
|
+ let _files = this.plworkFile
|
|
|
var c = 1
|
|
|
- for(var k=0;k<_files.length;k++){
|
|
|
- if(!_files[k].username){
|
|
|
+ for (var k = 0; k < _files.length; k++) {
|
|
|
+ if (!_files[k].username) {
|
|
|
c = 2
|
|
|
}
|
|
|
}
|
|
|
- if(c == 2){
|
|
|
+ if (c == 2) {
|
|
|
this.$message.error("请填写学生姓名");
|
|
|
return;
|
|
|
}
|
|
@@ -4374,6 +4374,8 @@ export default {
|
|
|
!this.dialogVisibleScore
|
|
|
) {
|
|
|
let a = 1
|
|
|
+ let c = this.commentIndexJson
|
|
|
+ console.log(c);
|
|
|
if (this.commentIndexJson.gindex || this.commentIndexJson.gindex === 0) {
|
|
|
for (var i = 0; i < this.worksStudent[this.commentIndexJson.toolIndex].length; i++) {
|
|
|
let _el = this.worksStudent[this.commentIndexJson.toolIndex][i]
|
|
@@ -4630,7 +4632,7 @@ export default {
|
|
|
userid: b[j].userid,
|
|
|
wid: b[j].id,
|
|
|
});
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -5364,27 +5366,26 @@ export default {
|
|
|
commentJson: commentJson,
|
|
|
});
|
|
|
}
|
|
|
- }else if( a[i].tool[0] == 50 && b[j].atool == 50) {
|
|
|
- this.worksStudent[i].push({
|
|
|
- userid: b[j].userid,
|
|
|
- ateacher: b[j].ateacher,
|
|
|
- wid: b[j].id,
|
|
|
- works: b[j].content,
|
|
|
- sName: b[j].userid,
|
|
|
- type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
|
|
|
- time: b[j].time,
|
|
|
- score: b[j].score,
|
|
|
- img: b[j].img,
|
|
|
- likesCount: likesCount,
|
|
|
- commentCount: commentCount,
|
|
|
- isLikes: isLikes,
|
|
|
- commentJson: commentJson,
|
|
|
- });
|
|
|
- }
|
|
|
+ } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
|
|
|
+ this.worksStudent[i].push({
|
|
|
+ userid: b[j].userid,
|
|
|
+ ateacher: b[j].ateacher,
|
|
|
+ wid: b[j].id,
|
|
|
+ works: b[j].content,
|
|
|
+ sName: b[j].userid,
|
|
|
+ type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
|
|
|
+ time: b[j].time,
|
|
|
+ score: b[j].score,
|
|
|
+ img: b[j].img,
|
|
|
+ likesCount: likesCount,
|
|
|
+ commentCount: commentCount,
|
|
|
+ isLikes: isLikes,
|
|
|
+ commentJson: commentJson,
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
|
|
|
}
|
|
|
- console.log(this.worksStudent);
|
|
|
}
|
|
|
if (this.worksStudent[i] && this.worksStudent[i].length) {
|
|
|
this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
|