From ac2f0de24a154b235ca55999bbbf120f1c77f7d7 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期一, 26 九月 2022 14:03:38 +0800 Subject: [PATCH] 摄像机管理 添加独立场景 场景名称 input改 select --- src/views/manageCenter/index.vue | 37 ++++++++++++++++--------------------- 1 files changed, 16 insertions(+), 21 deletions(-) diff --git a/src/views/manageCenter/index.vue b/src/views/manageCenter/index.vue index 45af064..8331a65 100644 --- a/src/views/manageCenter/index.vue +++ b/src/views/manageCenter/index.vue @@ -316,9 +316,17 @@ { name: "鐢ㄦ埛绠$悊", icon: "/images/manageCenter/push.png", - openPath: "/report", - path: "/report", - permission: "dataPushMng" + openPath: "/subAccount", + path: "/subAccount", + permission: "subAccount" + }, + + { + name: "鏁版嵁鎺ㄩ��", + icon: "/images/manageCenter/push.png", + openPath: "/dataPush", + path: "/dataPush", + permission: "dataPush" }, { @@ -330,7 +338,7 @@ }, { name: "鐐逛綅鍙樻洿", - icon: "/images/manageCenter/manage.png", + icon: "/images/manageCenter/cam.png", openPath: "/invalidCamera", path: "/invalidCamera", permission: "invalidCamera" @@ -758,23 +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) { - 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 +863,7 @@ display: flex; .productItem { - margin-right: 20px; + margin: 0px 10px; width: 190px; height: 90px; display: flex; -- Gitblit v1.8.0