vue2-client 1.8.236 → 1.8.237

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.236",
3
+ "version": "1.8.237",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -208,7 +208,8 @@ export default {
208
208
  this.addressInput = this.addressObj.address
209
209
  console.log(' result--- ', result)
210
210
  this.visible = false
211
- this.$emit('onSelect', Object.assign({}, result, { divisions: this.divisions }))
211
+ this.$emit('onSelect', JSON.stringify(result))
212
+ this.$emit('onDivisionsChange', Object.assign({}, result, { divisions: this.divisions, vm: this }))
212
213
  // this.$emit('onClick', result || value)
213
214
  },
214
215
  // 懒加载检索方法
@@ -395,6 +395,7 @@
395
395
  :resultKeys="{ address: attr.model, coords: `${attr.model}_lng_lat` }"
396
396
  searchResultType="Object"
397
397
  @onSelect="addressSearchComboboxSelect"
398
+ @onDivisionsChange="onDivisionsChange"
398
399
  ></address-search-combobox>
399
400
  </a-form-model-item>
400
401
  </x-form-col>
@@ -647,10 +648,12 @@ export default {
647
648
  }
648
649
  },
649
650
  addressSearchComboboxSelect () {
650
- this.form = Object.assign(this.form, JSON.parse(this.searchResult))
651
+ this.form = Object.assign(this.form, this.searchResult)
652
+ },
653
+ onDivisionsChange (data) {
651
654
  this.emitFunc('addressSearchComboboxSelect', {
652
655
  key: this.attr.model,
653
- value: this.searchResult
656
+ value: data
654
657
  })
655
658
  },
656
659
  getDataCallback (res) {