ZZJ
2022-05-27 a689af1348938afd3b4506aad9b6d5057193e25d
src/Pool/VideoRuleData.ts
@@ -11,6 +11,8 @@
  public canvasData: object;
  public baseImg: string;
  public cameraName: string;
  public type:number;
  public rtsp:string;
  public camearInfo: object;
  public loading: boolean;
@@ -28,6 +30,8 @@
    this.baseImg = "";
    this.cameraId = id ? id : "";
    this.cameraName = "";
    this.rtsp = "";
    this.type = 0;
    this.selectTask = [];
    this.polygonData = [];
    this.canvasData = {
@@ -80,9 +84,13 @@
        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 });