แก้ไข filter ยืมคืน
This commit is contained in:
parent
2d19b64a31
commit
7f47b78067
1 changed files with 5 additions and 0 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue