From 41eac9a6998e1c17dd5bf5042f8859f1856cce5a Mon Sep 17 00:00:00 2001 From: puriphatt Date: Thu, 21 Mar 2024 16:00:45 +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(=E0=B9=83=E0=B8=AB=E0=B8=A1=E0=B9=88):=20?= =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=81=E0=B8=B2=E0=B8=A3=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=B3?= =?UTF-8?q?=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../04_registryNew/components/TableView.vue | 43 +++++++++---------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/src/modules/04_registryNew/components/TableView.vue b/src/modules/04_registryNew/components/TableView.vue index 2e8d46b22..72eae6878 100644 --- a/src/modules/04_registryNew/components/TableView.vue +++ b/src/modules/04_registryNew/components/TableView.vue @@ -74,18 +74,7 @@ const columns = ref([ align: "left", label: "สายงาน", sortable: true, - field: "posPath", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "posType", - align: "left", - label: "สายงาน", - sortable: true, - field: "posPath", + field: (v) => v.posType.posTypeName, headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => @@ -96,7 +85,7 @@ const columns = ref([ align: "left", label: "ระดับชั้นงาน", sortable: true, - field: "posLevel", + field: (v) => v.posLevel.posLevelName, headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => @@ -280,7 +269,7 @@ watch( :grid="store.mode === 'card'" :paging="true" v-model:pagination="pagination" - :rows-per-page-options="[20, 50, 100] " + :rows-per-page-options="[20, 50, 100]" :visible-columns="visibleColumns" @update:pagination="updatePageSizePagination" > @@ -340,7 +329,12 @@ watch(