Browse Source

树的组织级别

shibei_master
jiangyy 3 years ago
parent
commit
c6f20924c2
  1. 16
      src/views/components/resiSearch.vue

16
src/views/components/resiSearch.vue

@ -506,10 +506,22 @@ export default {
}
},
handleChangeAgency(val) {
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data
if (obj) {
if(obj.level === 'grid'){
this.form.GRID_ID = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
this.form.AGENCY_ID=''
}else{
this.form.AGENCY_ID = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
console.log('this.form.AGENCY_ID', this.form.AGENCY_ID)
this.form.VILLAGE_ID = ''
this.form.GRID_ID = ''
}
}else{
this.form.AGENCY_ID=''
this.form.GRID_ID = ''
}
this.form.VILLAGE_ID = ''
this.form.BUILD_ID = ''
this.form.UNIT_ID = ''
this.form.HOME_ID = ''

Loading…
Cancel
Save