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';
|
color?: 'purple' | 'green';
|
||||||
currentCustomerName?: string;
|
currentCustomerName?: string;
|
||||||
customerType: CustomerType;
|
customerType: CustomerType;
|
||||||
|
countEmployee?: number;
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
color: 'green',
|
color: 'green',
|
||||||
|
|
@ -261,11 +262,11 @@ watch([customerId, inputSearch, currentStatus], async () => {
|
||||||
style="font-size: 1rem; color: var(--stone-6)"
|
style="font-size: 1rem; color: var(--stone-6)"
|
||||||
/>
|
/>
|
||||||
<div class="q-px-sm">
|
<div class="q-px-sm">
|
||||||
{{ '10' }}
|
{{ countEmployee }}
|
||||||
</div>
|
</div>
|
||||||
<q-icon name="mdi-home" size="16px" style="color: var(--stone-6)" />
|
<q-icon name="mdi-home" size="16px" style="color: var(--stone-6)" />
|
||||||
<div class="q-px-sm">
|
<div class="q-px-sm">
|
||||||
{{ '2' }}
|
{{ totalBranch }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1660,6 +1660,7 @@ const emptyCreateDialog = ref(false);
|
||||||
v-if="currentCustomer"
|
v-if="currentCustomer"
|
||||||
: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"
|
||||||
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