zhangzengfei
2022-08-23 f5fe795a8885246e93ce0fb837454e6ff5ffb8d2
修复管理中心树
8个文件已添加
1个文件已修改
25 ■■■■■ 已修改文件
public/images/manageCenter/datav.png 补丁 | 查看 | 原始文档 | blame | 历史
public/images/manageCenter/push.png 补丁 | 查看 | 原始文档 | blame | 历史
public/images/manageCenter/video.png 补丁 | 查看 | 原始文档 | blame | 历史
public/images/manageCenter/通用1.png 补丁 | 查看 | 原始文档 | blame | 历史
public/images/manageCenter/通用2.png 补丁 | 查看 | 原始文档 | blame | 历史
public/images/manageCenter/通用3.png 补丁 | 查看 | 原始文档 | blame | 历史
public/images/manageCenter/通用4.png 补丁 | 查看 | 原始文档 | blame | 历史
public/images/manageCenter/通用5.png 补丁 | 查看 | 原始文档 | blame | 历史
src/views/manageCenter/index.vue 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/images/manageCenter/datav.png
public/images/manageCenter/push.png
public/images/manageCenter/video.png
public/images/manageCenter/ͨÓÃ1.png
public/images/manageCenter/ͨÓÃ2.png
public/images/manageCenter/ͨÓÃ3.png
public/images/manageCenter/ͨÓÃ4.png
public/images/manageCenter/ͨÓÃ5.png
src/views/manageCenter/index.vue
@@ -258,10 +258,9 @@
        return this.productList
      }
      return this.productList.filter(item => {
      return this.productList.filter((item) => {
        return user.permissions.indexOf(item.permission) >= 0
      })
    }
  },
  data() {
@@ -308,7 +307,7 @@
        },
        {
          name: "统计分析",
          icon: "/images/manageCenter/search.png",
          icon: "/images/manageCenter/datav.png",
          openPath: "/dataView",
          path: "/dataView",
          permission: "dataViewMng"
@@ -316,7 +315,7 @@
        {
          name: "推送管理",
          icon: "/images/manageCenter/manage2.png",
          icon: "/images/manageCenter/push.png",
          openPath: "/report",
          path: "/report",
          permission: "dataPushMng"
@@ -324,7 +323,7 @@
        {
          name: "实时监控",
          icon: "/images/manageCenter/manage2.png",
          icon: "/images/manageCenter/video.png",
          openPath: "/video",
          path: "/video",
          permission: "videoMng"
@@ -503,19 +502,20 @@
          // basic ä¸ºå­è´¦æˆ·é»˜è®¤çš„空字段,表示可管理的摄像机目录为空
          if (checkedCameras == "basic") {
            this.cameraTree = ["basic"]
            this.authorizedCameras = ["basic"]
          } else {
            let cameraIds = checkedCameras.split(",")
            this.authorizedCameras = cameraIds
            this.TreeDataPool.removeNoAuthorizedNode(this.cameraTree, cameraIds)
          }
        }
        }
        let tmpTree = JSON.parse(JSON.stringify(this.cameraTree))
        for (let i = 0; i < tmpTree.length; i++) this.clearNode(tmpTree[i])
        this.menuTree = tmpTree
        console.log(this.cameraTree)
        // console.log(this.cameraTree)
      }
    },
    clearNode(tree) {
@@ -535,14 +535,13 @@
      let selectedNode = {}
      let orgNodeIds = []
      if (this.selectedOrg == "") {
      if (this.selectedOrg == "" || this.selectedOrg == null) {
        return this.authorizedCameras
      }
      function findNode(node) {
        if (node.id == selectedNodeId) {
          selectedNode = node
          return
        }
@@ -599,7 +598,7 @@
          let decodeResult = JSON.parse(decodeString)
          decodeResult = []
          if (decodeResult) {
            console.log("decodeResult", decodeResult)
            // console.log("decodeResult", decodeResult)
            decodeResult.forEach((element) => {
              this.solvedTotal = this.solvedTotal + element.doc_count
              this.tableDataList.push({ date: element.key_as_string, count: element.doc_count })
@@ -676,6 +675,12 @@
      }
    },
    handleTreeChange(value) {
      // console.log("change:", value)
      if (value == null) {
        this.selectedOrg = ""
        return
      }
      this.selectedOrg = value[value.length - 1]
    },
    getInfo() {