From c746783c4f570f9bdbe2d62b22bda22308b0dfba Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期一, 05 十二月 2022 15:27:35 +0800 Subject: [PATCH] 修复断流数据展示的内容 --- src/views/manageCenter/index.vue | 43 +++++++++++++++++++++++-------------------- 1 files changed, 23 insertions(+), 20 deletions(-) diff --git a/src/views/manageCenter/index.vue b/src/views/manageCenter/index.vue index 12dba17..97b7298 100644 --- a/src/views/manageCenter/index.vue +++ b/src/views/manageCenter/index.vue @@ -318,7 +318,23 @@ 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" + }, + + { + name: "鏁版嵁鎶ヨ〃", + icon: "/images/manageCenter/push.png", + openPath: "/dataReport", + path: "/dataReport", + permission: "" }, { @@ -330,10 +346,10 @@ }, { name: "鐐逛綅鍙樻洿", - icon: "/images/manageCenter/manage.png", + icon: "/images/manageCenter/cam.png", openPath: "/invalidCamera", path: "/invalidCamera", - permission: "invalidCamera" + permission: "positionMng" } ], cameraTree: [], @@ -758,23 +774,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) { - if (route.path === "/search" || route.path === "/dataView") { - const { href } = this.$router.resolve({ - path: route.path - }) - window.open(href, "_blank") - return - } - this.$router.push(route.path) - } else if (!userInfo.parentId) { - this.$router.push(route.openPath) - } + window.open(href, "_blank") }, refrash() {}, handleSizeChange() {}, @@ -868,7 +871,7 @@ display: flex; .productItem { - margin-right: 20px; + margin: 0px 10px; width: 190px; height: 90px; display: flex; -- Gitblit v1.8.0