forked from verdnatura/salix-front
Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix-front into test
This commit is contained in:
commit
6d1478f703
|
@ -201,7 +201,7 @@ const getExpeditionState = async (expedition) => {
|
||||||
|
|
||||||
const openGrafana = (expeditionFk) => {
|
const openGrafana = (expeditionFk) => {
|
||||||
useOpenURL(
|
useOpenURL(
|
||||||
`https://grafana.verdnatura.es/d/d552ab74-85b4-4e7f-a279-fab7cd9c6124/control-de-expediciones?orgId=1&var-expeditionFk=${expeditionFk}`
|
`https://grafana.verdnatura.es/d/de1njb6p5answd/control-de-expediciones?orgId=1&var-expeditionFk=${expeditionFk}`
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -345,7 +345,7 @@ const getMailStates = async (date) => {
|
||||||
const prevMonth = month == 1 ? 12 : month - 1;
|
const prevMonth = month == 1 ? 12 : month - 1;
|
||||||
const params = {
|
const params = {
|
||||||
month,
|
month,
|
||||||
year: selectedDateYear.value,
|
year: date.getFullYear(),
|
||||||
};
|
};
|
||||||
|
|
||||||
const curMonthStates = (await axios.get(url, { params })).data;
|
const curMonthStates = (await axios.get(url, { params })).data;
|
||||||
|
|
|
@ -102,8 +102,7 @@ const getWorkWeekElements = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const paintWorkWeeks = async () => {
|
const paintWorkWeeks = async () => {
|
||||||
for (var i = 0; i < workWeeksElements.value.length; i++) {
|
for (const element of workWeeksElements.value) {
|
||||||
const element = workWeeksElements.value[i];
|
|
||||||
const week = Number(element.innerHTML);
|
const week = Number(element.innerHTML);
|
||||||
const weekState = workerTimeControlMailsMap.value.get(week);
|
const weekState = workerTimeControlMailsMap.value.get(week);
|
||||||
const { className, title } = stateClasses[weekState] || {};
|
const { className, title } = stateClasses[weekState] || {};
|
||||||
|
|
Loading…
Reference in New Issue