dev_2022-05-11
luoJunYong.123 3 years ago
parent 27b43929dc
commit b32c0de3e1
  1. 13
      src/pages/match/manage/matchDetail.vue
  2. 8
      src/pages/project/list/index.vue

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

@ -167,6 +167,10 @@ export default {
2: "竞赛"
},
founderList: [
{
value: 2,
label: "全部"
},
{
value: 0,
label: "系统"
@ -174,10 +178,6 @@ export default {
{
value: 1,
label: "老师"
},
{
value: 2,
label: "全部"
}
],
founderKeys: {

Loading…
Cancel
Save