From 0ddac486055f17849095db339d0bfd9d89b4b0f8 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 23 Nov 2023 18:03:27 +0700 Subject: [PATCH] no message --- .../09_leave/components/1_Work/ToolBar.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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() {