| | |
| | | return obj |
| | | }) |
| | | this.resolutionList = list |
| | | this.sensors = res.data.sensors |
| | | // this.sensors = res.data.sensors |
| | | } |
| | | |
| | | this.$nextTick(() => { |
| | |
| | | }, |
| | | // 保存 |
| | | onSubmit(formName) { |
| | | let list = this.$refs.cameraEditor.getResult() |
| | | // let list = this.$refs.cameraEditor.getResult() |
| | | this.$refs[formName].validate(async (valid) => { |
| | | if (valid) { |
| | | const isRequire = this.verifyRequrie() |
| | |
| | | |
| | | this.form.latitude = Number.isNaN(parseFloat(this.form.latitude)) ? 0 : parseFloat(this.form.latitude) |
| | | this.form.longitude = Number.isNaN(parseFloat(this.form.longitude)) ? 0 : parseFloat(this.form.longitude) |
| | | this.form.sensors = list |
| | | // this.form.sensors = list |
| | | this.form.resolution_width = Number(this.form.resolution.split("*")[0]) |
| | | this.form.resolution_height = Number(this.form.resolution.split("*")[1]) |
| | | let _this = this |