feat: refs #8001 ticketExpeditionGrafana #865

Merged
robert merged 13 commits from 8001-expeditionGrafana into dev 2024-12-16 12:35:13 +00:00
1 changed files with 13 additions and 0 deletions
Showing only changes of commit 3ab4574155 - Show all commits

View File

@ -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),
robert marked this conversation as resolved
Review

TIP: puedes hacer ({id})=> openGrafana(id)

TIP: puedes hacer ({id})=> openGrafana(id)
},
],
},
]);
@ -200,6 +206,13 @@ const getExpeditionState = async (expedition) => {
}
};
const openGrafana = (expeditionFk) => {
window.open(
robert marked this conversation as resolved Outdated

Si solo usas name puedes usar la misma sintaxis del comentario anterior

Si solo usas name puedes usar la misma sintaxis del comentario anterior
`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');