diff --git a/src/modules/09_leave/components/1_Work/ToolBar.vue b/src/modules/09_leave/components/1_Work/ToolBar.vue index db6f7853d..96ebec7ba 100644 --- a/src/modules/09_leave/components/1_Work/ToolBar.vue +++ b/src/modules/09_leave/components/1_Work/ToolBar.vue @@ -9,6 +9,13 @@ const workStore = useWorklistDataStore(); const mixin = useCounterMixin(); const { date2Thai } = mixin; +const props = defineProps({ + filetStatus: { + type: String, + require: true, + }, +}); + const emit = defineEmits(["update:pagination"]); const updateProp = (newPagination: any, keyword: string, status: string) => { // ส่ง event ไปยัง parent component เพื่ออัพเดทค่า props @@ -21,7 +28,15 @@ const option = ref([ { id: "LATE", name: "สาย" }, { id: "ABSENT", name: "ขาดราชการ" }, ]); -const filetStatus = ref(""); + +// const filetStatus = ref( +// props.filetStatus?.toString() || "default-value" +// ); + +// const filetStatus = ref(props.filetStatus.toString()); +const filetStatus = ref( + props.filetStatus?.toString() || "default-value" +); const keyword = ref(""); function filterFn() {