refactor: v-model page-size and current-page
This commit is contained in:
parent
5e51d369f2
commit
ea4299f749
1 changed files with 3 additions and 0 deletions
|
|
@ -163,6 +163,7 @@ watch(
|
|||
async ([tabName]) => {
|
||||
if (tabName === 'employer') {
|
||||
currentPageCustomer.value = 1;
|
||||
currentBtnOpen.value = [];
|
||||
await fetchListCustomer(true);
|
||||
}
|
||||
if (tabName === 'employee') {
|
||||
|
|
@ -1252,6 +1253,8 @@ const emptyCreateDialog = ref(false);
|
|||
<q-td colspan="100%" style="padding: 16px">
|
||||
<div class="text-center">
|
||||
<TableEmpoloyee
|
||||
v-model:page-size="pageSize"
|
||||
v-model:current-page="currentPageEmployee"
|
||||
:list-employee="listEmployee"
|
||||
:columns-employee="columnsEmployee"
|
||||
@history="(item) => {}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue