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 @@ 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 @@ \ 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' ) " /> @@ -99,15 +99,21 @@