|
|
|
@ -42,7 +42,6 @@ export default { |
|
|
|
|
tab3: "竞赛进展", |
|
|
|
|
tab4: "公告通知", |
|
|
|
|
tab5: "报名人员", |
|
|
|
|
tab6: '查看异常团队' |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -55,11 +54,11 @@ export default { |
|
|
|
|
AbnormalTeam |
|
|
|
|
}, |
|
|
|
|
mounted () { |
|
|
|
|
if (Setting.dynamicRoute) { |
|
|
|
|
// if (Setting.dynamicRoute) { |
|
|
|
|
this.initTabs() |
|
|
|
|
} else { |
|
|
|
|
this.active = this.$route.query.tab || 'tab1' |
|
|
|
|
} |
|
|
|
|
// } else { |
|
|
|
|
// this.active = this.$route.query.tab || 'tab1' |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
async initTabs () { |
|
|
|
@ -77,7 +76,12 @@ export default { |
|
|
|
|
tab3 || this.$delete(this.tabs, 'tab3') |
|
|
|
|
tab4 || this.$delete(this.tabs, 'tab4') |
|
|
|
|
tab5 || this.$delete(this.tabs, 'tab5') |
|
|
|
|
res.competition.completeCompetitionSetup.competitionType || this.$delete(this.tabs, 'tab6') |
|
|
|
|
|
|
|
|
|
if (res.competition.completeCompetitionSetup.competitionType) { |
|
|
|
|
this.tabs.tab6 || this.$set(this.tabs, 'tab6', '查看异常团队') |
|
|
|
|
} else { |
|
|
|
|
this.tabs.tab6 && this.$delete(this.tabs, 'tab6') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const type = this.$route.query.tab |
|
|
|
|
const keys = Object.keys(this.tabs) |
|
|
|
|