|
|
@ -49,6 +49,7 @@ export default { |
|
|
|
latLng:null, |
|
|
|
searchKey:null, |
|
|
|
organizationName:null, |
|
|
|
backNav:false |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
@ -60,6 +61,12 @@ export default { |
|
|
|
this.getAgency() |
|
|
|
} |
|
|
|
}, |
|
|
|
beforeRouteEnter(to, from, next) { |
|
|
|
if(from.fullPath === '/peoSuggestionexplain'){ |
|
|
|
this.backNav = true |
|
|
|
} |
|
|
|
next(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
search(){ |
|
|
|
this.organizationName = this.searchKey; |
|
|
@ -161,7 +168,11 @@ export default { |
|
|
|
parm.agencyName = item.label; |
|
|
|
let res = await editUser(parm) |
|
|
|
if (res.code === 0) { |
|
|
|
this.$router.replace('/') |
|
|
|
if(this.backNav){ |
|
|
|
this.$router.push('/peoSuggestionexplain') |
|
|
|
}else{ |
|
|
|
this.$router.replace('/') |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.organizationName = item.label; |
|
|
|