Browse Source

修复街道级别的用户无法通过网格查找到对应房屋

V1.0
duanliangtao 2 years ago
parent
commit
21f1e66d61
  1. 7
      src/views/components/resiSearch.vue

7
src/views/components/resiSearch.vue

@ -833,10 +833,13 @@ export default {
} else { } else {
agencyIdTemp = this.form.agencyId[this.form.agencyId.length - 1] agencyIdTemp = this.form.agencyId[this.form.agencyId.length - 1]
} }
const lastIndex = this.form.agencyId.length - 1;
const gridIdQuery = this.form.agencyId[lastIndex - 1];
const agencyIdQuery = this.form.agencyId[lastIndex];
this.$http this.$http
.post('/actual/base/communityQuarters/listQuartersOptions', { .post('/actual/base/communityQuarters/listQuartersOptions', {
gridId: this.form.agencyId[1], gridId: gridIdQuery,
agencyId: this.form.agencyId[0], agencyId: agencyIdQuery,
// agencyId: user.agencyId // agencyId: user.agencyId
}) })
.then(({ data: res }) => { .then(({ data: res }) => {

Loading…
Cancel
Save