[Projects overview] Added filter logics and prepared for BE

This commit is contained in:
Matej Glasnák committed 2023-01-27 00:48:39 +01:00
1 parent d7b26d731a
commit 4cd1504343
12 files changed
+1688 -198

No files matched your search

+2 -2
View File
@@ -56,7 +56,7 @@ export default {
this.timelineData[i].splitId = i + 1
this.splitDays.push({
id: i + 1,
employeeId: this.timelineData[i].id,
employeeId: this.timelineData[i].id,
firstName: this.timelineData[i].name,
name: this.timelineData[i].name + " " + this.timelineData[i].surname,
initials: this.timelineData[i].name.charAt(0).toUpperCase() + this.timelineData[i].surname.charAt(0).toUpperCase(),
@@ -121,7 +121,7 @@ export default {
},
async onEventMoved(event) {
console.log("drag", event)
// console.log("drag", event)
const task = this.timelineData.tasks.find(task => task.id == event.event.id)
const newEmployeeId = this.splitDays.find(split => split.id == event.newSplit).employeeId