From 2ec95b3d2fd484b44d5274054bcbd78307a76ef8 Mon Sep 17 00:00:00 2001 From: mark <mark18340872469@163.com> Date: 星期五, 30 九月 2022 14:04:12 +0800 Subject: [PATCH] 报警推送日志 --- src/views/manageCenter/index.vue | 29 +++++++++++++---------------- 1 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/views/manageCenter/index.vue b/src/views/manageCenter/index.vue index fa34a73..e688e33 100644 --- a/src/views/manageCenter/index.vue +++ b/src/views/manageCenter/index.vue @@ -318,7 +318,15 @@ icon: "/images/manageCenter/push.png", openPath: "/subAccount", path: "/subAccount", - permission: "subAccount" + permission: "accountMng" + }, + + { + name: "鏁版嵁鎺ㄩ��", + icon: "/images/manageCenter/push.png", + openPath: "/dataPush", + path: "/dataPush", + permission: "reportMng" }, { @@ -333,7 +341,7 @@ icon: "/images/manageCenter/cam.png", openPath: "/invalidCamera", path: "/invalidCamera", - permission: "invalidCamera" + permission: "positionMng" } ], cameraTree: [], @@ -758,21 +766,10 @@ this.pieChart.setOption(this.pieOption) }, jump(route) { - const userInfo = JSON.parse(sessionStorage.getItem("userInfo")) - - const val = userInfo.permissions.find((item) => { - return item == route.permission + const { href } = this.$router.resolve({ + path: route.path }) - - // 淇敼涓哄叏閮ㄥ湪鏂版爣绛鹃〉鎵撳紑 - if (val) { - const { href } = this.$router.resolve({ - path: route.path - }) - window.open(href, "_blank") - } else if (!userInfo.parentId) { - this.$router.push(route.openPath) - } + window.open(href, "_blank") }, refrash() {}, handleSizeChange() {}, -- Gitblit v1.8.0