diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index 5a9aa1396..73076d3d3 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -152,7 +152,7 @@ { if(val.type === 'agency'){ this.form.agencyId = val.id; + this.cascaderAgencyId = val.id; this.optionsV = []; this.form.villageId = ''; this.form.buildId = ''; @@ -1066,15 +1068,19 @@ export default { } } }, - handleChangeAgency(val) { + async handleChangeAgency(val) { this.sarr = [] this.getLastItem( this.orgOptions, val, "agencyId" ); + console.log(this.sarr,'seee'); this.form.level = this.sarr[this.sarr.length - 1].level; - this.getValiheList() + this.form.agencyId = this.sarr[this.sarr.length - 1].agencyId; + this.optionsV = []; + this.optionsVPageNo = 1; + await this.getValiheList() }, getLastItem(list, vals, key) { let LIST = list || [];