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