Changes
This commit is contained in:
@@ -30,28 +30,16 @@ build-imapsync:
|
|||||||
- docker build -t $IMAGE_TAG tools/imapsync
|
- docker build -t $IMAGE_TAG tools/imapsync
|
||||||
- docker push $IMAGE_TAG
|
- docker push $IMAGE_TAG
|
||||||
|
|
||||||
build-hardware-gateway:
|
#build-hardware-gateway:
|
||||||
stage: build
|
|
||||||
tags:
|
|
||||||
- shell
|
|
||||||
- docker-daemon
|
|
||||||
variables:
|
|
||||||
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-HARDWAREGATEWAY
|
|
||||||
script:
|
|
||||||
- echo $IMAGE_TAG
|
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
||||||
- docker build -t $IMAGE_TAG tools/hardwareGateway
|
|
||||||
- docker push $IMAGE_TAG
|
|
||||||
|
|
||||||
#build-backend:
|
|
||||||
# stage: build
|
# stage: build
|
||||||
# tags:
|
# tags:
|
||||||
# - shell
|
# - shell
|
||||||
# - docker-daemon
|
# - docker-daemon
|
||||||
# variables:
|
# variables:
|
||||||
# IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-BACKEND
|
# IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-HARDWAREGATEWAY
|
||||||
# script:
|
# script:
|
||||||
# - echo $IMAGE_TAG
|
# - echo $IMAGE_TAG
|
||||||
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
# - docker build -t $IMAGE_TAG backend
|
# - docker build -t $IMAGE_TAG tools/hardwareGateway
|
||||||
# - docker push $IMAGE_TAG
|
# - docker push $IMAGE_TAG
|
||||||
|
|
||||||
|
|||||||
@@ -57,23 +57,27 @@ const workingTimeInfo = computed(() => {
|
|||||||
|
|
||||||
let times = dataStore.getWorkingTimesByProfileId(itemInfo.value.id)
|
let times = dataStore.getWorkingTimesByProfileId(itemInfo.value.id)
|
||||||
|
|
||||||
times = times.filter(i => dayjs(i.date).isBetween(selectedStartDay.value,selectedEndDay.value,'day'))
|
times = times.filter(i => dayjs(i.date).isBetween(selectedStartDay.value,selectedEndDay.value,'day') && i.end)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let weekFactor = 4.35
|
let weekFactor = 4.35
|
||||||
let monthlyWorkingHours = itemInfo.value.weeklyWorkingHours * weekFactor
|
let monthlyWorkingHours = itemInfo.value.weeklyWorkingHours * weekFactor
|
||||||
|
|
||||||
|
|
||||||
//Eingreicht
|
//Eingreicht
|
||||||
let sumWorkingMinutesEingereicht = 0
|
let sumWorkingMinutesEingereicht = 0
|
||||||
dataStore.getWorkingTimesByProfileId(itemInfo.value.id).filter(i => !i.approved).forEach(time => {
|
times.filter(i => !i.approved).forEach(time => {
|
||||||
const minutes = Math.floor(dayjs(time.end, "HH:mm:ssZ").diff(dayjs(time.start, "HH:mm:ssZ"),'minutes'))
|
console.log(time)
|
||||||
|
const minutes = dayjs(time.end, "HH:mm:ss").diff(dayjs(time.start, "HH:mm:ss"),'minutes')
|
||||||
|
console.log(minutes)
|
||||||
sumWorkingMinutesEingereicht = sumWorkingMinutesEingereicht + minutes
|
sumWorkingMinutesEingereicht = sumWorkingMinutesEingereicht + minutes
|
||||||
})
|
})
|
||||||
|
|
||||||
//Bestätigt
|
//Bestätigt
|
||||||
let sumWorkingMinutesApproved = 0
|
let sumWorkingMinutesApproved = 0
|
||||||
dataStore.getWorkingTimesByProfileId(itemInfo.value.id).filter(i => i.approved).forEach(time => {
|
times.filter(i => i.approved).forEach(time => {
|
||||||
const minutes = Math.floor(dayjs(time.end, "HH:mm:ssZ").diff(dayjs(time.start, "HH:mm:ssZ"),'minutes'))
|
const minutes = Math.floor(dayjs(time.end, "HH:mm:ss").diff(dayjs(time.start, "HH:mm:ss"),'minutes'))
|
||||||
sumWorkingMinutesApproved = sumWorkingMinutesApproved + minutes
|
sumWorkingMinutesApproved = sumWorkingMinutesApproved + minutes
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -95,7 +99,7 @@ const workingTimeInfo = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const getDuration = (time) => {
|
const getDuration = (time) => {
|
||||||
const minutes = Math.floor(dayjs(time.end, "HH:mm:ssZ").diff(dayjs(time.start, "HH:mm:ssZ"),'minutes',true))
|
const minutes = Math.floor(dayjs(time.end, "HH:mm:ss").diff(dayjs(time.start, "HH:mm:ss"),'minutes',true))
|
||||||
const hours = Math.floor(minutes/60)
|
const hours = Math.floor(minutes/60)
|
||||||
return {
|
return {
|
||||||
//dezimal: dez,
|
//dezimal: dez,
|
||||||
@@ -244,7 +248,7 @@ changeRange()
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<UTable
|
<UTable
|
||||||
:rows="dataStore.getWorkingTimesByProfileId(dataStore.getOwnProfile.id)"
|
:rows="dataStore.getWorkingTimesByProfileId(dataStore.activeProfile.id)"
|
||||||
:columns="[
|
:columns="[
|
||||||
{
|
{
|
||||||
key: 'state',
|
key: 'state',
|
||||||
@@ -275,10 +279,10 @@ changeRange()
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #start-data="{row}">
|
<template #start-data="{row}">
|
||||||
{{dayjs(row.start, "HH:mm:ssZ").format("HH:mm")}} Uhr
|
{{dayjs(row.start, "HH:mm:ss").format("HH:mm")}} Uhr
|
||||||
</template>
|
</template>
|
||||||
<template #end-data="{row}">
|
<template #end-data="{row}">
|
||||||
{{dayjs(row.end, "HH:mm:ssZ").format("HH:mm")}} Uhr
|
{{dayjs(row.end, "HH:mm:ss").format("HH:mm")}} Uhr
|
||||||
</template>
|
</template>
|
||||||
<template #duration-data="{row}">
|
<template #duration-data="{row}">
|
||||||
{{getDuration(row).composed}}
|
{{getDuration(row).composed}}
|
||||||
|
|||||||
Reference in New Issue
Block a user