WIP Отображение нерабочего времени
This commit is contained in:
@@ -95,12 +95,6 @@ export default {
|
||||
emits: ["clear-selected-event-data", "close-change-form"],
|
||||
props: {
|
||||
closeForm: Function,
|
||||
ownersData: {
|
||||
type: Array,
|
||||
default() {
|
||||
return [];
|
||||
},
|
||||
},
|
||||
selectedEventData: {
|
||||
type: Object,
|
||||
default() {
|
||||
@@ -135,6 +129,7 @@ export default {
|
||||
id: null,
|
||||
ifClearedForm: true,
|
||||
membersData: [],
|
||||
ownersData: [],
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -488,6 +483,14 @@ export default {
|
||||
.get("general/person/?limit=100")
|
||||
.then((res) => this.saveMembersData(res));
|
||||
},
|
||||
fetchOwnersData() {
|
||||
fetchWrapper
|
||||
.get("general/employee/")
|
||||
.then((res) => this.saveOwnersData(res));
|
||||
},
|
||||
saveOwnersData(res) {
|
||||
this.ownersData = res.results;
|
||||
},
|
||||
saveMembersData(res) {
|
||||
this.membersData = res.results;
|
||||
},
|
||||
@@ -523,6 +526,7 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.fetchOwnersData();
|
||||
this.fetchMembersData();
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user