WIP EmployeesList подтягивается из Schedules

This commit is contained in:
Daria Golova
2022-12-22 17:26:05 +03:00
parent 4aecbbca36
commit 79faa743fb
5 changed files with 123 additions and 55 deletions

View File

@@ -45,7 +45,7 @@ export default {
CalendarSidebarTeammate,
},
props: {
teamData: Array,
schedulesData: Array,
openFormCreate: Function,
eventStatuses: Array,
url: String,
@@ -74,6 +74,10 @@ export default {
width: this.widthSidebarClose,
};
},
teamData() {
if (this.schedulesData.length === 0) return [];
return this.schedulesData.map((elem) => elem.employee);
},
},
methods: {
changeSize() {