mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
Merge branch 'main' of bitbucket.org:studiotem/jandl-taskmanager-app
This commit is contained in:
commit
2bedae9318
7 files changed
+63
-51
No files matched your search
@@ -106,6 +106,7 @@ export default {
|
||||
return {
|
||||
'vuecal__cell-split': true,
|
||||
'vuecal__cell-split--highlighted': this.highlightedSplit === split.id,
|
||||
'vuecal__cell-split--weekend': split.isWeekend,
|
||||
[split.class]: !!split.class
|
||||
}
|
||||
},
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
>
|
||||
<template v-slot:split-label="{ split }">
|
||||
<div class="w-100 h-100 d-flex flex-column">
|
||||
<h1 @click="addTimeModal()">Tu mas napojeny modal</h1>
|
||||
<span v-if="split.date" class="d-flex align-center">
|
||||
<img v-if="getHeadingDate(split.date) == 'Dnes'" :src="require('./_img/home-icon.svg')" class="mr-2">
|
||||
<p class="weekday-label">{{ getHeadingDate(split.date) }}</p>
|
||||
@@ -35,10 +34,10 @@
|
||||
</span>
|
||||
|
||||
<span v-if="split.date">
|
||||
<p class="day-name" >{{ split.date.toLocaleDateString('sk-SK', { weekday: 'long' }) }}</p>
|
||||
<p class="day-name" >{{ split.date.toLocaleDateString('en-EN', { weekday: 'long' }) }}</p>
|
||||
</span>
|
||||
|
||||
<div v-if="split.unscheduledTime && split.initials" class="unscheduled-time d-flex align-center text-left">
|
||||
<div v-if="split.unscheduledTime && split.initials" class="unscheduled-time d-flex align-center text-left" :class="{'vuecal__cell-split--weekend': split.isWeekend}">
|
||||
<div class="unscheduled-time-initials d-flex align-center justify-center me-4">
|
||||
<p>{{split.initials}}</p>
|
||||
</div>
|
||||
@@ -161,6 +160,7 @@ export default {
|
||||
|
||||
async eventMoved(e) {
|
||||
this.focusedEventId = e.event.id
|
||||
this.addTimeModal(e.event.id)
|
||||
this.$emit('eventMoved', e)
|
||||
},
|
||||
|
||||
@@ -356,6 +356,11 @@ export default {
|
||||
.vuecal__cell--highlighted,
|
||||
.vuecal__cell--selected
|
||||
background-color: white
|
||||
border-radius: 16px
|
||||
|
||||
.vuecal__cell-split--weekend
|
||||
background-color: #F2E7FE !important
|
||||
border-radius: 16px
|
||||
|
||||
// EVENT
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
<v-select
|
||||
v-model="selectedEmployee"
|
||||
class="subheader-input"
|
||||
:items="employeesNames"
|
||||
:items="employees"
|
||||
item-title="name"
|
||||
item-value="id"
|
||||
label="Zamestnanec"
|
||||
variant="outlined"
|
||||
></v-select>
|
||||
@@ -43,7 +45,6 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
employees: [],
|
||||
employeesNames: [],
|
||||
selectedDate: "",
|
||||
|
||||
// Kaluza: Napojit funkcnost
|
||||
@@ -73,9 +74,6 @@ export default {
|
||||
|
||||
async _getEmployees() {
|
||||
this.employees = await this.$axios.get_auth_data('v1/employees')
|
||||
this.employees.forEach(employee => {
|
||||
this.employeesNames.push(`${employee.name} ${employee.surname} `)
|
||||
})
|
||||
},
|
||||
|
||||
_getWeek(emitDataChanged = true) {
|
||||
|
||||
@@ -56,11 +56,17 @@ export default {
|
||||
name: this.timelineData.name + " " + this.timelineData.surname,
|
||||
initials: this.timelineData.name.charAt(0).toUpperCase() + this.timelineData.surname.charAt(0).toUpperCase(),
|
||||
unscheduledTime: Math.floor(this.timelineData.unscheduled_times[i].time / 60) + "," + String(this.timelineData.unscheduled_times[i].time % 60)[0],
|
||||
date: addDays(date, i)
|
||||
date: addDays(date, i),
|
||||
isWeekend: this.isWeekend(addDays(date, i))
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
isWeekend(date) {
|
||||
if (date.getDay() == 6 || date.getDay() == 0) return true
|
||||
return false
|
||||
},
|
||||
|
||||
formatTimelineDataToTimelineFormat(date) {
|
||||
// format events
|
||||
this.timelineData.tasks.forEach(event => {
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
<v-select
|
||||
v-model="selectedTeam"
|
||||
class="subheader-input"
|
||||
:items="teamsNames"
|
||||
:items="teams"
|
||||
item-title="name"
|
||||
item-value="id"
|
||||
label="Tím"
|
||||
variant="outlined"
|
||||
></v-select>
|
||||
@@ -29,6 +31,7 @@
|
||||
|
||||
<script>
|
||||
import { addDays, subDays } from 'date-fns'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
@@ -43,7 +46,6 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
teams: [],
|
||||
teamsNames: [],
|
||||
|
||||
// Kaluza: Napojit funkcionalitu
|
||||
selectedTeam: '',
|
||||
@@ -55,9 +57,11 @@ export default {
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapGetters('auth', ['user']),
|
||||
|
||||
time() {
|
||||
return this.unscheduledTime
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
created() {
|
||||
@@ -75,9 +79,7 @@ export default {
|
||||
|
||||
async _getTeams() {
|
||||
this.teams = await this.$axios.get_auth_data('v1/teamsx')
|
||||
this.teams.forEach(team => {
|
||||
this.teamsNames.push(team.name)
|
||||
})
|
||||
// this.selectedTeam()
|
||||
},
|
||||
|
||||
_getDay(emitDataChanged = true) {
|
||||
|
||||
Reference in new issue
Block a user