API รายการลา
This commit is contained in:
parent
908e756c42
commit
da5dd5095c
20 changed files with 2105 additions and 526 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue