fix bug
This commit is contained in:
parent
6399e23d28
commit
aafef60aab
3 changed files with 15 additions and 9 deletions
|
|
@ -89,6 +89,8 @@ function getRound() {
|
|||
store.roundYear = roundFilter.value.year;
|
||||
store.isClosedRound = roundFilter.value.isClose;
|
||||
|
||||
console.log(roundFilter.value);
|
||||
|
||||
await getSnap(roundFilter.value.shortCode);
|
||||
await getAgency(roundFilter.value.revisionId);
|
||||
await getAgencyPosition(roundFilter.value.revisionId);
|
||||
|
|
@ -150,8 +152,8 @@ function getSnap(code: string) {
|
|||
* @param id revisionId
|
||||
*/
|
||||
async function getAgency(id: string) {
|
||||
id &&
|
||||
(await http
|
||||
if (id) {
|
||||
await http
|
||||
.get(config.API.activeOrganizationRootById(id))
|
||||
.then(async (res) => {
|
||||
const data = res.data.result;
|
||||
|
|
@ -170,7 +172,11 @@ async function getAgency(id: string) {
|
|||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
}));
|
||||
});
|
||||
} else {
|
||||
agencyOptionsMain.value = [];
|
||||
agencyFilter.value = "";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue