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() { 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("修改成功");
this.$router.back(); if(judge) {
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("创建成功");
this.$router.back(); if(judge) {
this.$router.back();
}
}).catch(err => { }).catch(err => {
}); });
} }

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

Loading…
Cancel
Save