ผูก API และปรับหน้าประวัติการลงเวลาในระบบ checkin
This commit is contained in:
parent
7dfc17dcbb
commit
3ea348f779
5 changed files with 98 additions and 76 deletions
|
|
@ -15,6 +15,7 @@ export const useChekIn = defineStore('checkin', () => {
|
|||
*/
|
||||
async function fetchHistoryList(data: FormData[]) {
|
||||
rows.value = []
|
||||
|
||||
const dataList: Datalist[] = await data.map((e: FormData) => ({
|
||||
checkInId: e.checkInId,
|
||||
checkInDate: e.checkInDate ? date2Thai(e.checkInDate) : null,
|
||||
|
|
@ -28,6 +29,7 @@ export const useChekIn = defineStore('checkin', () => {
|
|||
checkOutLocation: e.checkOutLocation != '' ? e.checkOutLocation : '-',
|
||||
editStatus: e.editStatus != '' ? convertEditStatus(e.editStatus) : '',
|
||||
editReason: e.editReason,
|
||||
isEdit: e.isEdit,
|
||||
}))
|
||||
rows.value = dataList
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue