Browse Source

关闭多余窗口

lex-xin 4 years ago
parent
commit
f98b2c969d

+ 3 - 4
src/views/teamBuild/components/soundSetComponents/soundSetCore.vue

@@ -468,11 +468,9 @@ export default {
               this.teamid = res.data
               this.submitInfo(1)
             }).catch(() => {
+              this.$store.dispatch('delVisitedViews', this.$route)
               this.$router.push({
-                path: '/business/teamDetail',
-                query: {
-                  ...query
-                }
+                path: '/business/teamDetail'
               })
             });
           }
@@ -493,6 +491,7 @@ export default {
 
             // 创建乐团,只会到声部了
             let query = this.$route.query
+            this.$store.dispatch('delVisitedViews', this.$route)
             this.$router.push({
               path: '/business/teamDetail',
               query: {

+ 11 - 7
src/views/teamBuild/components/teamSoundSet.vue

@@ -18,7 +18,6 @@
           child: 'musicGroup/createGroup',
           parent: '/teamBuild/soundMoney',
         }">提交</el-button>
-      <el-button type="primary" v-if="teamStatus == 'feeAudit'" @click="goHome">确定</el-button>
       <el-button type="primary" @click="submitAudit(1)" v-if="teamStatus == 'teamDraft'">提交审核</el-button>
       <el-button type="primary" @click="approval"
            v-if="teamStatus == 'teamAudit'"
@@ -116,7 +115,15 @@ export default {
       this.$emit("chiosetab", val);
     },
     submitAudit (val) {
-      this.$refs.soundSetCore.submitInfo(val);
+      this.$confirm(`是否提交审核?`, "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+          this.$refs.soundSetCore.submitInfo(val);
+        })
+        .catch(() => { });
     },
     selectMusic() {
       this.$refs.soundSetCore.submitInfo()
@@ -129,11 +136,6 @@ export default {
     getBaseInfo (baseInfo) {
       this.$emit('getBaseInfo', baseInfo)
     },
-    goHome() {
-      // console.log(this.$route.path)
-      this.$router.push({ path: "/business/teamDetail" });
-      // this.$store.dispatch('delVisitedViews', this.$route.path)
-    },
     approval () {
       this.$confirm(`是否审核通过?`, "提示", {
         confirmButtonText: "确定",
@@ -144,6 +146,7 @@ export default {
           auditSuccess({ musicGroupId: this.teamid }).then((res) => {
             if (res.code == 200) {
               this.$message.success("审核通过");
+              this.$store.dispatch('delVisitedViews', this.$route)
               this.$router.push({
                 path: "/business/teamDetail",
                 query: { search: this.Fsearch, rules: this.Frules },
@@ -167,6 +170,7 @@ export default {
           auditFailed({ musicGroupId: this.teamid, memo: value }).then(res => {
             if (res.code == 200) {
               this.$message.success("已拒绝");
+              this.$store.dispatch('delVisitedViews', this.$route)
               this.$router.push({
                 path: "/business/teamDetail",
                 query: { search: this.Fsearch, rules: this.Frules }

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

@@ -392,7 +392,9 @@ export default {
     createNewTeam () {
       let search = JSON.stringify(this.topForm)
       let rules = JSON.stringify(this.rules)
-      this.$router.push({ path: '/business/teamBuild', query: { type: 'newTeam', } })
+      this.$router.push({ path: '/business/teamBuild', query: { type: 'newTeam', } }, router => {
+        router.meta.title = '新建乐团'
+      })
     },
     resetTeam () {
       // 这里还有勾选的乐团信息