diff --git a/src/modules/09_leave/components/1_Work/TableList.vue b/src/modules/09_leave/components/1_Work/TableList.vue index 301f32a22..79e47a3db 100644 --- a/src/modules/09_leave/components/1_Work/TableList.vue +++ b/src/modules/09_leave/components/1_Work/TableList.vue @@ -13,7 +13,6 @@ const workStore = useWorklistDataStore(); const { date2Thai } = mixin; const { searchDataFn, filterFn } = workStore; -onMounted(() => {}); //ข้อมูล Table const columns = ref([ @@ -90,6 +89,12 @@ const visibleColumns = ref([ "coordinatesOut", "status", ]); + +onMounted(() => { + workStore.columns = columns.value; + workStore.visibleColumns = visibleColumns.value; +}); + //DialogDetail const modal = ref(false); const dataDetail = ref([]); @@ -108,96 +113,9 @@ const pagination = ref({ page: 1, rowsPerPage: 10, }); -const paging = ref(true); -const paginationLabel = (start: string, end: string, total: string) => { - if (paging.value == true) return " " + start + "-" + end + " ใน " + total; - else return start + "-" + end + " ใน " + total; -};