| | |
| | | public canvasData: object; |
| | | public baseImg: string; |
| | | public cameraName: string; |
| | | public type:number; |
| | | public rtsp:string; |
| | | public camearInfo: object; |
| | | |
| | | public loading: boolean; |
| | |
| | | this.baseImg = ""; |
| | | this.cameraId = id ? id : ""; |
| | | this.cameraName = ""; |
| | | this.rtsp = ""; |
| | | this.type = 0; |
| | | this.selectTask = []; |
| | | this.polygonData = []; |
| | | this.canvasData = { |
| | |
| | | const rsp: any = await getCameraInfo(this.cameraId); |
| | | if (rsp.success) { |
| | | this.cameraName = rsp.data.name ? rsp.data.name : ""; |
| | | this.rtsp = rsp.data.rtsp ? rsp.data.rtsp : ""; |
| | | this.type = rsp.data.type ? rsp.data.type : 0; |
| | | } |
| | | } catch { |
| | | this.cameraName = ""; |
| | | this.type = 0 |
| | | this.rtsp = '' |
| | | } |
| | | } else { |
| | | const rsp: any = await findAllFileByStackId({ stackId: this.cameraId }); |