API รายการลา

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-12-07 14:25:13 +07:00
parent 908e756c42
commit da5dd5095c
20 changed files with 2105 additions and 526 deletions

View file

@ -136,18 +136,18 @@ const modalStatsTable = ref<boolean>(false);
/** function เรียกข้อมูลตารางสถิติการลา*/
async function fetchStatsTable() {
modalStatsTable.value = true;
// showLoader();
// await http
// .get(config.API.leaveStats())
// .then((res) => {
// console.log(res);
// })
// .catch((err) => {
// messageError($q, err);
// })
// .finally(() => {
// hideLoader();
// });
showLoader();
await http
.get(config.API.leaveStats())
.then((res) => {
console.log(res);
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
/** function redirectTo ยื่นใบลา*/
@ -155,7 +155,9 @@ async function addAbsence() {
router.push(`/leave/add`);
}
onMounted(async () => {});
onMounted(async () => {
// await fetchStatsTable()
});
</script>
<template>