|
|
@ -56,14 +56,17 @@ export default { |
|
|
|
initTabs() { |
|
|
|
initTabs() { |
|
|
|
const btns = this.$store.state.btns |
|
|
|
const btns = this.$store.state.btns |
|
|
|
const tab1 = btns.includes('/match:管理:大赛详情') |
|
|
|
const tab1 = btns.includes('/match:管理:大赛详情') |
|
|
|
const tab2 = btns.includes('/match:管理:竞赛进展') |
|
|
|
const tab2 = btns.includes('/match:管理:大赛成绩管理') |
|
|
|
const tab3 = btns.includes('/match:管理:公告通知') |
|
|
|
const tab3 = btns.includes('/match:管理:竞赛进展') |
|
|
|
const tab4 = btns.includes('/match:管理:报名人员') |
|
|
|
const tab4 = btns.includes('/match:管理:公告通知') |
|
|
|
|
|
|
|
const tab5 = btns.includes('/match:管理:报名人员') |
|
|
|
|
|
|
|
|
|
|
|
tab1 || delete this.tabs.tab1 |
|
|
|
tab1 || this.$delete(this.tabs, 'tab1') |
|
|
|
tab2 || delete this.tabs.tab2 |
|
|
|
tab2 || this.$delete(this.tabs, 'tab2') |
|
|
|
tab3 || delete this.tabs.tab3 |
|
|
|
tab3 || this.$delete(this.tabs, 'tab3') |
|
|
|
tab4 || delete this.tabs.tab4 |
|
|
|
tab4 || this.$delete(this.tabs, 'tab4') |
|
|
|
|
|
|
|
tab5 || this.$delete(this.tabs, 'tab5') |
|
|
|
|
|
|
|
|
|
|
|
const type = this.$route.query.tab |
|
|
|
const type = this.$route.query.tab |
|
|
|
const keys = Object.keys(this.tabs) |
|
|
|
const keys = Object.keys(this.tabs) |
|
|
|
this.active = keys.includes(type) ? type : keys[0] |
|
|
|
this.active = keys.includes(type) ? type : keys[0] |
|
|
|