From e0112b45edde00971289ee9a304bd42b7ed6f13b Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Tue, 31 Oct 2023 15:36:13 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=20filter=20=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82=20sto?= =?UTF-8?q?re=20=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../04_checkin/componenst/tableHistory.vue | 306 ++++++++---------- src/modules/04_checkin/views/history.vue | 2 +- .../05_leave/componenst/ListCalendar.vue | 293 +++++++---------- src/modules/05_leave/componenst/Table.vue | 88 +---- src/modules/05_leave/interface/index/main.ts | 12 +- src/modules/05_leave/store.ts | 236 ++++++++++++-- src/modules/05_leave/views/Main.vue | 3 +- 7 files changed, 481 insertions(+), 459 deletions(-) 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 @@