From 15425636aaa118c138d3a1845cef635ad220d1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 21 Sep 2023 09:18:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/BoardTopNav/index.vue | 10 ++++++++-- ruoyi-ui/src/components/RuoYi/Git/index.vue | 6 +++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/components/BoardTopNav/index.vue b/ruoyi-ui/src/components/BoardTopNav/index.vue index bc82330..69d4777 100644 --- a/ruoyi-ui/src/components/BoardTopNav/index.vue +++ b/ruoyi-ui/src/components/BoardTopNav/index.vue @@ -2,7 +2,7 @@
智慧物联监控平台
-
+
监控主页 @@ -52,7 +52,8 @@ export default { data() { return { selectSecnesList: [], - name: '智慧场景' + name: '智慧场景', + isIndex : true } }, props: { @@ -63,6 +64,11 @@ export default { }, mounted() { + if(this.$store.state.user.permissions.includes('business:monitor:index') || this.$store.state.user.permissions.includes('*:*:*')){ + this.isIndex = true + }else{ + this.isIndex = false + } this.setSelectSecnes() if (this.$route.name === 'SmartScene') { if (this.$route.query?.name) { diff --git a/ruoyi-ui/src/components/RuoYi/Git/index.vue b/ruoyi-ui/src/components/RuoYi/Git/index.vue index d1c3f8e..589b379 100644 --- a/ruoyi-ui/src/components/RuoYi/Git/index.vue +++ b/ruoyi-ui/src/components/RuoYi/Git/index.vue @@ -14,7 +14,11 @@ export default { }, methods: { goto() { - this.$router.push({path: "/board/index"}); + if(this.$store.state.user.permissions.includes('business:monitor:index') || this.$store.state.user.permissions.includes('*:*:*')){ + this.$router.push({path: "/board/index"}); + }else{ + this.$router.push({path:'/broad/smartScene'}) + } } } }