From 6c1f0f5c76736072ad4da8e3925dd6c585f436aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Tue, 26 Sep 2023 16:43:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=BA=E6=99=AF=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/BoardTopNav/index.vue | 7 +- ruoyi-ui/src/views/board/equipment/index.vue | 10 +- .../views/board/equipmentMonitoring/index.vue | 144 ++++++++++-------- ruoyi-ui/src/views/board/senso/index.vue | 5 +- ruoyi-ui/src/views/board/smartScene/index.vue | 4 +- 5 files changed, 97 insertions(+), 73 deletions(-) diff --git a/ruoyi-ui/src/components/BoardTopNav/index.vue b/ruoyi-ui/src/components/BoardTopNav/index.vue index 14a2ccc..b898a30 100644 --- a/ruoyi-ui/src/components/BoardTopNav/index.vue +++ b/ruoyi-ui/src/components/BoardTopNav/index.vue @@ -72,7 +72,12 @@ export default { async mounted() { if (this.$route.name === 'SmartScene' || this.$route.name === 'GPS' || this.$route.name === 'index' || this.$store.getters.sceneId) { } else { - await this.$router.replace({path: "/board/index"}); + if (this.$store.state.user.permissions.includes('business:monitor:index') || this.$store.state.user.permissions.includes('*:*:*')) { + await this.$router.replace({path: "/board/index"}); + } else { + await this.$router.replace({path: "/board/smartScene"}); + this.$router.push({path: '/board/smartScene'}) + } } await this.setSelectSecnes() if (this.$route.name === 'SmartScene' || this.$route.name === 'GPS') { diff --git a/ruoyi-ui/src/views/board/equipment/index.vue b/ruoyi-ui/src/views/board/equipment/index.vue index 9d280b4..b1d2c4a 100644 --- a/ruoyi-ui/src/views/board/equipment/index.vue +++ b/ruoyi-ui/src/views/board/equipment/index.vue @@ -70,7 +70,7 @@