diff --git a/src/modules/06_retirement/components/DialogFooter.vue b/src/modules/06_retirement/components/DialogFooter.vue index 6f75a69b5..e7e10e928 100644 --- a/src/modules/06_retirement/components/DialogFooter.vue +++ b/src/modules/06_retirement/components/DialogFooter.vue @@ -1,4 +1,5 @@ diff --git a/src/modules/09_leave/components/1_Work/Tab2.vue b/src/modules/09_leave/components/1_Work/Tab2.vue index f3aa9eae0..25bacbcc9 100644 --- a/src/modules/09_leave/components/1_Work/Tab2.vue +++ b/src/modules/09_leave/components/1_Work/Tab2.vue @@ -94,7 +94,7 @@ const rows = ref([]); /** QueryString*/ const keyword = ref(""); const page = ref(1); -const rowsPerPage = ref(5); +const rowsPerPage = ref(10); const maxPage = ref(1); /** เรียกข้อมูลรายการลงเวลาปฏิบัติงาน (รายการลงเวลา) */ diff --git a/src/modules/09_leave/components/1_Work/ToolBar.vue b/src/modules/09_leave/components/1_Work/ToolBar.vue index d8afb175c..55a305e1f 100644 --- a/src/modules/09_leave/components/1_Work/ToolBar.vue +++ b/src/modules/09_leave/components/1_Work/ToolBar.vue @@ -9,16 +9,25 @@ const workStore = useWorklistDataStore(); const mixin = useCounterMixin(); const { date2Thai } = mixin; -const props = defineProps({ - option: { - type: Object, - require: true, - }, -}); +const emit = defineEmits(["update:pagination"]); +const updateProp = (newPagination: any, keyword: string, status: string) => { + // ส่ง event ไปยัง parent component เพื่ออัพเดทค่า props + emit("update:pagination", newPagination, 1, keyword, status); +}; +const option = ref([ + { id: "", name: "ทั้งหมด" }, + { id: "normal", name: "ปกติ" }, + { id: "late", name: "สาย" }, + { id: "absent", name: "ขาดราชการ" }, +]); const filetStatus = ref(""); const keyword = ref(""); +function filterFn() { + updateProp([], keyword.value, filetStatus.value); +} + /** Functicon หาค่ามากสุดและปิดวันที่ไม่ให้เลือกวันล่วงหน้า*/ function calculateMaxDate() { const today = new Date(); @@ -38,6 +47,7 @@ function calculateMaxDate() { :enableTimePicker="false" week-start="0" :max-date="calculateMaxDate()" + @update:model-value="filterFn" >