Refactoring code 09_leave
This commit is contained in:
parent
d20fdb0190
commit
94eb31fc26
27 changed files with 289 additions and 577 deletions
|
|
@ -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,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue