| | |
| | | onSubmit() { |
| | | this.$refs.device.validate(valid => { |
| | | if (valid) { |
| | | this.bayonet.longitude = Number(this.bayonet.longitude); |
| | | this.bayonet.latitude = Number(this.bayonet.latitude); |
| | | this.bayonet.inOutCityType = Number(this.bayonet.inOutCityType); |
| | | this.bayonet.belongArea = Number(this.bayonet.belongArea); |
| | | const copyBayonet = deepClone(this.bayonet); |
| | | delete copyBayonet.id; |
| | | copyBayonet.longitude = Number(copyBayonet.longitude); |
| | | copyBayonet.latitude = Number(copyBayonet.latitude); |
| | | copyBayonet.inOutCityType = Number(copyBayonet.inOutCityType); |
| | | if (!this.isEdit) { |
| | | bayonet.addBayonet(this.bayonet) |
| | | .then(() => { |