diff --git a/src/api/runplan.js b/src/api/runplan.js index 2c2fe6248..c5fe586f0 100644 --- a/src/api/runplan.js +++ b/src/api/runplan.js @@ -253,20 +253,18 @@ export function getRoutingBySDTNumber(params) { } /** 修改计划号*/ -export function updateServiceNumber(planId, serviceNumber, data) { +export function updateServiceNumber(planId, serviceNumber, newServiceNumber) { return request({ - url: `/api/runPlan/draft/${planId}/service/${serviceNumber}/serviceNumber`, - method: 'put', - data: data + url: `/api/runPlan/draft/${planId}/service/${serviceNumber}/serviceNumber?newServiceNumber=${newServiceNumber}`, + method: 'put' }); } /** 修改任务车次号*/ -export function updateTripNumber(planId, SDTNumber, data) { +export function updateTripNumber(planId, SDTNumber, tripNumber) { return request({ - url: `/api/runPlan/draft/${planId}/trip/${SDTNumber}/tripNumber`, - method: 'put', - data: data + url: `/api/runPlan/draft/${planId}/trip/${SDTNumber}/tripNumber?tripNumber=${tripNumber}`, + method: 'put' }); } diff --git a/src/views/planMonitor/editTool/menus/modifyService.vue b/src/views/planMonitor/editTool/menus/modifyService.vue index a9534557f..c3a040a33 100644 --- a/src/views/planMonitor/editTool/menus/modifyService.vue +++ b/src/views/planMonitor/editTool/menus/modifyService.vue @@ -14,13 +14,13 @@