เพิ่ม interface ประวัติการลงเวลา
This commit is contained in:
parent
9ed15251f9
commit
21e1016cae
2 changed files with 11 additions and 2 deletions
|
|
@ -4,4 +4,13 @@ interface FormRef {
|
|||
[key: string]: any
|
||||
}
|
||||
|
||||
export type { FormRef }
|
||||
interface FormData {
|
||||
checkInId: string
|
||||
checkInDate: string | null
|
||||
checkInTime: string
|
||||
checkOutTime: string
|
||||
checkInStatus: string
|
||||
checkOutStatus: string
|
||||
checkInLocation: string
|
||||
}
|
||||
export type { FormRef, FormData }
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ const { date2Thai } = mixin
|
|||
export const useChekIn = defineStore('checkin', () => {
|
||||
const rows = ref<any>()
|
||||
|
||||
async function fetchHistoryList(data: any) {
|
||||
async function fetchHistoryList(data: FormData) {
|
||||
// console.log(data)
|
||||
rows.value = []
|
||||
const datalist = await data.map((e: any) => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue