From 8130c180f040a3c35bc4e983ffd05ab288cdc712 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 7 Sep 2023 10:48:02 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20Table=20?= =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B6=E0=B8=81=E0=B8=9C?= =?UTF-8?q?=E0=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../04_registry/components/Insignia.vue | 17 ++++---- .../components/PersonalList/Table.vue | 14 ++++--- src/modules/07_insignia/storeResult.ts | 4 +- src/modules/07_insignia/views/ResultPage.vue | 39 +++++++++++++++---- 4 files changed, 53 insertions(+), 21 deletions(-) diff --git a/src/modules/04_registry/components/Insignia.vue b/src/modules/04_registry/components/Insignia.vue index 263f9c8bc..0e3317d15 100644 --- a/src/modules/04_registry/components/Insignia.vue +++ b/src/modules/04_registry/components/Insignia.vue @@ -23,7 +23,7 @@ @click="selectData(props)" class="cursor-pointer" > -
{{ col.value == null ? null : date2Thai(col.value) }} -
-
+
--> +
{{ col.value + 543 }}
@@ -532,7 +532,7 @@ const checkValidate = ref(false); //validate data ผ่านหรื const profileId = ref( route.params.id ? route.params.id.toString() : "" ); -const rows = ref([]); +const rows = ref([]); const filter = ref(""); //search data table const visibleColumns = ref([]); profileData.insignia.columns.length == 0 @@ -550,6 +550,7 @@ profileData.insignia.columns.length == 0 "dateAnnounce", "refCommandNo", "refCommandDate", + "createdAt" ]) : (visibleColumns.value = profileData.insignia.columns); const columns = ref([ @@ -961,13 +962,13 @@ const fetchData = async () => { volume: e.volume, section: e.section, page: e.page, - receiveDate: new Date(e.receiveDate), - dateAnnounce: new Date(e.dateAnnounce), + receiveDate: date2Thai(e.receiveDate), + dateAnnounce: date2Thai(e.dateAnnounce), refCommandNo: e.refCommandNo, refCommandDate: - e.refCommandDate == null ? null : new Date(e.refCommandDate), + e.refCommandDate == null ? null : date2Thai(e.refCommandDate), createdFullName: e.createdFullName, - createdAt: new Date(e.createdAt), + createdAt: date2Thai(e.createdAt), }); }); }) diff --git a/src/modules/05_placement/components/PersonalList/Table.vue b/src/modules/05_placement/components/PersonalList/Table.vue index 90c712a87..ab566ea3e 100644 --- a/src/modules/05_placement/components/PersonalList/Table.vue +++ b/src/modules/05_placement/components/PersonalList/Table.vue @@ -1,5 +1,5 @@