| | |
| | | } |
| | | |
| | | async fetchLocalTree() { |
| | | let params:any = { |
| | | let params: any = { |
| | | searchType: this.searchCamType, |
| | | cameraName: this.searchInput, |
| | | //isPlatform: 1 |
| | | }; |
| | | debugger |
| | | if(this.searchFrom == 'cluster'){ |
| | | if (this.searchFrom == 'cluster') { |
| | | params.isPlatform = 1 |
| | | } |
| | | const rsp: any = await getLocalCameraTree(params); |
| | |
| | | } |
| | | } |
| | | |
| | | async fetchClusterTree (){ |
| | | async fetchClusterTree() { |
| | | const rsp: any = await getClusterTree({ |
| | | searchType: this.searchCamType, |
| | | cameraName: this.searchInput |
| | | }); |
| | | if(rsp && rsp.success){ |
| | | if (rsp && rsp.success) { |
| | | console.log(rsp.data); |
| | | this.clusterData = rsp.data ? rsp.data : [] |
| | | if(this.clusterData && this.clusterData.length > 0){ |
| | | if (this.clusterData && this.clusterData.length > 0) { |
| | | this.sortTreeData(this.clusterData) |
| | | } |
| | | this.clusterDataPure = JSON.parse(JSON.stringify(this.clusterData)); |