From 3ab4574155de6064f966af58614297e75c5c09d0 Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 24 Oct 2024 13:35:57 +0200 Subject: [PATCH] feat: refs #8001 ticketExpeditionGrafana --- src/pages/Ticket/Card/TicketExpedition.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/pages/Ticket/Card/TicketExpedition.vue b/src/pages/Ticket/Card/TicketExpedition.vue index bd63f259c..6a0989644 100644 --- a/src/pages/Ticket/Card/TicketExpedition.vue +++ b/src/pages/Ticket/Card/TicketExpedition.vue @@ -123,6 +123,12 @@ const columns = computed(() => [ isPrimary: true, action: (row) => showLog(row), }, + { + title: t('Grafana'), + icon: 'vn:grafana', + isPrimary: true, + action: (row) => openGrafana(row.id), + }, ], }, ]); @@ -200,6 +206,13 @@ const getExpeditionState = async (expedition) => { } }; +const openGrafana = (expeditionFk) => { + window.open( + `https://grafana.verdnatura.es/d/d552ab74-85b4-4e7f-a279-fab7cd9c6124/control-de-expediciones?orgId=1&var-expeditionFk=${expeditionFk}`, + '_blank' + ); +}; + onMounted(async () => { stateStore.rightDrawer = true; const filteredColumns = columns.value.filter((col) => col.name !== 'history');