| | |
| | | public baseImageLoading: boolean |
| | | |
| | | public activeNode: string |
| | | public clusterId: string |
| | | public devId: string |
| | | |
| | | |
| | | constructor() { |
| | |
| | | this.gb28181CameraBaseImage = "" |
| | | this.baseImageLoading = false |
| | | this.activeNode = '' |
| | | this.clusterId = '' |
| | | this.devId = '' |
| | | |
| | | |
| | | } |
| | |
| | | function nodeFilter(node: any) { |
| | | if (node.type === '4' && node.selected) { |
| | | _selected.push(node.id) |
| | | sessionStorage.setItem('cameraDevId',node.devId) |
| | | } |
| | | if (node.children) { |
| | | node.children.forEach((n: any) => { |
| | |
| | | |
| | | function nodeFilter(node: any) { |
| | | if (node.type === '4' && (node.selected || node.checked)) { |
| | | sessionStorage.setItem("cameraDevId", node.devId); |
| | | _this.selectedNodes.push(node.id) |
| | | } |
| | | if (node.children) { |
| | |
| | | } |
| | | |
| | | async fetchGbTree() { |
| | | // 后门 |
| | | // const rsp: any = await getGB28181CameraTree({ |
| | | // searchType: this.searchCamType, |
| | | // cameraName: this.searchInput |
| | | // }) |
| | | const rsp: any = await getGB28181CameraTree({ |
| | | parentId: "", |
| | | searchType: this.searchCamType, |
| | | cameraName: this.searchInput |
| | | }) |
| | | |
| | | // if (rsp && rsp.success) { |
| | | // this.gb28181Data = rsp.data ? rsp.data : [] |
| | | // if (this.gb28181Data && this.gb28181Data.length > 0) { |
| | | // this.sortTreeData(this.gb28181Data) |
| | | // } |
| | | if (rsp && rsp.success) { |
| | | this.gb28181Data = rsp.data.treeMenu ? rsp.data.treeMenu : [] |
| | | if (this.gb28181Data && this.gb28181Data.length > 0) { |
| | | this.sortTreeData(this.gb28181Data) |
| | | } |
| | | |
| | | // this.gb28181DataPure = JSON.parse(JSON.stringify(this.gb28181Data)) |
| | | // this.isFold(this.gb28181Data) |
| | | // } |
| | | this.gb28181DataPure = JSON.parse(JSON.stringify(this.gb28181Data)) |
| | | this.isFold(this.gb28181Data) |
| | | } |
| | | } |
| | | |
| | | async fetchTreeData() { |
| | |
| | | } |
| | | |
| | | async refreshGB28181() { |
| | | await refreshGB28181Tree() |
| | | await refreshGB28181Tree({}) |
| | | // this.fetchGbTree() |
| | | } |
| | | |
| | |
| | | if (update) { |
| | | fn = refreshGB28181Tree |
| | | } |
| | | const rsp: any = await fn() |
| | | const rsp: any = await fn({ |
| | | clusterId:this.clusterId, |
| | | devId:this.devId, |
| | | }) |
| | | |
| | | if (rsp && rsp.success) { |
| | | this.selectedNode = {} |
| | |
| | | this.setDropDisable(this.treeData) |
| | | this.isFold(this.treeData) |
| | | |
| | | this.activeTreeData = this.treeData |
| | | |
| | | this.gb28181CheckedCount = 0; |
| | | this.gb28181CheckedCount = 0 |
| | | this.gb28181ChildNodeCount = this.countChildrenNodes(this.treeData) |
| | | this.activeTreeData = this.treeData |
| | | } |
| | | } |
| | | |
| | |
| | | this.cameraNameForBaseImage = node.name |
| | | |
| | | try { |
| | | const rsp: any = await getCameraBaseImage({ id: node.id }) |
| | | const rsp: any = await getCameraBaseImage({ |
| | | id: node.id, |
| | | clusterId: this.clusterId, |
| | | devId: this.devId, |
| | | }) |
| | | |
| | | if (rsp && rsp.data) { |
| | | this.gb28181CameraBaseImage = rsp.data |