fix: rebase fail
This commit is contained in:
parent
6cb6caf3d9
commit
aa5adf5789
1 changed files with 28 additions and 39 deletions
|
|
@ -1334,50 +1334,39 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
<div v-if="isMainPage" class="column full-height">
|
<div v-if="isMainPage" class="column full-height">
|
||||||
<div class="row full-width">
|
<div class="row full-width">
|
||||||
<!-- stat -->
|
<!-- stat -->
|
||||||
<div class="col-12 col-sm bordered surface-1 rounded">
|
<div class="col-12 q-mb-md">
|
||||||
<div class="text-weight-bold text-subtitle1 q-pa-md">
|
<div class="scroll">
|
||||||
{{
|
|
||||||
selectorLabel === 'EMPLOYER'
|
|
||||||
? $t('customerEmployerStatTitle')
|
|
||||||
: $t('customerEmployeeStatTitle')
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="q-px-md scroll">
|
|
||||||
<StatCardComponent
|
<StatCardComponent
|
||||||
v-if="customerStats && selectorLabel === 'EMPLOYER'"
|
v-if="customerStats"
|
||||||
labelI18n
|
labelI18n
|
||||||
:branch="
|
:branch="
|
||||||
customerStats.map((v) => ({
|
customerStats &&
|
||||||
count:
|
(selectorLabel === 'EMPLOYER'
|
||||||
v.name === 'CORP'
|
? customerStats.map((v) => ({
|
||||||
? statsCustomerType?.CORP ?? 0
|
count:
|
||||||
: statsCustomerType?.PERS ?? 0,
|
v.name === 'CORP'
|
||||||
label:
|
? statsCustomerType?.CORP ?? 0
|
||||||
v.name === 'CORP'
|
: statsCustomerType?.PERS ?? 0,
|
||||||
? 'customerLegalEntity'
|
label:
|
||||||
: 'customerNaturalPerson',
|
v.name === 'CORP'
|
||||||
color: v.name === 'CORP' ? 'purple' : 'green',
|
? '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"
|
: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>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue