refactor: ปรับ ui เปลี่ยนหน้า ของ นายจ้าง
This commit is contained in:
parent
fa7e87d537
commit
1d79d9e911
1 changed files with 40 additions and 11 deletions
|
|
@ -1599,7 +1599,34 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
v-if="listCustomer.length !== 0"
|
v-if="listCustomer.length !== 0"
|
||||||
class="row justify-between q-pt-md"
|
class="row justify-between q-pt-md"
|
||||||
>
|
>
|
||||||
<div class="app-text-muted">
|
<div class="col-4">
|
||||||
|
<div class="row items-center">
|
||||||
|
<div style="width: 80px">{{ $t('showing') }}</div>
|
||||||
|
<div>
|
||||||
|
<q-btn-dropdown dense unelevated :label="pageSize">
|
||||||
|
<q-list>
|
||||||
|
<q-item
|
||||||
|
v-for="v in [10, 30, 50, 100, 500, 1000]"
|
||||||
|
clickable
|
||||||
|
v-close-popup
|
||||||
|
@click="
|
||||||
|
async () => {
|
||||||
|
pageSize = v;
|
||||||
|
await fetchListCustomer();
|
||||||
|
}
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>{{ v }}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
</q-list>
|
||||||
|
</q-btn-dropdown>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('recordsPage', {
|
$t('recordsPage', {
|
||||||
resultcurrentPage: listCustomer.length,
|
resultcurrentPage: listCustomer.length,
|
||||||
|
|
@ -1607,16 +1634,18 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<PaginationComponent
|
<div class="col-4 row justify-end">
|
||||||
v-model:current-page="currentPageCustomer"
|
<PaginationComponent
|
||||||
v-model:max-page="maxPageCustomer"
|
v-model:current-page="currentPageCustomer"
|
||||||
:fetch-data="
|
v-model:max-page="maxPageCustomer"
|
||||||
async () => {
|
:fetch-data="
|
||||||
await fetchListCustomer();
|
async () => {
|
||||||
flowStore.rotate();
|
await fetchListCustomer();
|
||||||
}
|
flowStore.rotate();
|
||||||
"
|
}
|
||||||
/>
|
"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue