From f44643fc61866d3549f75998006161e88332a91b Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 26 Jan 2024 13:22:23 +0100 Subject: [PATCH] refs #6664 perf: show dialog --- src/components/ui/VnConfirm.vue | 3 +- .../Ticket/Negative/TicketDescriptor.vue | 129 +----------------- .../Negative/TicketDescriptorDialog.vue | 10 +- src/pages/Ticket/Negative/TicketList.vue | 29 +++- 4 files changed, 40 insertions(+), 131 deletions(-) diff --git a/src/components/ui/VnConfirm.vue b/src/components/ui/VnConfirm.vue index f8715f685..668621474 100644 --- a/src/components/ui/VnConfirm.vue +++ b/src/components/ui/VnConfirm.vue @@ -66,7 +66,8 @@ async function confirm() { - + + - - - - - - - - {{ t('dialog title') }} - - - - - - - - - - - - - - - diff --git a/src/pages/Ticket/Negative/TicketDescriptorDialog.vue b/src/pages/Ticket/Negative/TicketDescriptorDialog.vue index 1b6086d17..ee65549dc 100644 --- a/src/pages/Ticket/Negative/TicketDescriptorDialog.vue +++ b/src/pages/Ticket/Negative/TicketDescriptorDialog.vue @@ -1,6 +1,7 @@ + + diff --git a/src/pages/Ticket/Negative/TicketList.vue b/src/pages/Ticket/Negative/TicketList.vue index 5ea224e30..3d9032681 100644 --- a/src/pages/Ticket/Negative/TicketList.vue +++ b/src/pages/Ticket/Negative/TicketList.vue @@ -7,20 +7,25 @@ import { useSession } from 'src/composables/useSession'; import TicketFilter from 'pages/Ticket/Negative/TicketFilter.vue'; import TicketDescriptorDialog from 'pages/Ticket/Negative/TicketDescriptorDialog.vue'; import { useQuasar } from 'quasar'; +import VnConfirm from 'components/ui/VnConfirm.vue'; const stateStore = useStateStore(); const { t } = useI18n(); const session = useSession(); const selected = ref([]); +const showTicketDialog= ref(false); +const currentRow= ref(null); const quasar = useQuasar(); const viewSummary = (value) => { - quasar.dialog({ - component: TicketDescriptorDialog, - componentProps: { - id: value, - }, - }); + showTicketDialog.value = true + currentRow.value = value + // quasar.dialog({ + // component: VnConfirm, + // componentProps: { + // id: value, + // }, + // }); }; const columns = computed(() => [ { @@ -170,6 +175,14 @@ const columns = computed(() => [ + + + @@ -192,4 +205,8 @@ const columns = computed(() => [ #false { background-color: $negative; } +div.q-dialog__inner > div{ + max-width: fit-content !important; + background-color: red !important; +}