fix(retirement-detail):send Type

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-10-31 15:04:36 +07:00
parent 68e8e6575d
commit 13a6734f2f

View file

@ -85,6 +85,7 @@ const totalList = ref<number>(0);
// fecth profile
async function fecthProfile() {
rows.value = [];
showLoader();
if (props?.dataProfile?.type === "OFFICER") {
formPagePersonList.keyword =
@ -122,6 +123,7 @@ async function fecthProfile() {
page: formPagePersonList.page,
pageSize: formPagePersonList.pageSize,
keyword: formPagePersonList.keyword,
type: "EMPLOYEE",
})
.then((res) => {
maxPage.value = Math.ceil(
@ -295,7 +297,7 @@ watch(modal, () => {
</q-tr>
</template>
<template v-slot:pagination="scope">
งหมด {{ totalList }} รายการ
งหมด {{ totalList.toLocaleString() }} รายการ
<q-pagination
v-model="formPagePersonList.page"
active-color="primary"
@ -316,35 +318,4 @@ watch(modal, () => {
</q-dialog>
</template>
<style lang="scss">
.custom-header-table {
max-height: 64vh;
.q-table tr:nth-child(odd) td {
background: white;
}
.q-table tr:nth-child(even) td {
background: #f8f8f8;
}
.q-table thead tr {
background: #ecebeb;
}
.q-table thead tr th {
position: sticky;
z-index: 1;
}
/* this will be the loading indicator */
.q-table thead tr:last-child th {
/* height of all previous header rows */
top: 48px;
}
.q-table thead tr:first-child th {
top: 0;
}
}
</style>
<style lang="scss"></style>