This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-04 16:13:17 +07:00
parent 91105a3a90
commit 38944b99e4

View file

@ -54,6 +54,7 @@ async function fecthlistRound() {
// UI
if (optionRound.value.length !== 0) {
loadview.value = true;
loading.value = true;
DataStore.optionRound = optionRound.value;
const lastValue = optionRound.value[0];
if (DataStore.roundId) {
@ -64,6 +65,9 @@ async function fecthlistRound() {
DataStore.roundId = round.value;
roundName.value = lastValue.name;
await fecthStat(round.value);
} else {
loadview.value = false;
loading.value = false;
}
})
.catch((err) => {
@ -92,13 +96,12 @@ async function fecthAgency() {
// loadview.value = true;
DataStore.agency = res.data.result.rootId;
DataStore.typeOc = DataStore.agency;
// loading.value = true;
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
// loading.value = true;
});
.finally(() => {});
}
function fetchActiveId() {
@ -191,7 +194,7 @@ async function fecthInsigniaByOc(
document.value = res.data.result.document;
await DataStore.fetchData(res.data.result.items); //
await DataStore.fetchDataInsignia(res.data.result); //
loading.value = true;
// loading.value = true;
//
if (res.data.result.items !== null) {
if (res.data.result.items.length !== 0) {