| | |
| | | createPlanBody.wayline_type = wayline.value.template_types[0] |
| | | } |
| | | |
| | | createPlanBody.execute_start_time_arr = getFlyTimeList(createPlanBody) |
| | | |
| | | console.log('createPlanBody', createPlanBody) |
| | | |
| | | if (planBody.task_type === TaskType.Immediate || planBody.task_type === TaskType.Timed) { |
| | | createPlan(workspaceId, createPlanBody) |
| | | .then(res => { |
| | |
| | | closePlan() |
| | | }) |
| | | } else { |
| | | createPlanBody.execute_start_time_arr = getFlyTimeList(createPlanBody) |
| | | |
| | | if (planBody.task_type === TaskType.Repeat) { |
| | | createPlanBody.task_type = 1 |
| | | } else if (planBody.task_type === TaskType.Continuous) { |