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)"
>
-
+