From 5aa5325126ad41de9535758a8341fc88649e323e Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 27 Mar 2025 10:16:39 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B9=81?= =?UTF-8?q?=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=9C=E0=B8=A5=E0=B8=95=E0=B8=B1?= =?UTF-8?q?=E0=B8=A7=E0=B8=A2=E0=B9=88=E0=B8=AD=E0=B8=AB=E0=B8=99=E0=B9=88?= =?UTF-8?q?=E0=B8=A7=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=E0=B8=97=E0=B8=B5?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84=E0=B8=B3=E0=B8=AA?= =?UTF-8?q?=E0=B8=B1=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/edit/components/Table.vue | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/modules/04_registryPerson/views/edit/components/Table.vue b/src/modules/04_registryPerson/views/edit/components/Table.vue index da359de36..8aed8cfec 100644 --- a/src/modules/04_registryPerson/views/edit/components/Table.vue +++ b/src/modules/04_registryPerson/views/edit/components/Table.vue @@ -82,15 +82,13 @@ const baseColumns = ref([ field: "posNumCodeSit", headerStyle: "font-size: 14px", style: "font-size: 14px", - }, - { - name: "posNumCodeSitAbb", - align: "left", - label: "ตัวย่อหน่วยงานที่ออกคำสั่ง", - sortable: false, - field: "posNumCodeSitAbb", - headerStyle: "font-size: 14px", - style: "font-size: 14px", + format(val, row) { + return row.posNumCodeSitAbb && row.posNumCodeSit + ? `${row.posNumCodeSit} (${row.posNumCodeSitAbb})` + : row.posNumCodeSit + ? row.posNumCodeSit + : "-"; + }, }, { name: "posNo", @@ -250,7 +248,6 @@ const visibleColumns = ref([ "no", "commandDateAffect", "posNumCodeSit", - "posNumCodeSitAbb", "posNo", "positionName", "positionType",