From 118ed1296c06c4cb3d7d797b146267f8f76de4ab Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Wed, 4 Sep 2019 16:32:41 +0800 Subject: [PATCH] =?UTF-8?q?desc:=20=E5=A2=9E=E5=8A=A0=E7=90=8F=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E8=BF=90=E8=A1=8C=E5=9B=BE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/runplan.js | 22 ++-- src/views/map/runplan/manage/publish.vue | 9 +- src/views/planMonitor/editTool/menuBar.vue | 16 ++- .../editTool/menus/createEmptyPlan.vue | 12 +- .../editTool/menus/editPlanName.vue | 116 ++++++++++++++++++ .../editTool/menus/openRunPlan.vue | 90 +++++++++----- 6 files changed, 210 insertions(+), 55 deletions(-) create mode 100644 src/views/planMonitor/editTool/menus/editPlanName.vue 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 @@