diff --git a/jnpf-java-boot/jnpf-web/src/components/mapComponent/index.vue b/jnpf-java-boot/jnpf-web/src/components/mapComponent/index.vue index 551c1c0..4fcb21d 100644 --- a/jnpf-java-boot/jnpf-web/src/components/mapComponent/index.vue +++ b/jnpf-java-boot/jnpf-web/src/components/mapComponent/index.vue @@ -1,8 +1,8 @@ @@ -69,7 +69,6 @@ methods: { //地图选点确定 handleSureMap() { - debugger this.$emit('sure', this.map_data) }, // 取消 diff --git a/jnpf-java-boot/jnpf-web/src/views/enterpriserecyclestation/form.vue b/jnpf-java-boot/jnpf-web/src/views/enterpriserecyclestation/form.vue index 583d514..5c73ed7 100644 --- a/jnpf-java-boot/jnpf-web/src/views/enterpriserecyclestation/form.vue +++ b/jnpf-java-boot/jnpf-web/src/views/enterpriserecyclestation/form.vue @@ -49,7 +49,7 @@ - + 选择站点 @@ -297,11 +297,12 @@ export default { }, Vmodel: "", currVmodel: "", - stationLocationObj: {}, // 站点地图信息,经纬度地址 dataForm: { stationCode: undefined, stationName: undefined, - stationLocation: undefined, // 站点位置 + address: undefined, // 站点位置 + longitude: undefined, + latitude: undefined, shortName: undefined, managementModel: undefined, city: [], @@ -333,7 +334,7 @@ export default { message: '请输入', trigger: 'blur' }, ], - stationLocation: [{ + address: [{ required: true, message: '请输入', trigger: 'blur' @@ -455,8 +456,9 @@ export default { this.visibleMap = false }, sureMap(valObj){ - this.stationLocationObj = valObj - this.dataForm.stationLocation = valObj.address + this.dataForm.address = valObj.address + this.dataForm.longitude = valObj.lng + this.dataForm.latitude = valObj.lat console.log('位置信息',valObj) this.visibleMap = false }, @@ -809,11 +811,6 @@ export default { }, dataList() { var _data = this.dataForm; - // stationLocationObj 站点信息,经纬度 - var _data_new = { - ..._data, - stationLocationObj: this.stationLocationObj - } return _data; }, dataInfo(dataAll) {