Refactoring code 09_leave

This commit is contained in:
STW_TTTY\stwtt 2024-09-18 17:26:53 +07:00
parent d20fdb0190
commit 94eb31fc26
27 changed files with 289 additions and 577 deletions

View file

@ -12,20 +12,6 @@ export const useWorklistDataStore = defineStore("work", () => {
/** ค้นหาวัน ข้อมูล Table */
const selectDate = ref<Date | null>(new Date());
// function filterFn(val: string, update: Function) {
// if (val == "") {
// update(() => {
// optionStatus.value = optionStatusMain.value;
// });
// } else {
// update(() => {
// optionStatus.value = optionStatusMain.value.filter(
// (e: any) => e.name.search(val) !== -1
// );
// });
// }
// }
// convertSatatus
/**
* function
@ -44,17 +30,9 @@ export const useWorklistDataStore = defineStore("work", () => {
}
}
return {
//ข้อมูลในตาราง
columns,
visibleColumns,
// fetchListLog,
// fetchListTime,
//ค้นหาข้อมูล
selectDate,
// filterFn,
convertSatatus,
};
});