|
|
@@ -199,6 +199,12 @@
|
|
|
if (this.$route.query.leagueId) {
|
|
|
this.leagueId = Number(this.$route.query.leagueId);
|
|
|
}
|
|
|
+ if (Number(this.userInfo.roleId) === 13) {
|
|
|
+ this.leagueId = 1;
|
|
|
+ this.$router.replace({
|
|
|
+ query: {...this.$route.query, leagueId: 1}
|
|
|
+ })
|
|
|
+ }
|
|
|
this.getData();
|
|
|
},
|
|
|
data() {
|
|
|
@@ -261,7 +267,7 @@
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState(['tableHeight']),
|
|
|
+ ...mapState(['tableHeight', 'userInfo']),
|
|
|
selection() {
|
|
|
return this.$refs.table.selection.map(i => i.id);
|
|
|
}
|