ZZJ
2022-09-26 ac2f0de24a154b235ca55999bbbf120f1c77f7d7
src/views/manageCenter/index.vue
@@ -322,6 +322,14 @@
        },
        {
          name: "数据推送",
          icon: "/images/manageCenter/push.png",
          openPath: "/dataPush",
          path: "/dataPush",
          permission: "dataPush"
        },
        {
          name: "实时监控",
          icon: "/images/manageCenter/video.png",
          openPath: "/video",
@@ -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() {},