feat: refs #8001 ticketExpeditionGrafana
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
32b4636706
commit
3ab4574155
|
@ -123,6 +123,12 @@ const columns = computed(() => [
|
||||||
isPrimary: true,
|
isPrimary: true,
|
||||||
action: (row) => showLog(row),
|
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 () => {
|
onMounted(async () => {
|
||||||
stateStore.rightDrawer = true;
|
stateStore.rightDrawer = true;
|
||||||
const filteredColumns = columns.value.filter((col) => col.name !== 'history');
|
const filteredColumns = columns.value.filter((col) => col.name !== 'history');
|
||||||
|
|
Loading…
Reference in New Issue