mo 4 лет назад
Родитель
Сommit
5417e9caca

+ 1 - 1
src/layout/components/AppMain.vue

@@ -3,7 +3,7 @@
     <!--   -->
     <transition name="fade-transform" mode="out-in">
       <div>
-        <keep-alive>
+        <keep-alive >
           <router-view :key="key" v-if="needKeep" />
         </keep-alive>
         <router-view v-if="!needKeep" :key="key" />

+ 6 - 2
src/views/teamBuild/components/teamBaseInfo.vue

@@ -407,9 +407,10 @@ export default {
   },
   activated() {
     // console.log('直接进编辑')
-    if (this.teamid && this.teamid != this.$route.query.id||this.teamStatus !=this.$route.query.type) {
-      this.init();
+    if (this.teamid && this.teamid != this.$route.query.id || this.teamStatus !=this.$route.query.type) {
+          this.init();
     }
+
     if (this.$route.query.clear == 'true') {
 
       this.onReset();
@@ -434,6 +435,9 @@ export default {
         this.basdisabled = false;
       }
   },
+  deactivated() {
+    this.teamStatus = 'dis'
+  },
 
   methods: {
     //|| this.teamStatus === 'teamAudit'

+ 1 - 1
src/views/teamBuild/index.vue

@@ -88,6 +88,7 @@ export default {
   },
   destroyed() {
     this.showSecond=false
+    console.log('页面销毁')
   },
 
   methods: {
@@ -105,7 +106,6 @@ export default {
         this.pageName = "乐团修改";
         this.activeIndex = this.$store.getters.draftIndex || 0
       }
-      console.log(this.activeIndex,this.$store.getters.buildIndex)
     },
     chiosetab (val) {
       this.activeIndex = val;

+ 1 - 1
src/views/teamBuild/teamDraft.vue

@@ -71,7 +71,7 @@ import teamPayInfo from "@/views/teamBuild/components/teamPayInfo";
 import merge from "webpack-merge";
 export default {
   components: { teamBaseInfo, teamSoundMoney, teamPayInfo },
-  name: "teamBuild",
+  name: "teamDraft",
   data () {
     return {
       activeIndex: 0,

+ 1 - 0
src/views/teamDetail/index.vue

@@ -98,6 +98,7 @@ export default {
 
   },
 
+
   methods: {
     permission (str) {
       return permission(str)

+ 1 - 0
src/views/teamDetail/teamList.vue

@@ -703,6 +703,7 @@ export default {
         case "DRAFT": {
           // 编辑中
           this.$store.dispatch("draftIndex", 0);
+          // teamBaseInfo
           this.$router.push(
             {
               path: "/business/teamDraft",