diff --git a/src/modules/09_leave/components/1_Work/DialogEdit.vue b/src/modules/09_leave/components/1_Work/DialogEdit.vue new file mode 100644 index 000000000..308fb3f45 --- /dev/null +++ b/src/modules/09_leave/components/1_Work/DialogEdit.vue @@ -0,0 +1,167 @@ + + + + + + + + + + + สถานะช่วงเช้า + filterFnOptions(inputValue, doneFn)" + > + + + ไม่มีข้อมูล + + + + + + + + สถานะช่วงบ่าย + filterFnOptions(inputValue, doneFn)" + > + + + ไม่มีข้อมูล + + + + + + + + + + + + + + + + + + + + diff --git a/src/modules/09_leave/components/1_Work/TableList.vue b/src/modules/09_leave/components/1_Work/TableList.vue index 27b8930b1..9c52c2e43 100644 --- a/src/modules/09_leave/components/1_Work/TableList.vue +++ b/src/modules/09_leave/components/1_Work/TableList.vue @@ -6,6 +6,7 @@ import type { QTableProps } from "quasar"; /** importComponents */ import DialogDetail from "@/modules/09_leave/components/1_Work/DialogDetail.vue"; +import DialogEdit from "@/modules/09_leave/components/1_Work/DialogEdit.vue"; /** importStores */ import { useCounterMixin } from "@/stores/mixin"; @@ -45,6 +46,7 @@ const emit = defineEmits(["update:pagination"]); /** ข้อมูล popup */ const modal = ref(false); const dataDetail = ref([]); +const modalEdit = ref(false); /** pagination */ const currentPage = ref(1); @@ -65,6 +67,7 @@ function updateProp(newPagination: any, page: number) { } const typeTab = ref(""); + /** * Function openPopup และแสดงรายละเอียด * @param data ข้อมูลรายละเอียด @@ -75,6 +78,11 @@ function clickDetail(data: any) { dataDetail.value = data; } +function onClickEdit(data: any) { + modalEdit.value = !modalEdit.value; + dataDetail.value = modalEdit.value ? data : []; +} + /** Function ปิด popup */ function closeDetail() { modal.value = false; @@ -93,6 +101,10 @@ function updateRowsPerPagen(newPagination: any) { pagination.value.rowsPerPage = newPagination.rowsPerPage; currentPage.value = 1; } + +onMounted(() => { + typeTab.value = props.tab as string; +}); @@ -115,6 +127,7 @@ function updateRowsPerPagen(newPagination: any) { {{ col.label }} + @@ -156,6 +169,18 @@ function updateRowsPerPagen(newPagination: any) { {{ col.value }} + + + แก้ไข + + @@ -177,6 +202,7 @@ function updateRowsPerPagen(newPagination: any) { :typeTab="typeTab" :close="closeDetail" /> - + +