แก้ไข filter ยืมคืน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-11 11:23:02 +07:00
parent 2d19b64a31
commit 7f47b78067

View file

@ -58,6 +58,8 @@ export const useBrrowDataStore = defineStore("insigniaBrrow", () => {
}));
rows.value = list
listInsignia.value = list
console.log(listInsignia.value);
searchDatatable(insignia.value, employeeClass.value)
}
const searchDatatable = (type: string, employeeClass: string) => {
@ -70,7 +72,10 @@ export const useBrrowDataStore = defineStore("insigniaBrrow", () => {
} else if (type == '' && employeeClass !== "all") {
rows.value = listInsignia.value.filter((e: any) => e.profileType == employeeClass
)
} else if (type === '' && employeeClass === "all") {
rows.value = listInsignia.value
}
}
const status = (val: string) => {