From fc1f6acb9da460f81ce41b0b568c7527cf22357c Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 2 Dec 2024 16:15:34 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?=20=E0=B8=A5=E0=B8=87=20=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2=20?= =?UTF-8?q?select/input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../09_leave/components/02_WorkList/Tab1.vue | 2 +- .../components/02_WorkList/ToolBar.vue | 3 ++- .../09_leave/components/05_Leave/Tab1.vue | 1 + .../09_leave/components/05_Leave/Tab2.vue | 1 + .../components/05_Leave/ToolBarLeave.vue | 21 +++++++++++-------- src/modules/09_leave/views/01_RoundMain.vue | 10 ++------- .../09_leave/views/04_SpecialTimeMain.vue | 10 ++------- src/modules/09_leave/views/06_ReportMain.vue | 4 ++++ .../3_InvestigateDisciplinary/EditPage.vue | 2 +- .../components/4_Result/EditPage.vue | 2 +- 10 files changed, 27 insertions(+), 29 deletions(-) diff --git a/src/modules/09_leave/components/02_WorkList/Tab1.vue b/src/modules/09_leave/components/02_WorkList/Tab1.vue index 484ec5b44..796f0dffb 100644 --- a/src/modules/09_leave/components/02_WorkList/Tab1.vue +++ b/src/modules/09_leave/components/02_WorkList/Tab1.vue @@ -129,7 +129,7 @@ async function fetchListTimeRecord() { status: filetStatus.value, //*สถานะ page: page.value, //*หน้า pageSize: rowsPerPage.value, //*จำนวนแถวต่อหน้า - keyword: keyword.value, //keyword ค้นหา + keyword: keyword.value.trim(), //keyword ค้นหา }; showLoader(); await http diff --git a/src/modules/09_leave/components/02_WorkList/ToolBar.vue b/src/modules/09_leave/components/02_WorkList/ToolBar.vue index 094d6efb6..35dc14cc3 100644 --- a/src/modules/09_leave/components/02_WorkList/ToolBar.vue +++ b/src/modules/09_leave/components/02_WorkList/ToolBar.vue @@ -123,6 +123,8 @@ function calculateMaxDate() { label="สถานะ" use-input v-model="filetStatus" + hide-selected + fill-input :options="option" @update:model-value="filterFn" @filter="filterOptionFn" @@ -172,7 +174,6 @@ function calculateMaxDate() { map-options :options="workStore.columns" option-value="name" - /> diff --git a/src/modules/09_leave/components/05_Leave/Tab1.vue b/src/modules/09_leave/components/05_Leave/Tab1.vue index eca64a497..b3d426161 100644 --- a/src/modules/09_leave/components/05_Leave/Tab1.vue +++ b/src/modules/09_leave/components/05_Leave/Tab1.vue @@ -35,6 +35,7 @@ const querySting = reactive({ //** เรียกข้อมูลจาก API*/ async function fecthLeaveList() { leaveStore.rows = []; + querySting.keyword = querySting.keyword.trim() querySting.status = await (querySting.status == null ? "ALL" : querySting.status); diff --git a/src/modules/09_leave/components/05_Leave/Tab2.vue b/src/modules/09_leave/components/05_Leave/Tab2.vue index 9daa0ade5..4394ec295 100644 --- a/src/modules/09_leave/components/05_Leave/Tab2.vue +++ b/src/modules/09_leave/components/05_Leave/Tab2.vue @@ -37,6 +37,7 @@ const querySting = reactive({ //** เรียกข้อมูลจาก API*/ async function fecthLeaveList() { leaveStore.rows = []; + querySting.keyword = querySting.keyword.trim() querySting.status = await (querySting.status == null ? "ALL" : querySting.status); diff --git a/src/modules/09_leave/components/05_Leave/ToolBarLeave.vue b/src/modules/09_leave/components/05_Leave/ToolBarLeave.vue index 6bc11eda3..16621aa43 100644 --- a/src/modules/09_leave/components/05_Leave/ToolBarLeave.vue +++ b/src/modules/09_leave/components/05_Leave/ToolBarLeave.vue @@ -22,7 +22,6 @@ const props = defineProps({ getList: Function, }); - /** Option*/ const optionTypeMain = ref([]); const optionType = ref([]); @@ -156,6 +155,8 @@ watch( emit-value map-options outlined + hide-selected + fill-input dense v-model="querySting.type" :options="optionType" @@ -175,18 +176,15 @@ watch(