| | |
| | | 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 |
| | | } |
| | |
| | | if (this.searchFrom == "cluster") { |
| | | params.isPlatform = 1 |
| | | } |
| | | console.log(params) |
| | | // console.log(params) |
| | | const rsp: any = await getTaskList(params) |
| | | if (rsp && rsp.success) { |
| | | // this.tasks.splice(0, this.tasks.length) |