| | |
| | | { |
| | | name: "用户管理", |
| | | icon: "/images/manageCenter/push.png", |
| | | openPath: "/report", |
| | | path: "/report", |
| | | permission: "dataPushMng" |
| | | openPath: "/subAccount", |
| | | path: "/subAccount", |
| | | permission: "accountMng" |
| | | }, |
| | | |
| | | { |
| | | name: "数据推送", |
| | | icon: "/images/manageCenter/push.png", |
| | | openPath: "/dataPush", |
| | | path: "/dataPush", |
| | | permission: "reportMng" |
| | | }, |
| | | |
| | | { |
| | |
| | | }, |
| | | { |
| | | name: "点位变更", |
| | | icon: "/images/manageCenter/manage.png", |
| | | icon: "/images/manageCenter/cam.png", |
| | | openPath: "/invalidCamera", |
| | | path: "/invalidCamera", |
| | | permission: "invalidCamera" |
| | | permission: "positionMng" |
| | | } |
| | | ], |
| | | cameraTree: [], |
| | |
| | | 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() {}, |
| | |
| | | display: flex; |
| | | |
| | | .productItem { |
| | | margin-right: 20px; |
| | | margin: 0px 10px; |
| | | width: 190px; |
| | | height: 90px; |
| | | display: flex; |