|
@@ -332,20 +332,16 @@
|
|
|
修改
|
|
|
</div> -->
|
|
|
<!-- 审批或者草稿的下一步 -->
|
|
|
- <div class="nextBtn" @click="gotoNext" v-if="!basdisabled">保存</div>
|
|
|
- <!-- <div
|
|
|
+ <div class="nextBtn" @click="gotoNext" v-if="!basdisabled">
|
|
|
+ {{ this.teamStatus == "teamDraft" ? "下一步" : "保存" }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
class="nextBtn"
|
|
|
- @click="
|
|
|
- () => {
|
|
|
- this.$router.push({
|
|
|
- query: merge(this.$route.query, { tabrouter: 2 }),
|
|
|
- });
|
|
|
- }
|
|
|
- "
|
|
|
- v-if="teamStatus == 'teamCanceled'"
|
|
|
+ v-if="this.teamStatus == 'teamAudit'"
|
|
|
+ @click="gotoNext"
|
|
|
>
|
|
|
下一步
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -699,16 +695,12 @@ export default {
|
|
|
// 判断一下是否勾选了课程类型而没有输入金额
|
|
|
// 验证通过
|
|
|
this.$store.dispatch("topinfo", this.topFrom);
|
|
|
- // if (this.teamStatus == "teamDraft") {
|
|
|
- // // 获取数据提交
|
|
|
- // } else {
|
|
|
- // // this.resetSubmit();
|
|
|
- // console.log("来了");
|
|
|
- // this.$router.push({
|
|
|
- // query: merge(this.$route.query, { tabrouter: 2 }),
|
|
|
- // });
|
|
|
- // }
|
|
|
- this.resetSubmit();
|
|
|
+ if (this.teamStatus == "teamAudit") {
|
|
|
+ // 获取数据提交
|
|
|
+ this.$emit("handleClick", { name: "2" });
|
|
|
+ } else {
|
|
|
+ this.resetSubmit();
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -782,6 +774,7 @@ export default {
|
|
|
this.setStore();
|
|
|
if (this.teamStatus == "teamDraft") {
|
|
|
this.$message.success("保存成功");
|
|
|
+ this.$emit("handleClick", { name: "2" });
|
|
|
// 跳到第二页
|
|
|
} else {
|
|
|
this.$message.success("修改乐团成功");
|
|
@@ -810,19 +803,19 @@ export default {
|
|
|
customClass: "messageBox-prompt-test",
|
|
|
})
|
|
|
.then(() => {
|
|
|
- this.$router.push({
|
|
|
- query: merge(
|
|
|
- this.$route.query,
|
|
|
- {
|
|
|
+ this.$router.push(
|
|
|
+ {
|
|
|
+ query: merge(this.$route.query, {
|
|
|
type: "teamDraft",
|
|
|
id: res.data,
|
|
|
team_status: "DRAFT",
|
|
|
- },
|
|
|
- ),
|
|
|
- },(router) => {
|
|
|
- console.log(router)
|
|
|
- router.meta.title = "乐团编辑中";
|
|
|
- });
|
|
|
+ }),
|
|
|
+ },
|
|
|
+ (router) => {
|
|
|
+ console.log(router);
|
|
|
+ router.meta.title = "乐团编辑中";
|
|
|
+ }
|
|
|
+ );
|
|
|
|
|
|
this.$emit("getName", this.topFrom.name);
|
|
|
this.$emit("handleClick", { name: "2" });
|