diff --git a/src/modules/09_leave/components/1_Work/Tab1.vue b/src/modules/09_leave/components/1_Work/Tab1.vue index 0629258b9..2272dcc5a 100644 --- a/src/modules/09_leave/components/1_Work/Tab1.vue +++ b/src/modules/09_leave/components/1_Work/Tab1.vue @@ -22,7 +22,7 @@ import { useWorklistDataStore } from "@/modules/09_leave/stores/WorkStore"; const mixin = useCounterMixin(); const workStore = useWorklistDataStore(); const { date2Thai, dateToISO, showLoader, hideLoader, messageError } = mixin; - +const total = ref(0); const $q = useQuasar(); //ใช้ noti quasar /** ตัวแปร querySting*/ @@ -137,6 +137,7 @@ async function fetchListTimeRecord() { `?startDate=${querySting.startDate}&endDate=${querySting.startDate}&status=${querySting.status}&page=${querySting.page}&pageSize=${querySting.pageSize}&keyword=${querySting.keyword}` ) .then((res) => { + total.value = res.data.result.total; maxPage.value = Math.ceil(res.data.result.total / rowsPerPage.value); const datalist: TableRowsTime[] = res.data.result.data.map( (e: DataResTime) => ({ @@ -200,6 +201,7 @@ onMounted(async () => {