refactor: update screen.sm pagination display for various management pages
This commit is contained in:
parent
3331afaaa3
commit
5c5e9fac63
15 changed files with 181 additions and 69 deletions
|
|
@ -144,6 +144,7 @@ export default {
|
||||||
quotationLabor: 'Used to display the list of employees',
|
quotationLabor: 'Used to display the list of employees',
|
||||||
quotationPayment: 'Used to display payment details',
|
quotationPayment: 'Used to display payment details',
|
||||||
orderDetail: 'To display the list of employees in that product',
|
orderDetail: 'To display the list of employees in that product',
|
||||||
|
ofPage: '{current} of {total}',
|
||||||
},
|
},
|
||||||
|
|
||||||
menu: {
|
menu: {
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,7 @@ export default {
|
||||||
quotationLabor: 'ใช้แสดงรายชื่อลูกจ้าง',
|
quotationLabor: 'ใช้แสดงรายชื่อลูกจ้าง',
|
||||||
quotationPayment: 'ใช้แสดงรายละเอียดในการชำระเงิน',
|
quotationPayment: 'ใช้แสดงรายละเอียดในการชำระเงิน',
|
||||||
orderDetail: 'เพื่อแสดงรายชื่อลูกจ้างในสินค้านั้นๆ',
|
orderDetail: 'เพื่อแสดงรายชื่อลูกจ้างในสินค้านั้นๆ',
|
||||||
|
ofPage: '{current} จาก {total}',
|
||||||
},
|
},
|
||||||
|
|
||||||
menu: {
|
menu: {
|
||||||
|
|
|
||||||
|
|
@ -1427,10 +1427,15 @@ watch(
|
||||||
|
|
||||||
<div class="col-4 row justify-center app-text-muted">
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: userData?.result.length,
|
? $t('general.recordsPage', {
|
||||||
total: userData?.total,
|
resultcurrentPage: userData?.result.length,
|
||||||
})
|
total: userData?.total,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: userData?.result.length,
|
||||||
|
total: userData?.total,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 row justify-end">
|
<div class="col-4 row justify-end">
|
||||||
|
|
|
||||||
|
|
@ -698,10 +698,15 @@ watch(
|
||||||
|
|
||||||
<div class="col-4 flex justify-center app-text-muted">
|
<div class="col-4 flex justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: branch?.length,
|
? $t('general.recordsPage', {
|
||||||
total: totalBranch,
|
resultcurrentPage: branch?.length,
|
||||||
})
|
total: totalBranch,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: branch?.length,
|
||||||
|
total: totalBranch,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 flex justify-end">
|
<div class="col-4 flex justify-end">
|
||||||
|
|
|
||||||
|
|
@ -1749,10 +1749,17 @@ const emptyCreateDialog = ref(false);
|
||||||
|
|
||||||
<div class="col-4 flex justify-center app-text-muted">
|
<div class="col-4 flex justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: listCustomer.length,
|
? $t('general.recordsPage', {
|
||||||
total: statsCustomerType.PERS + statsCustomerType.CORP,
|
resultcurrentPage: listCustomer.length,
|
||||||
})
|
total:
|
||||||
|
statsCustomerType.PERS + statsCustomerType.CORP,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: listCustomer.length,
|
||||||
|
total:
|
||||||
|
statsCustomerType.PERS + statsCustomerType.CORP,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -1844,10 +1851,15 @@ const emptyCreateDialog = ref(false);
|
||||||
|
|
||||||
<div class="col-4 flex justify-center app-text-muted">
|
<div class="col-4 flex justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: listEmployee.length,
|
? $t('general.recordsPage', {
|
||||||
total: employeeStats,
|
resultcurrentPage: listEmployee.length,
|
||||||
})
|
total: employeeStats,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: listEmployee.length,
|
||||||
|
total: employeeStats,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -720,12 +720,19 @@ watch([() => pageState.inputSearch, workflowPageSize], fetchWorkflowList);
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 row justify-center app-text-muted">
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: workflowData.length,
|
? $t('general.recordsPage', {
|
||||||
total: pageState.inputSearch
|
resultcurrentPage: workflowData.length,
|
||||||
? workflowData.length
|
total: pageState.inputSearch
|
||||||
: pageState.total,
|
? workflowData.length
|
||||||
})
|
: pageState.total,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: workflowData.length,
|
||||||
|
total: pageState.inputSearch
|
||||||
|
? workflowData.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<nav class="col-4 row justify-end">
|
<nav class="col-4 row justify-end">
|
||||||
|
|
|
||||||
|
|
@ -2482,10 +2482,15 @@ watch(
|
||||||
|
|
||||||
<div class="col-4 row justify-center app-text-muted">
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: productGroup?.length,
|
? $t('general.recordsPage', {
|
||||||
total: totalGroup,
|
resultcurrentPage: productGroup?.length,
|
||||||
})
|
total: totalGroup,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: productGroup?.length,
|
||||||
|
total: totalGroup,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -3186,13 +3191,21 @@ watch(
|
||||||
|
|
||||||
<div class="col-4 row justify-center app-text-muted">
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage:
|
? $t('general.recordsPage', {
|
||||||
productAndServiceTab === 'product'
|
resultcurrentPage:
|
||||||
? product?.length
|
productAndServiceTab === 'product'
|
||||||
: service?.length,
|
? product?.length
|
||||||
total: total,
|
: service?.length,
|
||||||
})
|
total: total,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current:
|
||||||
|
productAndServiceTab === 'product'
|
||||||
|
? product?.length
|
||||||
|
: service?.length,
|
||||||
|
total: total,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 row justify-end">
|
<div class="col-4 row justify-end">
|
||||||
|
|
|
||||||
|
|
@ -736,12 +736,19 @@ async function storeDataLocal(id: string) {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 row justify-center app-text-muted">
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: quotationData.length,
|
? $t('general.recordsPage', {
|
||||||
total: pageState.inputSearch
|
resultcurrentPage: quotationData.length,
|
||||||
? quotationData.length
|
total: pageState.inputSearch
|
||||||
: pageState.total,
|
? quotationData.length
|
||||||
})
|
: pageState.total,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: quotationData.length,
|
||||||
|
total: pageState.inputSearch
|
||||||
|
? quotationData.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<nav class="col-4 row justify-end">
|
<nav class="col-4 row justify-end">
|
||||||
|
|
|
||||||
|
|
@ -756,10 +756,19 @@ watch(
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 row justify-center app-text-muted">
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: data.length,
|
? $t('general.recordsPage', {
|
||||||
total: pageState.inputSearch ? data.length : pageState.total,
|
resultcurrentPage: data.length,
|
||||||
})
|
total: pageState.inputSearch
|
||||||
|
? data.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: data.length,
|
||||||
|
total: pageState.inputSearch
|
||||||
|
? data.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<nav class="col-4 row justify-end">
|
<nav class="col-4 row justify-end">
|
||||||
|
|
|
||||||
|
|
@ -357,10 +357,19 @@ watch([() => pageState.inputSearch, () => pageState.statusFilter], () =>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 row justify-center app-text-muted">
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: data.length,
|
? $t('general.recordsPage', {
|
||||||
total: pageState.inputSearch ? data.length : pageState.total,
|
resultcurrentPage: data.length,
|
||||||
})
|
total: pageState.inputSearch
|
||||||
|
? data.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: data.length,
|
||||||
|
total: pageState.inputSearch
|
||||||
|
? data.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<nav class="col-4 row justify-end">
|
<nav class="col-4 row justify-end">
|
||||||
|
|
|
||||||
|
|
@ -484,12 +484,19 @@ watch(
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 row justify-center app-text-muted">
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: taskOrderList.length,
|
? $t('general.recordsPage', {
|
||||||
total: pageState.inputSearch
|
resultcurrentPage: taskOrderList.length,
|
||||||
? taskOrderList.length
|
total: pageState.inputSearch
|
||||||
: pageState.total,
|
? taskOrderList.length
|
||||||
})
|
: pageState.total,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: taskOrderList.length,
|
||||||
|
total: pageState.inputSearch
|
||||||
|
? taskOrderList.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<nav class="col-4 row justify-end">
|
<nav class="col-4 row justify-end">
|
||||||
|
|
|
||||||
|
|
@ -413,10 +413,19 @@ watch(
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 row justify-center app-text-muted">
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: data.length,
|
? $t('general.recordsPage', {
|
||||||
total: pageState.inputSearch ? data.length : pageState.total,
|
resultcurrentPage: data.length,
|
||||||
})
|
total: pageState.inputSearch
|
||||||
|
? data.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: data.length,
|
||||||
|
total: pageState.inputSearch
|
||||||
|
? data.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<nav class="col-4 row justify-end">
|
<nav class="col-4 row justify-end">
|
||||||
|
|
|
||||||
|
|
@ -412,10 +412,19 @@ watch(
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 row justify-center app-text-muted">
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: data.length,
|
? $t('general.recordsPage', {
|
||||||
total: pageState.inputSearch ? data.length : pageState.total,
|
resultcurrentPage: data.length,
|
||||||
})
|
total: pageState.inputSearch
|
||||||
|
? data.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: data.length,
|
||||||
|
total: pageState.inputSearch
|
||||||
|
? data.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<nav class="col-4 row justify-end">
|
<nav class="col-4 row justify-end">
|
||||||
|
|
|
||||||
|
|
@ -439,10 +439,19 @@ watch(
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 row justify-center app-text-muted">
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: data.length,
|
? $t('general.recordsPage', {
|
||||||
total: pageState.inputSearch ? data.length : pageState.total,
|
resultcurrentPage: data.length,
|
||||||
})
|
total: pageState.inputSearch
|
||||||
|
? data.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: data.length,
|
||||||
|
total: pageState.inputSearch
|
||||||
|
? data.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<nav class="col-4 row justify-end">
|
<nav class="col-4 row justify-end">
|
||||||
|
|
|
||||||
|
|
@ -375,10 +375,19 @@ watch(
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 row justify-center app-text-muted">
|
<div class="col-4 row justify-center app-text-muted">
|
||||||
{{
|
{{
|
||||||
$t('general.recordsPage', {
|
$q.screen.gt.sm
|
||||||
resultcurrentPage: data.length,
|
? $t('general.recordsPage', {
|
||||||
total: pageState.inputSearch ? data.length : pageState.total,
|
resultcurrentPage: data.length,
|
||||||
})
|
total: pageState.inputSearch
|
||||||
|
? data.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
|
: $t('general.ofPage', {
|
||||||
|
current: data.length,
|
||||||
|
total: pageState.inputSearch
|
||||||
|
? data.length
|
||||||
|
: pageState.total,
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<nav class="col-4 row justify-end">
|
<nav class="col-4 row justify-end">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue