浏览代码

记录 然后准备把老数据拿回来

1
mo 2 年之前
父节点
当前提交
5e7fa7ebdb
共有 1 个文件被更改,包括 20 次插入15 次删除
  1. 20 15
      src/views/afterSchoolManager/afterWorkList.vue

+ 20 - 15
src/views/afterSchoolManager/afterWorkList.vue

@@ -461,22 +461,27 @@ export default {
       //   this.afterSchoolVisible = true;
       //    (row)
       this.activeRow = row;
+      console.log(row.versionTag, "-======>");
       if (row.versionTag == "v1") {
-        findStudentExtraExerciseDetail({
-          studentExerciseId: row.id,
-        }).then((res) => {
-          if (res.code == 200) {
-            this.visibleForm = {
-              expiryDate: res.data.expiryDate,
-              teacherName: res.data.teacherName,
-              title: row.extracurricularExercises.title,
-              studentName: res.data.studentName,
-              content: res.data.content,
-              attachments: res.data.attachments.split(","),
-            };
-            //    (this.visibleForm)
-            this.afterSchoolVisible = true;
-          }
+        // findStudentExtraExerciseDetail({
+        //   studentExerciseId: row.id,
+        // }).then((res) => {
+        //   if (res.code == 200) {
+        //     this.visibleForm = {
+        //       expiryDate: res.data.expiryDate,
+        //       teacherName: res.data.teacherName,
+        //       title: row.title,
+        //       studentName: res.data.studentName,
+        //       content: res.data.content,
+        //       attachments: res.data.attachments.split(","),
+        //     };
+        //     //    (this.visibleForm)
+        //     this.afterSchoolVisible = true;
+        //   }
+        // });
+        this.$router.push({
+          path: "/business/afterSchoolDetail",
+          query: { extracurricularExercisesId: row.id, title: row.title },
         });
       } else {
         this.classVisible = true;