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>
|
||||
|
|
|
|||
|
|
@ -1659,6 +1659,7 @@ const emptyCreateDialog = ref(false);
|
|||
:customer-type="currentCustomer.customerType"
|
||||
:current-customer-name="`${currentCustomer.firstName} ${currentCustomer.lastName}`"
|
||||
:count-employee="currentCustomer._count.employee"
|
||||
:gender="currentCustomer.gender"
|
||||
v-model:customer-id="currentCustomer.id"
|
||||
v-model:mode-view="gridView"
|
||||
@back="$router.push('/customer-management')"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue