This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-06-27 11:08:01 +07:00
parent 6399e23d28
commit aafef60aab
3 changed files with 15 additions and 9 deletions

View file

@ -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 = "";
}
}
/**