fix(03): table layout

This commit is contained in:
puriphatt 2024-09-26 09:56:43 +07:00
parent a623412dc6
commit 61b7f19577

View file

@ -395,7 +395,7 @@ watch([customerId, inputSearch, currentStatus], async () => {
<q-th <q-th
v-for="(v, i) in cols" v-for="(v, i) in cols"
:key="v" :key="v"
:class="{ 'text-left': i === 0 }" :class="{ 'text-left': i === 0 || i === 2 || i === 3 }"
> >
{{ $t(v.label) }} {{ $t(v.label) }}
</q-th> </q-th>
@ -455,7 +455,7 @@ watch([customerId, inputSearch, currentStatus], async () => {
</q-td> </q-td>
<q-td <q-td
v-if="branchFieldSelected.includes('address')" v-if="branchFieldSelected.includes('address')"
class="text-center" class="text-left"
> >
{{ {{
$i18n.locale === 'eng' $i18n.locale === 'eng'
@ -465,13 +465,13 @@ watch([customerId, inputSearch, currentStatus], async () => {
</q-td> </q-td>
<q-td <q-td
v-if="branchFieldSelected.includes('telephone')" v-if="branchFieldSelected.includes('telephone')"
class="text-center" class="text-left"
> >
{{ props.row.telephoneNo || '-' }} {{ props.row.telephoneNo || '-' }}
</q-td> </q-td>
<q-td <q-td
v-if="branchFieldSelected.includes('businessTypePure')" v-if="branchFieldSelected.includes('businessTypePure')"
class="text-center" class="text-left"
> >
{{ useOptionStore().mapOption(props.row.bussinessType) || '-' }} {{ useOptionStore().mapOption(props.row.bussinessType) || '-' }}
</q-td> </q-td>
@ -482,21 +482,6 @@ watch([customerId, inputSearch, currentStatus], async () => {
{{ props.row._count?.employee }} {{ props.row._count?.employee }}
</q-td> </q-td>
<q-td> <q-td>
<q-btn
icon="mdi-eye-outline"
:id="`btn-eye-${props.row.customerName}`"
size="sm"
dense
round
flat
@click="
() => {
customerBranchFormStore.initForm('info', props.row.id);
customerBranchFormState.dialogModal = true;
}
"
/>
<q-btn <q-btn
dense dense
flat flat
@ -531,6 +516,20 @@ watch([customerId, inputSearch, currentStatus], async () => {
/> />
</div> </div>
</q-btn> </q-btn>
<q-btn
icon="mdi-eye-outline"
:id="`btn-eye-${props.row.customerName}`"
size="sm"
dense
round
flat
@click="
() => {
customerBranchFormStore.initForm('info', props.row.id);
customerBranchFormState.dialogModal = true;
}
"
/>
</q-td> </q-td>
</q-tr> </q-tr>