|
@@ -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" });
|