refactor: show Empoloyee in Customer
This commit is contained in:
parent
079b70abdd
commit
f0493c3bbc
1 changed files with 14 additions and 2 deletions
|
|
@ -52,6 +52,7 @@ const currentCustomerUrlImage = defineModel<string | null>(
|
||||||
);
|
);
|
||||||
|
|
||||||
const currentStatus = ref<Status | 'All'>('All');
|
const currentStatus = ref<Status | 'All'>('All');
|
||||||
|
const currentBtnOpen = ref<boolean[]>([]);
|
||||||
const totalBranch = ref(0);
|
const totalBranch = ref(0);
|
||||||
|
|
||||||
const currentPageBranch = ref<number>(1);
|
const currentPageBranch = ref<number>(1);
|
||||||
|
|
@ -83,6 +84,10 @@ onMounted(async () => {
|
||||||
customerBranchFormState.value.currentCustomerId = parts[4];
|
customerBranchFormState.value.currentCustomerId = parts[4];
|
||||||
|
|
||||||
await fetchList();
|
await fetchList();
|
||||||
|
|
||||||
|
branch.value?.forEach((v) => {
|
||||||
|
currentBtnOpen.value.push(false);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
|
|
@ -451,12 +456,19 @@ watch([customerId, inputSearch, currentStatus], async () => {
|
||||||
dense
|
dense
|
||||||
round
|
round
|
||||||
flat
|
flat
|
||||||
@click="() => {}"
|
@click="
|
||||||
|
() => {
|
||||||
|
currentBtnOpen[props.rowIndex] =
|
||||||
|
!currentBtnOpen[props.rowIndex];
|
||||||
|
}
|
||||||
|
"
|
||||||
/>
|
/>
|
||||||
</q-td>
|
</q-td>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
|
|
||||||
<q-tr>asdadadasd</q-tr>
|
<q-tr v-if="currentBtnOpen[props.rowIndex]" class="q-pa-sm">
|
||||||
|
{{ props.rowIndex }}
|
||||||
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template #item="props">
|
<template #item="props">
|
||||||
<div class="col-12 col-md-6">
|
<div class="col-12 col-md-6">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue