feat: refs #8001 change request
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Robert Ferrús 2024-11-29 08:38:38 +01:00
parent 8b26cc61a5
commit 87b5af7060
1 changed files with 4 additions and 4 deletions

View File

@ -17,6 +17,7 @@ import axios from 'axios';
import VnTable from 'src/components/VnTable/VnTable.vue';
import VnBtnSelect from 'src/components/common/VnBtnSelect.vue';
import FetchData from 'src/components/FetchData.vue';
import useOpenURL from 'src/composables/useOpenURL';
const route = useRoute();
const stateStore = useStateStore();
@ -127,7 +128,7 @@ const columns = computed(() => [
title: t('Grafana'),
icon: 'vn:grafana',
isPrimary: true,
action: (row) => openGrafana(row.id),
action: ({ id }) => openGrafana(id),
},
],
},
@ -199,9 +200,8 @@ 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'
useOpenURL(
`https://grafana.verdnatura.es/d/d552ab74-85b4-4e7f-a279-fab7cd9c6124/control-de-expediciones?orgId=1&var-expeditionFk=${expeditionFk}`
);
};