แก้บันทึกผลเครื่องราชทะเบียนประวัติไม่ได้

This commit is contained in:
Kittapath 2023-09-07 18:28:14 +07:00
parent b93a03d0d2
commit a8b3b0dcb0

View file

@ -23,17 +23,18 @@
@click="selectData(props)" @click="selectData(props)"
class="cursor-pointer" class="cursor-pointer"
> >
<!-- <div <div
v-if=" v-if="
col.name == 'receiveDate' || col.name == 'receiveDate' ||
col.name == 'dateAnnounce' || col.name == 'dateAnnounce' ||
col.name == 'createdAt' ||
col.name == 'refCommandDate' col.name == 'refCommandDate'
" "
class="table_ellipsis" class="table_ellipsis"
> >
{{ col.value == null ? null : date2Thai(col.value) }} {{ col.value == null ? null : date2Thai(col.value) }}
</div> --> </div>
<div v-if="col.name == 'year'" class="table_ellipsis"> <div v-else-if="col.name == 'year'" class="table_ellipsis">
{{ col.value + 543 }} {{ col.value + 543 }}
</div> </div>
<div v-else class="table_ellipsis"> <div v-else class="table_ellipsis">
@ -550,7 +551,7 @@ profileData.insignia.columns.length == 0
"dateAnnounce", "dateAnnounce",
"refCommandNo", "refCommandNo",
"refCommandDate", "refCommandDate",
"createdAt" "createdAt",
]) ])
: (visibleColumns.value = profileData.insignia.columns); : (visibleColumns.value = profileData.insignia.columns);
const columns = ref<QTableProps["columns"]>([ const columns = ref<QTableProps["columns"]>([
@ -953,7 +954,7 @@ const fetchData = async () => {
rows.value.push({ rows.value.push({
id: e.id, id: e.id,
insignia: e.insignia == null ? null : e.insignia.name, insignia: e.insignia == null ? null : e.insignia.name,
insigniaId: e.insigniaId, insigniaId: e.insignia == null ? null : e.insignia.id,
insigniaType: e.insigniaType, insigniaType: e.insigniaType,
year: e.year, year: e.year,
no: e.no, no: e.no,
@ -962,13 +963,13 @@ const fetchData = async () => {
volume: e.volume, volume: e.volume,
section: e.section, section: e.section,
page: e.page, page: e.page,
receiveDate: date2Thai(e.receiveDate), receiveDate: new Date(e.receiveDate),
dateAnnounce: date2Thai(e.dateAnnounce), dateAnnounce: new Date(e.dateAnnounce),
refCommandNo: e.refCommandNo, refCommandNo: e.refCommandNo,
refCommandDate: refCommandDate:
e.refCommandDate == null ? null : date2Thai(e.refCommandDate), e.refCommandDate == null ? null : new Date(e.refCommandDate),
createdFullName: e.createdFullName, createdFullName: e.createdFullName,
createdAt: date2Thai(e.createdAt), createdAt: new Date(e.createdAt),
}); });
}); });
}) })