| | |
| | | append-to-body |
| | | destroy-on-close |
| | | width="70%"> |
| | | <search-map @getLonLat="getLonLat" :point-lon-lat="point"></search-map> |
| | | <search-map @getLonLat="getLonLat" @getAddress="getAddress" :point-lon-lat="point"></search-map> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="confirmLonLat">确 定</el-button> |
| | | </span> |
| | |
| | | this.chosePoint.longitude = data[0] |
| | | this.chosePoint.latitude = data[1] |
| | | }, |
| | | getAddress(data){ |
| | | this.chosePoint.address = data |
| | | }, |
| | | confirmLonLat(){ |
| | | this.form.longitude = this.chosePoint.longitude |
| | | this.form.latitude = this.chosePoint.latitude |
| | | this.form.place = this.chosePoint.address |
| | | this.point = "POINT("+this.form.longitude +" "+this.form.latitude+")" |
| | | this.placeBox = false |
| | | } |