- ทั้งหมด {{ dataSpecialTime.total }} รายการ
+ ทั้งหมด {{ total }} รายการ
@@ -349,7 +493,7 @@ onMounted(async () => {
{{
- (dataSpecialTime.page - 1) * dataSpecialTime.pageSize +
+ (pagination.page - 1) * pagination.rowsPerPage +
props.rowIndex +
1
}}
diff --git a/src/modules/16_positionEmployee/components/DialogSelectPerson.vue b/src/modules/16_positionEmployee/components/DialogSelectPerson.vue
index 015698610..ee8f93883 100644
--- a/src/modules/16_positionEmployee/components/DialogSelectPerson.vue
+++ b/src/modules/16_positionEmployee/components/DialogSelectPerson.vue
@@ -337,6 +337,11 @@ function searchData() {
});
}
+function getSearch() {
+ page.value = 1;
+ searchData();
+}
+
/**
* function update PageSize
*/
@@ -405,12 +410,12 @@ watch(
}
);
-/**
- * callback function ทำงานการค้นหาข้อมุลคนครองเมื่อมีการ update Pagination
- */
-watch([() => page.value, () => pageSize.value], () => {
- searchData();
-});
+watch(
+ () => pageSize.value,
+ async () => {
+ getSearch();
+ }
+);
@@ -600,7 +605,7 @@ watch([() => page.value, () => pageSize.value], () => {
color="teal-5"
class="full-height"
icon="search"
- @click="searchData"
+ @click="getSearch()"
/>
@@ -689,6 +694,7 @@ watch([() => page.value, () => pageSize.value], () => {
size="sm"
boundary-links
direction-links
+ @update:model-value="searchData"
>
diff --git a/src/modules/19_condition/view/Main.vue b/src/modules/19_condition/view/Main.vue
index 5169701b7..d518a41c6 100644
--- a/src/modules/19_condition/view/Main.vue
+++ b/src/modules/19_condition/view/Main.vue
@@ -403,7 +403,7 @@ onMounted(async () => {
flat
bordered
dense
- :rows-per-page-options="[10, 25, 50, 100]"
+ :rows-per-page-options="[1, 25, 50, 100]"
:loading="isLoadTable"
v-model:pagination="pagination"
@update:pagination="updatePagination"