From 0e5e7ac5be6fafecbc312fdb7ac81871b87dd477 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 26 Feb 2025 16:52:43 +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=3D=3D>=20sort?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../01_Information/01_Information.vue | 13 +++---- .../01_Information/02_ChangeName.vue | 4 ++ .../10_registry/01_Information/03_Address.vue | 4 +- .../10_registry/01_Information/04_Family.vue | 37 ++++++++++++++++--- .../01_Information/05_Educations.vue | 12 +++--- .../10_registry/01_Information/06_Ability.vue | 9 +++-- .../02_Government/02_Discipline.vue | 6 ++- .../10_registry/02_Government/03_Leave.vue | 14 +++++-- .../10_registry/02_Government/04_Duty.vue | 9 ++++- .../02_Government/05_Actposition.vue | 25 +++++++++++-- .../02_Government/06_Assistance.vue | 19 +++++++++- .../10_registry/03_Salary/02_Nopaid.vue | 11 ++++-- .../04_Achievement/01_Certificate.vue | 13 ++++--- .../04_Achievement/02_Training.vue | 10 +++-- .../04_Achievement/03_Insignia.vue | 10 +++-- .../10_registry/04_Achievement/04_Honor.vue | 9 +++-- .../04_Achievement/05_Assessments.vue | 8 +++- .../04_Achievement/06_DevelopmentPlan.vue | 29 +++++++++------ src/modules/10_registry/05_Other/01_Other.vue | 8 +++- .../10_registry/Dialog/DialogHistory.vue | 6 ++- .../10_registry/tabs/01_information.vue | 2 + .../10_registry/views/requestEditMain.vue | 8 ++-- 22 files changed, 194 insertions(+), 72 deletions(-) diff --git a/src/modules/10_registry/01_Information/01_Information.vue b/src/modules/10_registry/01_Information/01_Information.vue index 6b60732..f97a40e 100644 --- a/src/modules/10_registry/01_Information/01_Information.vue +++ b/src/modules/10_registry/01_Information/01_Information.vue @@ -64,10 +64,9 @@ const visibleColumnsHistory = ref([ "ethnicity", "religion", "phone", - "createdFullName", - "createdAt", + "lastUpdateFullName", + "lastUpdatedAt", ]); - const columnsHistory = ref([ { name: "citizenId", @@ -214,25 +213,25 @@ const columnsHistory = 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: "lastUpdatedAt", headerStyle: "font-size: 14px", style: "font-size: 14px", - format: (v) => date2Thai(v), + format: (v) => date2Thai(v, false, true), sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, diff --git a/src/modules/10_registry/01_Information/02_ChangeName.vue b/src/modules/10_registry/01_Information/02_ChangeName.vue index 89cfdaf..0a36de2 100644 --- a/src/modules/10_registry/01_Information/02_ChangeName.vue +++ b/src/modules/10_registry/01_Information/02_ChangeName.vue @@ -94,6 +94,9 @@ const columns = ref([ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, ]); +const pagination = ref({ + sortBy: "lastUpdatedAt", +}); const visibleColumnsHistory = ref([ "prefix", @@ -309,6 +312,7 @@ onMounted(async () => { :rows-per-page-options="[10, 25, 50, 100]" :visible-columns="visibleColumns" :virtual-scroll-sticky-size-start="48" + v-model:pagination="pagination" >