แก้ฟิลเตอร์ จากล่างขึ้นบนถึง พ้นราชการ

This commit is contained in:
setthawutttty 2024-12-03 15:28:53 +07:00
parent 35422c6963
commit e9280ca4f3
21 changed files with 260 additions and 69 deletions

View file

@ -73,6 +73,7 @@ export const useEvaluateDirectorDataStore = defineStore(
// ข้อมูลในตาราง
const rows = ref<MainList[]>([]);
const rowsData = ref<MainList[]>([]);
function fetchData(data: DataResponseList[]) {
const dataList: MainList[] = data.map((item: DataResponseList) => ({
id: item.id,
@ -92,12 +93,14 @@ export const useEvaluateDirectorDataStore = defineStore(
lastUpdatedAt: item.lastUpdatedAt,
}));
rows.value = dataList;
rowsData.value = dataList;
}
return {
visibleColumns,
columns,
rows,
rowsData,
fetchData,
};
}