diff --git a/src/modules/03_recruiting/components/Table.vue b/src/modules/03_recruiting/components/Table.vue
index 32f8f2576..7c7f200c8 100644
--- a/src/modules/03_recruiting/components/Table.vue
+++ b/src/modules/03_recruiting/components/Table.vue
@@ -15,6 +15,7 @@ const props = defineProps({
fetchData: Function,
count: Number,
totalList: Number,
+ total: Number,
pass: Number,
notpass: Number,
missed_exam: Number,
@@ -75,8 +76,8 @@ function updatePagination(newPagination: any) {
}
}
-function getList(enter?: any) {
- if (enter) {
+function getList(enter?: string) {
+ if (enter == "enter") {
pagination.value.page = 1;
props.fetchData?.();
} else {
@@ -193,7 +194,7 @@ watch(
placeholder="ค้นหา"
style="max-width: 200px"
@keydown.enter.prevent="
- nornmalData ? props.onSearch?.() : getList(true)
+ nornmalData ? props.onSearch?.() : getList('enter')
"
>
@@ -245,7 +246,7 @@ watch(
- ทั้งหมด {{ props.count && props.count.toLocaleString() }} รายการ
+ ทั้งหมด {{ props.total?.toLocaleString() }} รายการ
("");
const round = ref("");
const name = ref("");
const count = ref(0);
+const total = ref(0);
const totalList = ref(0);
const pass = ref(0);
const notpass = ref(0);
@@ -368,8 +369,9 @@ async function fetchData() {
notpass.value = header.notpass;
missed_exam.value = header.missed_exam;
other.value = header.other;
+ total.value = res.data.result.total;
totalList.value = Math.ceil(
- header.count / initialPagination.value.rowsPerPage
+ res.data.result.total / initialPagination.value.rowsPerPage
);
if (period != null) {
name.value = period.name;
@@ -505,6 +507,7 @@ onMounted(async () => {
v-model:inputfilter="filter"
v-model:inputvisible="visibleColumns"
v-model:totalList="totalList"
+ v-model:total="total"
v-model:pagination="initialPagination"
:nornmalData="false"
:conclude="true"
diff --git a/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue b/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue
index e914bebf5..08d538298 100644
--- a/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue
+++ b/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue
@@ -36,6 +36,7 @@ const pass = ref(0);
const notpass = ref(0);
const missed_exam = ref(0);
const other = ref(0);
+const total = ref(0);
const totalList = ref(0);
const importId = ref(route.params.id as string); // Period Import Id
@@ -310,8 +311,9 @@ async function fetchData() {
notpass.value = header.notpass;
missed_exam.value = header.missed_exam;
other.value = header.other;
+ total.value = res.data.result.total;
totalList.value = Math.ceil(
- header.count / initialPagination.value.rowsPerPage
+ res.data.result.total / initialPagination.value.rowsPerPage
);
const data = res.data.result.data;
let result: RecruitDetailResponse[] = [];
@@ -444,6 +446,7 @@ onMounted(async () => {
:pagination="initialPagination"
:visible-columns="visibleColumns"
v-model:inputfilter="filter"
+ v-model:total="total"
v-model:inputvisible="visibleColumns"
:nornmalData="false"
:conclude="true"