-
ชื่อ - นามสกุล
+
+ ชื่อ - นามสกุล
+
{{
coupleData.prefix || coupleData.firstName || coupleData.lastName
@@ -1138,9 +1143,8 @@ onMounted(async () => {
)
"
:rows="rows"
- :paging="true"
- :rows-per-page-options="[10, 25, 50, 100]"
:visible-columns="visibleColumns"
+ v-model:pagination="pagination"
>
>
diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue
index e9c5e8c7f..232f1f0ea 100644
--- a/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue
+++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/05_Education.vue
@@ -229,6 +229,18 @@ const columns = ref([
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
+ {
+ name: "lastUpdatedAt",
+ align: "left",
+ label: "วันที่แก้ไข",
+ sortable: true,
+ field: "lastUpdatedAt",
+ format: (v) => date2Thai(v, false, true),
+ headerStyle: "font-size: 14px",
+ style: "font-size: 14px",
+ sort: (a: string, b: string) =>
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
+ },
]);
const visibleColumns = ref([
"educationLevel",
@@ -246,10 +258,10 @@ const visibleColumns = ref([
"startDate",
"finishDate",
"note",
+ "lastUpdatedAt",
]);
const pagination = ref({
- page: 1,
- rowsPerPage: 10,
+ sortBy: "lastUpdatedAt",
});
/** Table ประวัติแก้ไขประวัติการศึกษา*/
@@ -458,7 +470,6 @@ const historyColumns = ref([
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
]);
-
const historyVisibleColumns = ref([
"educationLevel",
"institute",
@@ -478,9 +489,8 @@ const historyVisibleColumns = ref([
"lastUpdateFullName",
"lastUpdatedAt",
]);
-const historyPagination = ref({
- page: 1,
- rowsPerPage: 10,
+const paginationHistory = ref({
+ sortBy: "lastUpdatedAt",
});
const editId = ref(""); //id ที่ต้องการแก้ไข
@@ -878,10 +888,10 @@ onMounted(async () => {
bordered
:paging="true"
dense
- v-model:pagination="pagination"
- :rows-per-page-options="[20, 50, 100]"
class="custom-header-table"
:visible-columns="visibleColumns"
+ v-model:pagination="pagination"
+
>
@@ -1528,10 +1538,9 @@ onMounted(async () => {
bordered
:paging="true"
dense
- v-model:pagination="historyPagination"
- :rows-per-page-options="[20, 50, 100]"
class="custom-header-table"
:visible-columns="historyVisibleColumns"
+ v-model:pagination="paginationHistory"
>
@@ -1556,7 +1565,11 @@ onMounted(async () => {
-
+