แก้รายการลา

This commit is contained in:
setthawutttty 2025-04-04 14:33:20 +07:00
parent fe30256a6b
commit dec7214200
5 changed files with 26 additions and 20 deletions

View file

@ -31,7 +31,7 @@ export const useLeavelistDataStore = defineStore("leave", () => {
/**ข้อมูลใน Table*/
const mainData = ref<any>([]);
const rows = ref<DataRows[]>([]);
const rows = ref<any[]>([]);
const columns = ref<QTableProps["columns"]>([]);
const visibleColumns = ref<string[]>([]);
@ -70,7 +70,7 @@ export const useLeavelistDataStore = defineStore("leave", () => {
status: e.status && convertSatatus(e.status),
}));
mainData.value = datalist;
rows.value = mainData.value;
rows.value = datalist;
}
/**
@ -173,7 +173,7 @@ export const useLeavelistDataStore = defineStore("leave", () => {
dataToobar.value = val.map((e: any) => ({
id: e.id,
name: e.name,
code:e.code
code: e.code,
}));
}