zhangzengfei
2022-08-28 3834d30a6d56ad7c4d4f5fe630af649ab6826428
src/Pool/VideoPhotoData.ts
@@ -47,6 +47,7 @@
  public scrollContainDom: any = ""
  public uploadDiaplay: boolean = false
  public uploadType: boolean = false
  public warningFlag: number = 0
  constructor() {
    this.cards = []
@@ -80,11 +81,22 @@
      searchTime: this.searchTime,
      alarmlevel: this.queryAlarmlevel,
      inputValue: this.inputValue,
      warningFlag: this.warningFlag,
      tabs: this.queryTabs,
      tasks: this.queryTasks,
      treeNodes: this.treeNodes,
      dataSource: "camera"
    }
    // 根据权限控制摄像机
    let userInfo = JSON.parse(sessionStorage.getItem("userInfo"))
    // 未选择摄像机并且不是管理员
    if (!this.treeNodes.length && userInfo.username != "Administrator") {
      let checkedCameras = userInfo.email
      this.treeNodes = checkedCameras.split(",")
    }
    param.treeNodes = this.treeNodes
    if (this.searchFrom == "cluster") {
      param.isAll = true
    }