[WIP] Фикс переменных, правка стилей
This commit is contained in:
@@ -161,6 +161,20 @@ export default {
|
||||
})
|
||||
.then(() => this.fetchSchedules());
|
||||
},
|
||||
postUpdateSchedule(id) {
|
||||
let currentEmployee = this.clearEmployee.find((e) => e.schedules);
|
||||
fetchWrapper
|
||||
.post(`accounts/schedules/${id}/update/`, {
|
||||
employee: currentEmployee.id,
|
||||
active_flg: true,
|
||||
start_date: currentEmployee.schedules.start_date,
|
||||
end_date: currentEmployee.schedules.end_date,
|
||||
start_time: this.times.start_time,
|
||||
end_time: this.times.end_time,
|
||||
status: this.buttons.find((e) => e.active).work,
|
||||
})
|
||||
.then(() => this.fetchSchedules());
|
||||
},
|
||||
createNewDate(e) {
|
||||
let schedules = {
|
||||
start_date: e.start,
|
||||
|
||||
Reference in New Issue
Block a user