From 7e3ddc3fa0da893de5b80272b5d7187b7bdb5f72 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Wed, 31 Jan 2024 17:54:34 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20date2thai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../02_organizationalNew/components/DialogHistory.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/02_organizationalNew/components/DialogHistory.vue b/src/modules/02_organizationalNew/components/DialogHistory.vue index 3fd4484ad..060dbedd5 100644 --- a/src/modules/02_organizationalNew/components/DialogHistory.vue +++ b/src/modules/02_organizationalNew/components/DialogHistory.vue @@ -76,13 +76,13 @@ function postData() { }) .then((res) => { const dataList = res.data.result; - dataList.map((item: HistoryPostType) => ({ + const dataMap = dataList.map((item: HistoryPostType) => ({ id: item.id ? item.id : "-", name: item.name ? item.name : "-", - lastUpdatedAt: item.lastUpdatedAt ? date2Thai(item.lastUpdatedAt,false,true) : "-", + lastUpdatedAt: item.lastUpdatedAt ? date2Thai(item.lastUpdatedAt as Date,false,true) : "-", orgRevisionName: item.orgRevisionName ? item.orgRevisionName : "-", })); - rows.value = dataList; + rows.value = dataMap; }) .catch((e) => { messageError($q, e); @@ -105,7 +105,7 @@ watch( @@ -137,7 +137,7 @@ watch( v-if="col.name === 'name'" class="text-weight-medium" > - {{ type === 0 ? "ชื่อหน่อยงาน" : "ส่วนราชการ" }} + {{ type === 0 ? "ชื่อหน่วยงาน" : "ส่วนราชการ" }} {{ col.label }}