上饶市警务平台后台管理前端
guoshilong
2023-02-14 4f3b3c4d2fcc27c59095e6ddded35a572000e8ee
src/views/security/security.vue
@@ -38,7 +38,7 @@
      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>
@@ -468,9 +468,13 @@
      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
    }