[WIP] Фикс post запроса
This commit is contained in:
@@ -148,14 +148,13 @@ export default {
|
||||
);
|
||||
},
|
||||
postCreateSchedule() {
|
||||
let currentEmployee = this.clearEmployee.find((e) => e.schedules);
|
||||
fetchWrapper
|
||||
.post("accounts/schedules/create/", {
|
||||
employee: this.clearEmployee.find((e) => e.schedules).id,
|
||||
employee: currentEmployee.id,
|
||||
active_flg: true,
|
||||
start_date: this.clearEmployee.find((e) => e.schedules).schedules
|
||||
.start_date,
|
||||
end_date: this.clearEmployee.find((e) => e.schedules).schedules
|
||||
.end_date,
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user