loading สรรหา

This commit is contained in:
setthawutttty 2025-07-07 15:18:37 +07:00
parent ee4428aac2
commit 360caae2e1
8 changed files with 98 additions and 156 deletions

View file

@ -216,9 +216,11 @@ const total = ref<number>(0);
const maxPage = ref<number>(1);
async function fetchDataCom() {
showLoader();
await fetchDataSummary();
await fetchPeriodExam();
await fetchData();
hideLoader();
}
/** เปลี่ยน page */
@ -269,13 +271,13 @@ async function fetchData(loading: boolean = true) {
});
});
}
loading ?? hideLoader();
})
.catch((e) => {
messageError($q, e);
hideLoader();
})
.finally(() => {
loading ?? hideLoader();
});
.finally(() => {});
}
/** ดึงข้อมูล สอบคัดเลือก */
@ -293,10 +295,9 @@ async function fetchPeriodExam() {
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
})
.finally(() => {});
}
/**
@ -320,10 +321,9 @@ async function fetchDataSummary() {
})
.catch((e) => {
dataNum.value = [];
})
.finally(() => {
hideLoader();
});
})
.finally(() => {});
}
/**
@ -395,9 +395,8 @@ onMounted(async () => {
class="q-mr-sm"
@click="router.go(-1)"
/>
{{ name }}
{{
`ครั้งที่${round == null ? "" : round}/${
`${name} ${round == null ? "" : 'ครั้งที่'+round+'/'}${
yearly == null ? "" : yearly + 543
}`
}}