refactor: show count
This commit is contained in:
parent
81afed88a6
commit
f0d37ca0eb
2 changed files with 4 additions and 2 deletions
|
|
@ -74,6 +74,7 @@ const prop = withDefaults(
|
|||
color?: 'purple' | 'green';
|
||||
currentCustomerName?: string;
|
||||
customerType: CustomerType;
|
||||
countEmployee?: number;
|
||||
}>(),
|
||||
{
|
||||
color: 'green',
|
||||
|
|
@ -261,11 +262,11 @@ watch([customerId, inputSearch, currentStatus], async () => {
|
|||
style="font-size: 1rem; color: var(--stone-6)"
|
||||
/>
|
||||
<div class="q-px-sm">
|
||||
{{ '10' }}
|
||||
{{ countEmployee }}
|
||||
</div>
|
||||
<q-icon name="mdi-home" size="16px" style="color: var(--stone-6)" />
|
||||
<div class="q-px-sm">
|
||||
{{ '2' }}
|
||||
{{ totalBranch }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1660,6 +1660,7 @@ const emptyCreateDialog = ref(false);
|
|||
v-if="currentCustomer"
|
||||
:customer-type="currentCustomer.customerType"
|
||||
:current-customer-name="`${currentCustomer.firstName} ${currentCustomer.lastName}`"
|
||||
:count-employee="currentCustomer._count.employee"
|
||||
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