ref 5987 cardLists actions click propagation fixed
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2023-08-17 13:38:21 +02:00
parent e8775a9585
commit 59f2f1a414
7 changed files with 14 additions and 14 deletions

View File

@ -112,18 +112,18 @@ function viewSummary(id) {
<QBtn <QBtn
flat flat
icon="arrow_circle_right" icon="arrow_circle_right"
@click="navigate(row.id)" @click.stop="navigate(row.id)"
> >
<QTooltip> <QTooltip>
{{ t('components.smartCard.openCard') }} {{ t('components.smartCard.openCard') }}
</QTooltip> </QTooltip>
</QBtn> </QBtn>
<QBtn flat icon="preview" @click="viewSummary(row.id)"> <QBtn flat icon="preview" @click.stop="viewSummary(row.id)">
<QTooltip> <QTooltip>
{{ t('components.smartCard.openSummary') }} {{ t('components.smartCard.openSummary') }}
</QTooltip> </QTooltip>
</QBtn> </QBtn>
<QBtn flat icon="vn:client"> <QBtn flat icon="vn:client" @click.stop>
<QTooltip> <QTooltip>
{{ t('components.smartCard.viewDescription') }} {{ t('components.smartCard.viewDescription') }}
</QTooltip> </QTooltip>

View File

@ -84,7 +84,7 @@ function viewSummary(id) {
flat flat
color="primary" color="primary"
icon="arrow_circle_right" icon="arrow_circle_right"
@click="navigate(row.id)" @click.stop="navigate(row.id)"
> >
<QTooltip> <QTooltip>
{{ t('components.smartCard.openCard') }} {{ t('components.smartCard.openCard') }}
@ -94,7 +94,7 @@ function viewSummary(id) {
flat flat
color="grey-7" color="grey-7"
icon="preview" icon="preview"
@click="viewSummary(row.id)" @click.stop="viewSummary(row.id)"
> >
<QTooltip> <QTooltip>
{{ t('components.smartCard.openSummary') }} {{ t('components.smartCard.openSummary') }}

View File

@ -143,7 +143,7 @@ const ticketsColumns = ref([
<div class="header"> <div class="header">
{{ t('invoiceOut.summary.tickets') }} {{ t('invoiceOut.summary.tickets') }}
</div> </div>
<QTable :columns="ticketsColumns" :rows="tickets" flat> <QTable v-if="tickets" :columns="ticketsColumns" :rows="tickets" flat>
<template #header="props"> <template #header="props">
<QTr :props="props"> <QTr :props="props">
<QTh v-for="col in props.cols" :key="col.name" :props="props"> <QTh v-for="col in props.cols" :key="col.name" :props="props">

View File

@ -113,13 +113,13 @@ function viewSummary(id) {
<QBtn <QBtn
flat flat
icon="arrow_circle_right" icon="arrow_circle_right"
@click="navigate(row.id)" @click.stop="navigate(row.id)"
> >
<QTooltip> <QTooltip>
{{ t('components.smartCard.openCard') }} {{ t('components.smartCard.openCard') }}
</QTooltip> </QTooltip>
</QBtn> </QBtn>
<QBtn flat icon="preview" @click="viewSummary(row.id)"> <QBtn flat icon="preview" @click.stop="viewSummary(row.id)">
<QTooltip> <QTooltip>
{{ t('components.smartCard.openSummary') }} {{ t('components.smartCard.openSummary') }}
</QTooltip> </QTooltip>

View File

@ -105,10 +105,10 @@ const setData = (entity) =>
<VnLv :label="t('ticket.summary.salesPerson')"> <VnLv :label="t('ticket.summary.salesPerson')">
<template #value> <template #value>
<span class="link"> <span class="link">
{{ ticket.client?.salesPersonUser?.name }} {{ entity.client.salesPersonUser.name }}
<WorkerDescriptorProxy <WorkerDescriptorProxy
:id="ticket.client.salesPersonFk" :id="entity.client.salesPersonFk"
v-if="ticket.client.salesPersonFk" v-if="entity.client.salesPersonFk"
/> />
</span> </span>
</template> </template>

View File

@ -120,7 +120,7 @@ function viewSummary(id) {
/> />
</template> </template>
<template #actions> <template #actions>
<QBtn flat icon="preview" @click="viewSummary(row.id)"> <QBtn flat icon="preview" @click.stop="viewSummary(row.id)">
<QTooltip> <QTooltip>
{{ t('components.smartCard.openSummary') }} {{ t('components.smartCard.openSummary') }}
</QTooltip> </QTooltip>

View File

@ -87,13 +87,13 @@ function viewSummary(id) {
<QBtn <QBtn
flat flat
icon="arrow_circle_right" icon="arrow_circle_right"
@click="navigate(row.id)" @click.stop="navigate(row.id)"
> >
<QTooltip> <QTooltip>
{{ t('components.smartCard.openCard') }} {{ t('components.smartCard.openCard') }}
</QTooltip> </QTooltip>
</QBtn> </QBtn>
<QBtn flat icon="preview" @click="viewSummary(row.id)"> <QBtn flat icon="preview" @click.stop="viewSummary(row.id)">
<QTooltip> <QTooltip>
{{ t('components.smartCard.openSummary') }} {{ t('components.smartCard.openSummary') }}
</QTooltip> </QTooltip>