diff --git a/src/modules/04_checkin/componenst/tableHistory.vue b/src/modules/04_checkin/componenst/tableHistory.vue index a6ef783..91ab588 100644 --- a/src/modules/04_checkin/componenst/tableHistory.vue +++ b/src/modules/04_checkin/componenst/tableHistory.vue @@ -1,205 +1,161 @@ - - - - - {{ year + 543 }} - {{ - parseInt(value + 543) - }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + {{ year + 543 }} + {{ parseInt(value + 543) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/modules/04_checkin/views/history.vue b/src/modules/04_checkin/views/history.vue index 5fc459e..5325ab0 100644 --- a/src/modules/04_checkin/views/history.vue +++ b/src/modules/04_checkin/views/history.vue @@ -82,7 +82,7 @@ import Table from "@/modules/04_checkin/componenst/tableHistory.vue" const router = useRouter() const filter = ref("") -const visibleColumns = ref(["date", "in", "loIn", "out", "loOut", "status"]) +const visibleColumns = ref(["no", "date", "in", "loIn", "out", "loOut", "status"]) const columns = ref([ { name: "no", diff --git a/src/modules/05_leave/componenst/ListCalendar.vue b/src/modules/05_leave/componenst/ListCalendar.vue index 5a18f0f..bde82c2 100644 --- a/src/modules/05_leave/componenst/ListCalendar.vue +++ b/src/modules/05_leave/componenst/ListCalendar.vue @@ -1,187 +1,134 @@ - - - - - {{ props.rowIndex + 1 }} - - - {{ props.row.type }} - - - {{ props.row.date }} - - - - - - - - - - {{ props.row.status }} - - - - - - - - + + + + + {{ props.rowIndex + 1 }} + + + {{ props.row.type }} + + + {{ props.row.date }} + - - - - - รายละเอียดของ{{ title }} - ขอยกเลิก{{ title }} - - - - - - - - เขียนที่ - {{ location }} - เรื่องและเหตุผลการลา - {{ subject }} - วัน เดือน ปีเริ่มต้น - {{ dateStart }} - วัน เดือน ปีสิ้นสุด - {{ dateEnd }} - จำนวนวันที่ลา - {{ numDate }} - สถานที่ติดต่อขณะลา - {{ place }} - หมายเลขโทรศัพท์ - {{ phone }} - - - - - - - - - - - - - - - - - - + + + + + + + + {{ props.row.status }} + + + + + + + + + + + + + + รายละเอียดของ{{ title }} + ขอยกเลิก{{ title }} + + + + + + + + เขียนที่ + {{ location }} + เรื่องและเหตุผลการลา + {{ subject }} + วัน เดือน ปีเริ่มต้น + {{ dateStart }} + วัน เดือน ปีสิ้นสุด + {{ dateEnd }} + จำนวนวันที่ลา + {{ numDate }} + สถานที่ติดต่อขณะลา + {{ place }} + หมายเลขโทรศัพท์ + {{ phone }} + + + + + + + + + + + + + + + + + + \ No newline at end of file + title.value = text + modalCancel.value = true + modeCancel.value = false +} +onMounted(async () => { + searchFilterTable() + fecthList([ + { no: "1", date: "2023-09-20", type: "1", status: "4", year: "2566" }, + { no: "2", date: "2023-09-19", type: "1", status: "2", year: "2566" }, + { no: "3", date: "2023-09-10", type: "2", status: "3", year: "2566" }, + ]) +}) + diff --git a/src/modules/05_leave/componenst/Table.vue b/src/modules/05_leave/componenst/Table.vue index f3c19a0..55aea8a 100644 --- a/src/modules/05_leave/componenst/Table.vue +++ b/src/modules/05_leave/componenst/Table.vue @@ -7,7 +7,7 @@ outlined dense lazy-rules - v-model="type" + v-model="LeaveData.LeaveType" :rules="[val => !!val || `${'กรุณาเลือกประเภทใบลา'}`]" :label="`${'ประเภทใบลา'}`" emit-value @@ -20,14 +20,14 @@ class="col-xs-12 col-sm-auto" @update:model-value="searchFilterTable" @filter="(inputValue:any, - doneFn:Function) => filterSelector(inputValue, doneFn,'typeOptions' + doneFn:Function) => filterSelector(inputValue, doneFn,'LeaveTypeOption' ) " /> filterSelector(inputValue, doneFn,'statusOptions' + doneFn:Function) => filterSelector(inputValue, doneFn,'LeaveStatusOption' ) " /> @@ -99,15 +99,21 @@