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