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;
|
currentCustomerName?: string;
|
||||||
customerType: CustomerType;
|
customerType: CustomerType;
|
||||||
countEmployee?: number;
|
countEmployee?: number;
|
||||||
|
gender: string;
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
color: 'green',
|
color: 'green',
|
||||||
|
|
@ -255,7 +256,7 @@ watch([customerId, inputSearch, currentStatus], async () => {
|
||||||
>
|
>
|
||||||
<template #error>
|
<template #error>
|
||||||
<q-img
|
<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>
|
</template>
|
||||||
</q-img>
|
</q-img>
|
||||||
|
|
|
||||||
|
|
@ -1659,6 +1659,7 @@ const emptyCreateDialog = ref(false);
|
||||||
:customer-type="currentCustomer.customerType"
|
:customer-type="currentCustomer.customerType"
|
||||||
:current-customer-name="`${currentCustomer.firstName} ${currentCustomer.lastName}`"
|
:current-customer-name="`${currentCustomer.firstName} ${currentCustomer.lastName}`"
|
||||||
:count-employee="currentCustomer._count.employee"
|
:count-employee="currentCustomer._count.employee"
|
||||||
|
:gender="currentCustomer.gender"
|
||||||
v-model:customer-id="currentCustomer.id"
|
v-model:customer-id="currentCustomer.id"
|
||||||
v-model:mode-view="gridView"
|
v-model:mode-view="gridView"
|
||||||
@back="$router.push('/customer-management')"
|
@back="$router.push('/customer-management')"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue