0
0
Fork 0

refs #6321 perf: updates

This commit is contained in:
Javier Segarra 2024-03-15 09:36:30 +01:00
parent e264a13234
commit 674b8bb1dc
2 changed files with 87 additions and 29 deletions

View File

@ -118,16 +118,52 @@ const tableColumnComponents = computed(() => ({
props: {}, props: {},
event: () => ({}), event: () => ({}),
}, },
shipped: {
component: 'span',
props: {},
event: () => ({}),
},
theoreticalhour: {
component: 'span',
props: {},
event: () => ({}),
},
state: {
component: VnSelectFilter,
type: 'select',
filterValue: null,
attrs: {
'option-value': 'id',
'option-label': 'name',
'emit-value': false,
'map-options': false,
'use-input': false,
'hide-selected': false,
options: editableStates.value,
},
event: getInputEvents,
},
agName: {
component: 'span',
props: {},
event: () => ({}),
},
zoneName: {
component: 'span',
props: {},
event: () => ({}),
},
nickname: { nickname: {
component: 'span', component: 'span',
props: {}, props: {},
event: () => ({}), event: () => ({}),
}, },
name: { // name: {
component: 'span', // component: 'span',
props: {}, // props: {},
event: () => ({}), // event: () => ({}),
}, // },
quantity: { quantity: {
component: VnInput, component: VnInput,
props: { props: {
@ -146,22 +182,6 @@ const tableColumnComponents = computed(() => ({
}, },
event: getInputEvents, event: getInputEvents,
}, },
state: {
component: VnSelectFilter,
type: 'select',
filterValue: null,
attrs: {
'option-value': 'id',
'option-label': 'name',
'emit-value': false,
'map-options': false,
'use-input': false,
'hide-selected': false,
options: editableStates.value,
},
event: getInputEvents,
},
alertLevelCode: { alertLevelCode: {
component: 'span', component: 'span',
@ -200,15 +220,15 @@ const columns = computed(() => [
align: 'left', align: 'left',
}, },
{ {
name: 'nickname', name: 'shipped',
label: t('ticket.negative.detail.nickname'), label: t('ticket.negative.detail.shipped'),
field: 'nickname', field: 'shipped',
align: 'left', align: 'left',
}, },
{ {
name: 'name', name: 'theoreticalhour',
label: t('ticket.negative.detail.name'), label: t('ticket.negative.detail.theoreticalhour'),
field: 'name', field: 'theoreticalhour',
align: 'left', align: 'left',
}, },
{ {
@ -217,6 +237,31 @@ const columns = computed(() => [
field: 'stateId', field: 'stateId',
align: 'left', align: 'left',
}, },
{
name: 'agName',
label: t('ticket.negative.detail.agName'),
field: 'agName',
align: 'left',
},
{
name: 'zoneName',
label: t('ticket.negative.detail.zoneName'),
field: 'zoneName',
align: 'left',
},
{
name: 'nickname',
label: t('ticket.negative.detail.nickname'),
field: 'nickname',
align: 'left',
},
// {
// name: 'name',
// label: t('ticket.negative.detail.name'),
// field: 'name',
// align: 'left',
// },
{ {
name: 'quantity', name: 'quantity',
label: t('ticket.negative.detail.quantity'), label: t('ticket.negative.detail.quantity'),
@ -256,7 +301,7 @@ const columns = computed(() => [
defineEmits([...useDialogPluginComponent.emits]); defineEmits([...useDialogPluginComponent.emits]);
const { dialogRef, onDialogHide } = useDialogPluginComponent(); // const { dialogRef, onDialogHide } = useDialogPluginComponent();
// async function changeState(value) { // async function changeState(value) {
/* if (!ticket.value.id) return; /* if (!ticket.value.id) return;

View File

@ -167,8 +167,21 @@ const columns = computed(() => [
</QTd> </QTd>
</template> </template>
<template #body-cell-icons="{ value }"> <template #body-cell-icons="{ row, value }">
<QTd align="center"> <QTd align="center">
<QIcon
@click.stop="updateNegativeOrigin(row)"
class="q-ml-md"
color="primary"
name="outgoing_email"
size="sm"
>
<QTooltip>
{{ t('Preview') }}
</QTooltip>
<!-- <TicketDescriptorProxy :id="value" /> -->
</QIcon>
<QIcon <QIcon
@click.stop="viewSummary(value)" @click.stop="viewSummary(value)"
class="q-ml-md" class="q-ml-md"