diff --git a/src/api/runplan.js b/src/api/runplan.js index 842b36008..eca337ef7 100644 --- a/src/api/runplan.js +++ b/src/api/runplan.js @@ -89,9 +89,7 @@ export function postCreatePlan(data) { }); } -/** - * 删除运行图 - */ +// 删除运行图 export function deleteRunPlan(planId) { return request({ url: `/api/runPlan/draft/${planId}`, @@ -99,6 +97,15 @@ export function deleteRunPlan(planId) { }); } +// 修改运行图内容 +export function putRunPlanDetail(data) { + return request({ + url: `/api/runPlan/draft/${data.planId}`, + method: 'put', + data: data + }); +} + /** * 发布运行图 */ @@ -221,15 +228,6 @@ export function duplicateService(data) { }); } -/** 修改计划*/ -// export function updatePlanService(data) { -// return request({ -// url: `/api/runPlan/draft/${data.planId}/service/${data.serviceNumber}`, -// method: 'put', -// data: data -// }) -// } - /** 增加任务*/ export function addPlanTrip(data) { return request({ diff --git a/src/views/map/runplan/manage/publish.vue b/src/views/map/runplan/manage/publish.vue index 89dee4444..d48d206a6 100644 --- a/src/views/map/runplan/manage/publish.vue +++ b/src/views/map/runplan/manage/publish.vue @@ -1,9 +1,9 @@