|
|
@ -624,12 +624,11 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
handleChangeAgency (value) { |
|
|
|
let orgArray = [] |
|
|
|
let key = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '' |
|
|
|
if (key) { |
|
|
|
orgArray = key.split('-') |
|
|
|
this.orgId = orgArray[0] |
|
|
|
this.orgType = orgArray[1] === 'grid' ? 'grid' : 'agency' |
|
|
|
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
|
if (obj) { |
|
|
|
this.orgType = obj.level === 'grid' ? 'grid' : 'agency' |
|
|
|
this.orgId = obj.agencyId |
|
|
|
|
|
|
|
} else { |
|
|
|
this.orgId = '' |
|
|
|
this.orgType = '' |
|
|
|