This commit is contained in:
parent
8b26cc61a5
commit
87b5af7060
|
@ -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}`
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue