Merge branch 'nice_dev' into develop
This commit is contained in:
commit
7a02b9cfe6
4 changed files with 12 additions and 6 deletions
|
|
@ -179,6 +179,7 @@ const selectorRound = (round: string) => {
|
||||||
selectRound.value = round;
|
selectRound.value = round;
|
||||||
const yearFilter = selectRoundOption.value.find((x: any) => x.id == round);
|
const yearFilter = selectRoundOption.value.find((x: any) => x.id == round);
|
||||||
roundYear.value = yearFilter?.year;
|
roundYear.value = yearFilter?.year;
|
||||||
|
fecthlistInsignia();
|
||||||
};
|
};
|
||||||
|
|
||||||
const fecthlistInsignia = async () => {
|
const fecthlistInsignia = async () => {
|
||||||
|
|
@ -303,7 +304,7 @@ const resetFilter = () => {
|
||||||
>
|
>
|
||||||
<div class="bg-grey-1 col-12 row items-center">
|
<div class="bg-grey-1 col-12 row items-center">
|
||||||
<div class="q-pl-md q-pr-sm text-weight-medium text-grey-7">รอบ</div>
|
<div class="q-pl-md q-pr-sm text-weight-medium text-grey-7">รอบ</div>
|
||||||
<selector
|
<q-select
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
borderless
|
borderless
|
||||||
dense
|
dense
|
||||||
|
|
@ -318,9 +319,9 @@ const resetFilter = () => {
|
||||||
use-input
|
use-input
|
||||||
input-debounce="0"
|
input-debounce="0"
|
||||||
input-class="text-bold text-grey"
|
input-class="text-bold text-grey"
|
||||||
@update:emit-value="selectorRound"
|
@update:model-value="selectorRound(selectRound)"
|
||||||
>
|
>
|
||||||
</selector>
|
</q-select>
|
||||||
</div>
|
</div>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-tabs
|
<q-tabs
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,8 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
||||||
rows.value = listinsignia.value.filter((e: any) => e.insigniaType === type)
|
rows.value = listinsignia.value.filter((e: any) => e.insigniaType === type)
|
||||||
} else if (type === 'all' && employeeClass !== 'all') {
|
} else if (type === 'all' && employeeClass !== 'all') {
|
||||||
rows.value = listinsignia.value.filter((e: any) => e.employeeType === profileType(employeeClass))
|
rows.value = listinsignia.value.filter((e: any) => e.employeeType === profileType(employeeClass))
|
||||||
|
} else if (type === 'all' && employeeClass === 'all') {
|
||||||
|
rows.value = listinsignia.value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,8 @@ export const useResultDataStore = defineStore("insigniaResult", () => {
|
||||||
} else if (invoice === 'all' && employeeClass !== 'all') {
|
} else if (invoice === 'all' && employeeClass !== 'all') {
|
||||||
let list = listInsignia.value.filter((e: any) => e.employeeType === profileType(employeeClass))
|
let list = listInsignia.value.filter((e: any) => e.employeeType === profileType(employeeClass))
|
||||||
rows.value = list
|
rows.value = list
|
||||||
|
} else if (invoice === 'all' && employeeClass == 'all') {
|
||||||
|
rows.value = listInsignia.value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const status = (val: string) => {
|
const status = (val: string) => {
|
||||||
|
|
|
||||||
|
|
@ -274,6 +274,7 @@ const selectorInsignia = () => {
|
||||||
};
|
};
|
||||||
const selectorRound = (round: string) => {
|
const selectorRound = (round: string) => {
|
||||||
selectRound.value = round;
|
selectRound.value = round;
|
||||||
|
fecthlistInsignia();
|
||||||
};
|
};
|
||||||
const fecthlistInsignia = async () => {
|
const fecthlistInsignia = async () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
@ -426,7 +427,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
||||||
<div class="bg-grey-1 col-12 row items-center">
|
<div class="bg-grey-1 col-12 row items-center">
|
||||||
<div class="q-pl-md q-pr-sm text-weight-medium text-grey-7">รอบ</div>
|
<div class="q-pl-md q-pr-sm text-weight-medium text-grey-7">รอบ</div>
|
||||||
<div>
|
<div>
|
||||||
<selector
|
<q-select
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
borderless
|
borderless
|
||||||
dense
|
dense
|
||||||
|
|
@ -441,9 +442,9 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
||||||
use-input
|
use-input
|
||||||
input-debounce="0"
|
input-debounce="0"
|
||||||
input-class="text-bold text-grey"
|
input-class="text-bold text-grey"
|
||||||
@update:emit-value="selectorRound"
|
@update:model-value="selectorRound(selectRound)"
|
||||||
>
|
>
|
||||||
</selector>
|
</q-select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue