|
|
@ -152,7 +152,7 @@ |
|
|
|
<el-cascader class="u-item-width-normal" |
|
|
|
size="small" |
|
|
|
ref="myCascader" |
|
|
|
v-model="form.agencyId" |
|
|
|
v-model="cascaderAgencyId" |
|
|
|
:options="orgOptions" |
|
|
|
:props="orgOptionProps" |
|
|
|
:show-all-levels="false" |
|
|
@ -335,6 +335,7 @@ export default { |
|
|
|
|
|
|
|
return { |
|
|
|
categoryAll:[], |
|
|
|
cascaderAgencyId:[], |
|
|
|
categoryAllList:[ |
|
|
|
{ |
|
|
|
label:'群众', |
|
|
@ -934,6 +935,7 @@ export default { |
|
|
|
this.$EventBus.$on('handleClickResiTree', async (val) => { |
|
|
|
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 || []; |
|
|
|