fix(retirement-detail):send Type
This commit is contained in:
parent
68e8e6575d
commit
13a6734f2f
1 changed files with 4 additions and 33 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue