select insigia

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-15 12:40:12 +07:00
parent 168b17da44
commit c102d3bb66
4 changed files with 8 additions and 8 deletions

View file

@ -85,9 +85,9 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
};
const searchDataTable = async (type: string, employeeClass: string) => {
if (type !== 'all' && employeeClass !== 'all') {
rows.value = listinsignia.value.filter((e: any) => e.insigniaType === type && e.employeeType === profileType(employeeClass))
rows.value = listinsignia.value.filter((e: any) => e.insigniaSend === type && e.employeeType === profileType(employeeClass))
} else if (type !== 'all' && employeeClass === 'all') {
rows.value = listinsignia.value.filter((e: any) => e.insigniaType === type)
rows.value = listinsignia.value.filter((e: any) => e.insigniaSend === type)
} else if (type === 'all' && employeeClass !== 'all') {
rows.value = listinsignia.value.filter((e: any) => e.employeeType === profileType(employeeClass))
} else if (type === 'all' && employeeClass === 'all') {