|
|
@ -171,7 +171,6 @@ export default { |
|
|
|
test() { |
|
|
|
test() { |
|
|
|
this.$store.commit("match/setWait", 0); |
|
|
|
this.$store.commit("match/setWait", 0); |
|
|
|
// console.log(this.$store.state.match.waitIndex) |
|
|
|
// console.log(this.$store.state.match.waitIndex) |
|
|
|
console.log('testClick') |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
...mapActions("match", [ |
|
|
|
...mapActions("match", [ |
|
|
|
"setMatchId" |
|
|
|
"setMatchId" |
|
|
@ -182,7 +181,7 @@ export default { |
|
|
|
cancelButtonText: '取消', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
this.save(1) |
|
|
|
this.save(1, false) |
|
|
|
EventBus.$emit('tabChangeWait', this.$store.state.match.waitIndex) |
|
|
|
EventBus.$emit('tabChangeWait', this.$store.state.match.waitIndex) |
|
|
|
}).catch(() => { |
|
|
|
}).catch(() => { |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
@ -193,7 +192,7 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
save(status) { |
|
|
|
save(status, judge=true) { |
|
|
|
this.touchTime = 0 |
|
|
|
this.touchTime = 0 |
|
|
|
this.sponsor = this.sponsorList.filter(d => d).join(); |
|
|
|
this.sponsor = this.sponsorList.filter(d => d).join(); |
|
|
|
this.undertaker = this.undertakerList.filter(d => d).join(); |
|
|
|
this.undertaker = this.undertakerList.filter(d => d).join(); |
|
|
@ -228,13 +227,17 @@ export default { |
|
|
|
if (this.id) { |
|
|
|
if (this.id) { |
|
|
|
this.$put(this.api.editContest, data).then(res => { |
|
|
|
this.$put(this.api.editContest, data).then(res => { |
|
|
|
util.successMsg("修改成功"); |
|
|
|
util.successMsg("修改成功"); |
|
|
|
|
|
|
|
if(judge) { |
|
|
|
this.$router.back(); |
|
|
|
this.$router.back(); |
|
|
|
|
|
|
|
} |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.$post(this.api.addContest, data).then(res => { |
|
|
|
this.$post(this.api.addContest, data).then(res => { |
|
|
|
util.successMsg("创建成功"); |
|
|
|
util.successMsg("创建成功"); |
|
|
|
|
|
|
|
if(judge) { |
|
|
|
this.$router.back(); |
|
|
|
this.$router.back(); |
|
|
|
|
|
|
|
} |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|