|
@@ -4893,16 +4893,31 @@ export default {
|
|
|
}
|
|
|
this.$forceUpdate();
|
|
|
if (
|
|
|
+ Object.keys(this.commentDetail).length &&
|
|
|
Object.keys(this.commentIndexJson).length &&
|
|
|
!this.dialogVisibleScore
|
|
|
) {
|
|
|
- this.commentOther(
|
|
|
- this.worksStudent[this.commentIndexJson.toolIndex][
|
|
|
- this.commentIndexJson.wIndex
|
|
|
- ],
|
|
|
- this.commentIndexJson.toolIndex,
|
|
|
- this.commentIndexJson.wIndex
|
|
|
- );
|
|
|
+ let a = 1
|
|
|
+ for (var i = 0; i < this.worksStudent[this.commentIndexJson.toolIndex].length; i++) {
|
|
|
+ let el = this.worksStudent[this.commentIndexJson.toolIndex][i]
|
|
|
+ if (el.wid == this.commentDetail.wid) {
|
|
|
+ a = 2
|
|
|
+ this.commentOther(
|
|
|
+ this.worksStudent[this.commentIndexJson.toolIndex][
|
|
|
+ i
|
|
|
+ ],
|
|
|
+ this.commentIndexJson.toolIndex,
|
|
|
+ i
|
|
|
+ );
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(a === 1){
|
|
|
+ this.commentDetail = []
|
|
|
+ this.commentIndexJson = {}
|
|
|
+ this.commentDialogVisible = false;
|
|
|
+ this.$message("此作业已被删除")
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|