From 63943f49ac4654d26508dbfeecb646df691a1844 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 11 Sep 2023 18:08:31 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/07_insignia/components/4_Allocate/Main.vue | 7 ++++--- src/modules/07_insignia/store.ts | 2 ++ src/modules/07_insignia/storeResult.ts | 2 ++ src/modules/07_insignia/views/ResultPage.vue | 7 ++++--- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/modules/07_insignia/components/4_Allocate/Main.vue b/src/modules/07_insignia/components/4_Allocate/Main.vue index 59e6b1e0e..22395ddd2 100644 --- a/src/modules/07_insignia/components/4_Allocate/Main.vue +++ b/src/modules/07_insignia/components/4_Allocate/Main.vue @@ -179,6 +179,7 @@ const selectorRound = (round: string) => { selectRound.value = round; const yearFilter = selectRoundOption.value.find((x: any) => x.id == round); roundYear.value = yearFilter?.year; + fecthlistInsignia(); }; const fecthlistInsignia = async () => { @@ -303,7 +304,7 @@ const resetFilter = () => { >
รอบ
- { use-input input-debounce="0" input-class="text-bold text-grey" - @update:emit-value="selectorRound" + @update:model-value="selectorRound(selectRound)" > - +
{ rows.value = listinsignia.value.filter((e: any) => e.insigniaType === type) } else if (type === 'all' && employeeClass !== 'all') { rows.value = listinsignia.value.filter((e: any) => e.employeeType === profileType(employeeClass)) + } else if (type === 'all' && employeeClass === 'all') { + rows.value = listinsignia.value } diff --git a/src/modules/07_insignia/storeResult.ts b/src/modules/07_insignia/storeResult.ts index 27ed3b1b4..001d2b1a9 100644 --- a/src/modules/07_insignia/storeResult.ts +++ b/src/modules/07_insignia/storeResult.ts @@ -72,6 +72,8 @@ export const useResultDataStore = defineStore("insigniaResult", () => { } else if (invoice === 'all' && employeeClass !== 'all') { let list = listInsignia.value.filter((e: any) => e.employeeType === profileType(employeeClass)) rows.value = list + } else if (invoice === 'all' && employeeClass == 'all') { + rows.value = listInsignia.value } } const status = (val: string) => { diff --git a/src/modules/07_insignia/views/ResultPage.vue b/src/modules/07_insignia/views/ResultPage.vue index 865ff1b9c..55908bac5 100644 --- a/src/modules/07_insignia/views/ResultPage.vue +++ b/src/modules/07_insignia/views/ResultPage.vue @@ -274,6 +274,7 @@ const selectorInsignia = () => { }; const selectorRound = (round: string) => { selectRound.value = round; + fecthlistInsignia(); }; const fecthlistInsignia = async () => { showLoader(); @@ -426,7 +427,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
รอบ
- { use-input input-debounce="0" input-class="text-bold text-grey" - @update:emit-value="selectorRound" + @update:model-value="selectorRound(selectRound)" > - +