| | |
| | | this.form.isAI = false; |
| | | } |
| | | this.form.resolution = |
| | | this.form.resolutionWidth + "*" + this.form.resolutionHeight; |
| | | this.form.resolution_width + "*" + this.form.resolution_height; |
| | | }); |
| | | } |
| | | }); |
| | |
| | | ? 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; |
| | |
| | | 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) => { |
| | |
| | | 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) { |
| | |
| | | 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, |
| | | }; |
| | | |