lsc %!s(int64=2) %!d(string=hai) anos
pai
achega
bd760aebb8
Modificáronse 2 ficheiros con 260 adicións e 502 borrados
  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) => {

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 238 - 495
src/components/studyStudent.vue


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio