[WIP] Добавил отправку расписания с шаблоном графиков, поправил стили
This commit is contained in:
@@ -96,7 +96,7 @@ export default {
|
||||
text: "'В'",
|
||||
},
|
||||
],
|
||||
template: { item: { id: null, label: null } },
|
||||
template: { item: {} },
|
||||
startMonth: moment().startOf("month"),
|
||||
showTime: false,
|
||||
schedulesDate: {},
|
||||
@@ -147,6 +147,7 @@ export default {
|
||||
},
|
||||
filterScheduleEmployee() {
|
||||
let serialized = [];
|
||||
this.template.item = {};
|
||||
this.scheduleList.forEach((e) => {
|
||||
let foundedElem = serialized.find((elem) => elem.id === e.employee.id);
|
||||
if (!foundedElem) {
|
||||
@@ -200,6 +201,8 @@ export default {
|
||||
end_time: this.times.end_time,
|
||||
status: this.buttons.find((e) => e.active)?.work,
|
||||
};
|
||||
if (this.template.item.label)
|
||||
data.kind_template = this.template.item.name;
|
||||
if (this.insideSchedules?.length > 0) {
|
||||
this.postUpdateSchedule();
|
||||
if (this.outsideSchedules) {
|
||||
|
||||
Reference in New Issue
Block a user