fix: rebase fail

This commit is contained in:
Methapon2001 2024-07-04 13:33:31 +07:00
parent 6cb6caf3d9
commit aa5adf5789

View file

@ -1334,50 +1334,39 @@ watch([inputSearch, currentStatus], async () => {
<div v-if="isMainPage" class="column full-height">
<div class="row full-width">
<!-- stat -->
<div class="col-12 col-sm bordered surface-1 rounded">
<div class="text-weight-bold text-subtitle1 q-pa-md">
{{
selectorLabel === 'EMPLOYER'
? $t('customerEmployerStatTitle')
: $t('customerEmployeeStatTitle')
}}
</div>
<div class="q-px-md scroll">
<div class="col-12 q-mb-md">
<div class="scroll">
<StatCardComponent
v-if="customerStats && selectorLabel === 'EMPLOYER'"
v-if="customerStats"
labelI18n
:branch="
customerStats.map((v) => ({
count:
v.name === 'CORP'
? statsCustomerType?.CORP ?? 0
: statsCustomerType?.PERS ?? 0,
label:
v.name === 'CORP'
? 'customerLegalEntity'
: 'customerNaturalPerson',
color: v.name === 'CORP' ? 'purple' : 'green',
}))
customerStats &&
(selectorLabel === 'EMPLOYER'
? customerStats.map((v) => ({
count:
v.name === 'CORP'
? statsCustomerType?.CORP ?? 0
: statsCustomerType?.PERS ?? 0,
label:
v.name === 'CORP'
? 'customerLegalEntity'
: 'customerNaturalPerson',
icon:
v.name === 'CORP'
? 'mdi-office-building'
: 'mdi-account',
color: v.name === 'CORP' ? 'purple' : 'green',
}))
: [
{
label: 'EMPLOYEE',
count: statsEmployee,
icon: 'mdi-account',
color: 'pink',
},
])
"
:dark="$q.dark.isActive"
nowrap
class="q-mb-md"
/>
<StatCardComponent
v-if="customerStats && selectorLabel === 'EMPLOYEE'"
labelI18n
:branch="[
{
label: 'EMPLOYEE',
count: statsEmployee,
color: 'pink',
},
]"
:dark="$q.dark.isActive"
nowrap
class="q-mb-md"
/>
</div>
</div>