From 0ee7c9c8222b651f594d744058b5c73e44878a3f Mon Sep 17 00:00:00 2001 From: oat_dev Date: Fri, 29 Mar 2024 11:34:34 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4:=20=E0=B8=A7=E0=B8=B4=E0=B8=99=E0=B8=B1?= =?UTF-8?q?=E0=B8=A2=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=20?= =?UTF-8?q?=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GovernmentInformation/02_DisciplineHistory.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/GovernmentInformation/02_DisciplineHistory.vue b/src/modules/04_registryNew/components/detail/GovernmentInformation/02_DisciplineHistory.vue index 371a1ac17..a98088d4f 100644 --- a/src/modules/04_registryNew/components/detail/GovernmentInformation/02_DisciplineHistory.vue +++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/02_DisciplineHistory.vue @@ -45,6 +45,8 @@ const visibleColumns = ref([ "date", "createdFullName", "createdAt", + "lastUpdateFullName", + "lastUpdatedAt", ]); const columns = ref([ { @@ -116,22 +118,22 @@ const columns = ref([ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "createdFullName", + name: "lastUpdateFullName", align: "left", label: "ผู้ดำเนินการ", sortable: true, - field: "createdFullName", + field: "lastUpdateFullName", headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "createdAt", + name: "lastUpdatedAt", align: "left", label: "วันที่แก้ไข", sortable: true, - field: "createdAt", + field: "lastUpdatedAt", format: (v) => date2Thai(v), headerStyle: "font-size: 14px", style: "font-size: 14px", @@ -149,6 +151,7 @@ function getHistory() { rows.value = []; data.map((e: RequestItemsObject) => { rows.value.push({ + ...e, id: e.id, level: e.level, detail: e.detail, @@ -156,9 +159,6 @@ function getHistory() { refCommandNo: e.refCommandNo, refCommandDate: e.refCommandDate == null ? null : new Date(e.refCommandDate), - date: new Date(e.date), - createdFullName: e.createdFullName, - createdAt: new Date(e.createdAt), }); }); })