소스 검색

修改tag名称

1
mo 4 년 전
부모
커밋
30c7eca73d

+ 8 - 2
src/views/resetTeaming/index.vue

@@ -268,7 +268,10 @@ export default {
     },
     getBaseInfo(baseInfo) {
       this.baseInfo = baseInfo;
-      this.teamName = baseInfo?.musicGroup?.name;
+      if(baseInfo?.musicGroup?.name){
+         this.teamName = baseInfo?.musicGroup?.name;
+      }
+
       this.musicGroupInfo = baseInfo?.musicGroup;
     },
     handleClick(val) {
@@ -282,7 +285,10 @@ export default {
       return permission(str);
     },
     getName(val) {
-      this.teamName = val;
+      if(val){
+         this.teamName = val;
+      }
+
       this.teamid = this.$route.query.id;
     },
   },

+ 2 - 1
src/views/teamBuild/components/soundSetComponents/soundSetCore.vue

@@ -302,7 +302,8 @@ export default {
     getDefaultSubject(){
       this.topfor = JSON.parse(
           localStorage.getItem(`${this.$route.query.id}base`)
-        );
+        )||this.$store.getters.topinfo;
+       console.log(this.topfor)
       let type = this.topfor.type;
       let section = this.topfor.section;
        getDefaultSubject({

+ 27 - 28
src/views/teamBuild/components/teamBaseInfo.vue

@@ -332,13 +332,7 @@
           修改
         </div> -->
         <!-- 审批或者草稿的下一步 -->
-        <div
-          class="nextBtn"
-          @click="gotoNext"
-          v-if="!basdisabled"
-        >
-          保存
-        </div>
+        <div class="nextBtn" @click="gotoNext" v-if="!basdisabled">保存</div>
         <!-- <div
           class="nextBtn"
           @click="
@@ -461,7 +455,7 @@ export default {
       codeStatus: false,
       qrCodeUrl: null,
       codeTitle: null,
-      teamid:''
+      teamid: "",
     };
   },
   created() {},
@@ -505,23 +499,23 @@ export default {
     }
   },
   deactivated() {
-    console.log('laile')
+    console.log("laile");
   },
   beforeDestroy() {
     // this.topFrom.paymentExpireDate = this.paymentExpireDate;
-   this.setStore()
+    this.setStore();
   },
 
   methods: {
-    setStore(){
-       if (this.teamid) {
-      localStorage.setItem(
-        `${this.teamid}base`,
-        JSON.stringify(this.topFrom)
-      );
-    } else {
-      localStorage.setItem(`newTeambase`, JSON.stringify(this.topFrom));
-    }
+    setStore() {
+      if (this.teamid) {
+        localStorage.setItem(
+          `${this.teamid}base`,
+          JSON.stringify(this.topFrom)
+        );
+      } else {
+        localStorage.setItem(`newTeambase`, JSON.stringify(this.topFrom));
+      }
     },
     //|| this.teamStatus === 'teamAudit'
     isNotEditing: function () {
@@ -590,7 +584,6 @@ export default {
         );
 
         if (!sotrage?.section) {
-
           getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
             if (res.code == 200) {
               // if (this.$listeners.getBaseInfo) {
@@ -786,7 +779,7 @@ export default {
           if (this.teamStatus != "newTeam") {
             resetTeamBaseInfo(obj).then((res) => {
               if (res.code == 200) {
-                 this.setStore()
+                this.setStore();
                 if (this.teamStatus == "teamDraft") {
                   this.$message.success("保存成功");
                   // 跳到第二页
@@ -807,7 +800,7 @@ export default {
                 this.$msgbox({
                   title: "提示",
                   message: h("p", null, [
-                    h("p", null, "新建团成功 "),
+                    h("p", null, "新建团成功 "),
                     h("p", null, "请设置声部信息"),
                   ]),
                   type: "warning",
@@ -818,12 +811,18 @@ export default {
                 })
                   .then(() => {
                     this.$router.push({
-                      query: merge(this.$route.query, {
-                        type: "teamDraft",
-                        id: res.data,
-                        team_status: "DRAFT",
-                      }),
-                    });
+                      query: merge(
+                        this.$route.query,
+                        {
+                          type: "teamDraft",
+                          id: res.data,
+                          team_status: "DRAFT",
+                        },
+                      ),
+                    },(router) => {
+                          console.log(router)
+                          router.meta.title = "乐团编辑中";
+                        });
 
                     this.$emit("getName", this.topFrom.name);
                     this.$emit("handleClick", { name: "2" });