refector code
This commit is contained in:
parent
067ac5f173
commit
23d6801f80
9 changed files with 338 additions and 217 deletions
|
|
@ -18,8 +18,7 @@ export const useChekIn = defineStore('checkin', () => {
|
|||
*/
|
||||
async function fetchHistoryList(data: FormData[]) {
|
||||
rows.value = []
|
||||
|
||||
const dataList: Datalist[] = await data.map((e: FormData) => ({
|
||||
const dataList: Datalist[] = data.map((e: FormData) => ({
|
||||
checkInId: e.checkInId,
|
||||
checkInDate: e.checkInDate ? date2Thai(e.checkInDate) : null,
|
||||
checkInDateTime: e.checkInDate ? e.checkInDate : e.checkOutDate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue