xiongzhu %!s(int64=6) %!d(string=hai) anos
pai
achega
966e727c27

+ 7 - 1
src/main/vue/src/pages/Banners.vue

@@ -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);
             }

+ 7 - 1
src/main/vue/src/pages/MatchInfos.vue

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

+ 7 - 1
src/main/vue/src/pages/PersonMetadatas.vue

@@ -228,6 +228,12 @@
             if (this.$route.query.teamId) {
                 this.teamId = Number(this.$route.query.teamId);
             }
+            if (Number(this.userInfo.roleId) === 12) {
+                this.leagueId = 1;
+                this.$router.replace({
+                    query: {...this.$route.query, leagueId: 1}
+                })
+            }
             this.getData();
             this.$http.get({
                 url: '/leagueInfo/all'
@@ -331,7 +337,7 @@
             }
         },
         computed: {
-            ...mapState(['tableHeight']),
+            ...mapState(['tableHeight', 'userInfo']),
             selection() {
                 return this.$refs.table.selection.map(i => i.id);
             }

+ 7 - 1
src/main/vue/src/pages/TeamMetadatas.vue

@@ -238,6 +238,12 @@
             if (this.$route.query.matchId) {
                 this.matchId = Number(this.$route.query.matchId);
             }
+            if (Number(this.userInfo.roleId) === 12) {
+                this.leagueId = 1;
+                this.$router.replace({
+                    query: {...this.$route.query, leagueId: 1}
+                })
+            }
             this.getData();
             this.$http.get({
                 url: '/leagueInfo/all'
@@ -333,7 +339,7 @@
             }
         },
         computed: {
-            ...mapState(['tableHeight']),
+            ...mapState(['tableHeight', 'userInfo']),
             selection() {
                 return this.$refs.table.selection.map(i => i.id);
             }