Sfoglia il codice sorgente

修复跳转和去除乐团

1
mo 2 anni fa
parent
commit
bd5cdc6110

+ 1 - 1
src/views/afterSchoolManager/afterSchoolList.vue

@@ -325,7 +325,7 @@ export default {
       if (row.versionTag == "v1") {
         this.$router.push({
           path: "/business/afterSchoolDetailold",
-          query: { extracurricularExercisesId: row.id, title: row.title },
+          query: { extracurricularExercisesId: row.id, title: row.title, activeIndex: 1 },
         });
       } else {
         this.classVisible = true;

+ 1 - 1
src/views/afterSchoolManager/afterWorkList.vue

@@ -481,7 +481,7 @@ export default {
         // });
         this.$router.push({
           path: "/business/afterSchoolDetailold",
-          query: { extracurricularExercisesId: row.id, title: row.title },
+          query: { extracurricularExercisesId: row.id, title: row.title, activeIndex: 2 },
         });
       } else {
         this.classVisible = true;

+ 2 - 2
src/views/afterSchoolManager/components/courseWorkeDetail.vue

@@ -15,12 +15,12 @@
       </div>
     </div>
     <el-descriptions class="margin-top" :column="3" direction="vertical">
-      <el-descriptions-item
+      <!-- <el-descriptions-item
         label="乐团"
         label-class-name="my-label"
         content-class-name="my-content"
         >{{ courseDetail.musicGroupName }}</el-descriptions-item
-      >
+      > -->
       <!-- <el-descriptions-item
         label="课程编号"
         label-class-name="my-label"

+ 5 - 3
src/views/afterSchoolManager/index.vue

@@ -41,10 +41,12 @@ export default {
   },
   methods: {
     init() {
-      this.$route.query.activeIndex
-        ? (this.activeIndex = this.$route.query.activeIndex)
-        : this.activeIndex;
+      if (this.$route.query.activeIndex) {
+        this.activeIndex = this.$route.query.activeIndex + "";
+      }
+      console.log();
     },
+
     handleClick(val) {
       this.activeIndex = val.name;
     },

+ 6 - 1
src/views/afterSchoolManager/oldafterScDetail.vue

@@ -19,6 +19,7 @@ export default {
     return {
       title: "",
       id: null,
+      activeIndex: "",
     };
   },
   //生命周期 - 挂载完成(可以访问DOM元素)
@@ -29,10 +30,14 @@ export default {
     init() {
       this.title = this.$route.query.title;
       this.id = this.$route.query.extracurricularExercisesId;
+      this.activeIndex = this.$route.query.activeIndex;
     },
     goBack() {
       this.$store.dispatch("delVisitedViews", this.$route);
-      this.$router.push({ path: "/afterSchoolManager" });
+      this.$router.push({
+        path: "/afterSchoolManager",
+        query: { tabrouter: this.activeIndex },
+      });
     },
   },
 };