zhangzengfei
2022-12-05 c746783c4f570f9bdbe2d62b22bda22308b0dfba
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: ""
        },
        {
@@ -333,7 +349,7 @@
          icon: "/images/manageCenter/cam.png",
          openPath: "/invalidCamera",
          path: "/invalidCamera",
          permission: "invalidCamera"
          permission: "positionMng"
        }
      ],
      cameraTree: [],
@@ -758,21 +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) {
        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() {},