lsc 2 years ago
parent
commit
bd760aebb8
2 changed files with 260 additions and 502 deletions
  1. 22 7
      src/components/GM/studyStudentGM.vue
  2. 238 495
      src/components/studyStudent.vue

+ 22 - 7
src/components/GM/studyStudentGM.vue

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

File diff suppressed because it is too large
+ 238 - 495
src/components/studyStudent.vue


Some files were not shown because too many files changed in this diff