แก้เพิ่มข้อมูล profileType

This commit is contained in:
setthawutttty 2025-03-05 14:48:46 +07:00
parent 6fea0f1851
commit df207fa2f2
2 changed files with 2 additions and 1 deletions

View file

@ -129,6 +129,7 @@ async function fetchListLogRecord() {
maxPage.value = Math.ceil(res.data.result.total / rowsPerPage.value);
let datalist: TableRows[] = res.data.result.data.map((e: DataResLog) => ({
id: e.id,
profileType: e.profileType,
fullName: e.fullName,
checkInDate: e.checkInDate && date2Thai(e.checkInDate),
checkInTime: e.checkInTime ? e.checkInTime : "-",
@ -177,7 +178,6 @@ onMounted(async () => {
@update:pagination="updatePagingProp"
v-model:role-status="roleStatus"
/>
<TableList
:total="total"
:rows="rows.length > 0 ? rows : []"

View file

@ -49,6 +49,7 @@ interface DataResTime {
interface DataResLog {
id: string; //id รายการลงเวลาปฏิบัติงาน
fullName: String; //ชื่อ-นามสกุล
profileType: String; //สถานภาพ
checkInDate: Date | null; //วันที่เข้างาน
checkInTime: string; //เวลาเข้างาน
checkInLocation: String; //พิกัดเข้างาน