0
0
Fork 0

perf: Remove div.col

This commit is contained in:
Javier Segarra 2024-06-18 09:20:45 +02:00
parent c289c247c4
commit dfbc7df54d
1 changed files with 54 additions and 53 deletions

View File

@ -129,59 +129,60 @@ onMounted(() => (_transfer.value = $props.transfer));
</template> </template>
</QTable> </QTable>
<QSeparator vertical spaced /> <QSeparator vertical spaced />
<div class="col"> <QTable
<QTable v-if="transfer.lastActiveTickets"
v-if="transfer.lastActiveTickets" :rows="transfer.lastActiveTickets"
:rows="transfer.lastActiveTickets" :columns="destinationTicketColumns"
:columns="destinationTicketColumns" :title="t('Destination ticket')"
:title="t('Destination ticket')" row-key="id"
row-key="id" :pagination="{ rowsPerPage: 0 }"
:pagination="{ rowsPerPage: 0 }" class="full-width q-mt-md"
class="full-width q-mt-md" :no-data-label="t('globals.noResults')"
:no-data-label="t('globals.noResults')" >
> <template #body-cell-address="{ row }">
<template #body-cell-address="{ row }"> <QTd @click.stop>
<QTd @click.stop> <span>
<span> {{ row.nickname }}
{{ row.nickname }} {{ row.name }}
{{ row.name }} {{ row.street }}
{{ row.street }} {{ row.postalCode }}
{{ row.postalCode }} {{ row.city }}
{{ row.city }} </span>
</span> <QTooltip>
<QTooltip> {{ row.nickname }}
{{ row.nickname }} {{ row.name }}
{{ row.name }} {{ row.street }}
{{ row.street }} {{ row.postalCode }}
{{ row.postalCode }} {{ row.city }}
{{ row.city }} </QTooltip>
</QTooltip> </QTd>
</QTd> </template>
</template>
</QTable> <template #bottom>
<QForm class="q-mt-lg"> <QForm class="q-mt-lg full-width">
<VnInput <VnInput
v-model.number="_transfer.ticketId" v-model.number="_transfer.ticketId"
:label="t('Transfer to ticket')" :label="t('Transfer to ticket')"
:clearable="false" :clearable="false"
> >
<template #append> <template #append>
<QBtn <QBtn
icon="keyboard_arrow_right" icon="keyboard_arrow_right"
color="primary" color="primary"
@click="transferSales(_transfer.ticketId)" @click="transferSales(_transfer.ticketId)"
style="width: 30px" style="width: 30px"
/> />
</template> </template>
</VnInput> </VnInput>
<QBtn <QBtn
:label="t('New ticket')" :label="t('New ticket')"
color="primary" color="primary"
class="full-width q-my-lg" class="full-width q-my-lg"
@click="transferSales()" @click="transferSales()"
/> />
</QForm> </QForm>
</div> </template>
</QTable>
</QCard> </QCard>
</QPopupProxy> </QPopupProxy>
</template> </template>