[WIP] Добавил отправку расписания с шаблоном графиков, поправил стили

This commit is contained in:
megavrilinvv
2023-01-23 18:09:09 +03:00
parent 11af24f8bc
commit 5f004e05b6
7 changed files with 34 additions and 33 deletions

View File

@@ -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) {