refactor: add gender
This commit is contained in:
parent
88dd4d9333
commit
4f4de866b0
2 changed files with 3 additions and 1 deletions
|
|
@ -76,6 +76,7 @@ const prop = withDefaults(
|
|||
currentCustomerName?: string;
|
||||
customerType: CustomerType;
|
||||
countEmployee?: number;
|
||||
gender: string;
|
||||
}>(),
|
||||
{
|
||||
color: 'green',
|
||||
|
|
@ -255,7 +256,7 @@ watch([customerId, inputSearch, currentStatus], async () => {
|
|||
>
|
||||
<template #error>
|
||||
<q-img
|
||||
:src="`${customerType === 'CORP' ? '/images/customer-CORP-avartar.png' : '/images/customer-PERS-avartar.png'}`"
|
||||
:src="`${customerType === 'CORP' ? `/images/customer-CORP-avartar-${gender}.png` : `/images/customer-PERS-avartar-${gender}.png`}`"
|
||||
/>
|
||||
</template>
|
||||
</q-img>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue