ZZJ
2022-06-23 f7f0e44c4be8eb0e77fd310296c3b43bde21e4f9
src/views/hashrate/CameraManage/CameraInfo/index.vue
@@ -407,7 +407,7 @@
                this.form.isAI = false;
              }
              this.form.resolution =
                this.form.resolutionWidth + "*" + this.form.resolutionHeight;
                this.form.resolution_width + "*" + this.form.resolution_height;
            });
          }
        });
@@ -428,10 +428,10 @@
            ? 0
            : parseFloat(this.form.longitude);
          this.form.sensors = list;
          this.form.resolutionWidth = Number(
          this.form.resolution_width = Number(
            this.form.resolution.split("*")[0]
          );
          this.form.resolutionHeight = Number(
          this.form.resolution_height = Number(
            this.form.resolution.split("*")[1]
          );
          let _this = this;
@@ -446,10 +446,10 @@
            let tem = {
              camera: this.form,
              sensors: this.form.sensors,
              areaid: this.form.areaid,
            };
            tem.camera.clusterId = sessionStorage.getItem("clusterId");
            tem.camera.devId = sessionStorage.getItem("devId");
            delete tem.camera.sensors;
            updateCameraInfo(tem)
              .then((rsp) => {
@@ -483,10 +483,12 @@
            let tem = {
              camera: this.form,
              sensors: this.form.sensors,
              areaid: this.form.areaid,
            };
            tem.camera.clusterId = sessionStorage.getItem("clusterId");
            tem.camera.devId = sessionStorage.getItem("devId");
            tem.camera.parentUserId = "";
            tem.camera.enable = false;
            delete tem.camera.sensors;
            createCamera(tem)
              .then((rsp) => {
                if (rsp.success) {
@@ -524,7 +526,7 @@
          name: this.form.name,
          rtsp: this.form.rtsp,
          id: this.form.id,
          isRunning: this.form.runEnable,
          isRunning: this.form.run_enable,
          cameraType: this.form.type,
        };