Mr.Zhang
2023-10-24 969d3507163720cd59e5c78e3e0a7e0bdb47c366
admin/src/components/business/OperaRentSiteWindow.vue
@@ -62,8 +62,8 @@
  data () {
    const longAndLatVal = (rule, value, callback) => {
      let longAndLat = value.split(',')
      this.form.longitude = longAndLat[0]
      this.form.latitude = longAndLat.length==2 ? longAndLat[1] : ''
      this.form.latitude = longAndLat[0]
      this.form.longitude = longAndLat.length==2 ? longAndLat[1] : ''
      if (!this.form.longitude || !this.form.latitude) {
        callback(new Error())
      } else {
@@ -131,8 +131,8 @@
    changeLongAndLat(v) {
      let longAndLat = v.split(',')
      // console.log(longAndLat);
      this.form.longitude = longAndLat[0]
      this.form.latitude = longAndLat.length==2 ? longAndLat[1] : ''
      this.form.latitude = longAndLat[0]
      this.form.longitude = longAndLat.length==2 ? longAndLat[1] : ''
    }
  },
}