From 1580b0a509a489fd934e65210508c61a5043c295 Mon Sep 17 00:00:00 2001 From: Yuan Date: Fri, 7 Jul 2023 16:25:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=B0=E5=9B=BD=E8=BF=90=E8=A1=8C=E8=AE=A1?= =?UTF-8?q?=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/simulation.js | 18 +- .../datie_02/menus/dispatchWorkMenuBar.vue | 195 +++++++++--------- .../menus/menuDialog/operationPlanDetail.vue | 15 +- .../menus/menuDialog/setOperationPlan.vue | 80 ++++--- 4 files changed, 180 insertions(+), 128 deletions(-) diff --git a/src/api/simulation.js b/src/api/simulation.js index 5463ecec4..116d29784 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -523,10 +523,26 @@ export function sandTableTrainControl(group, params) { params }); } +/** 设置轨道占用 */ +export function setOccupy(simulationId, sectionCodes) { + return request({ + url: `/api/sandTable/${simulationId}/occupy`, + method: 'put', + params: { sectionCodes, occupy: true } + }) +} +/** 按计划运行 */ +export function sandTableRunAsPlan(simulationId, data) { + return request({ + url: `/api/sandTable/${simulationId}/runAsPlan`, + method: 'put', + data, + }) +} /** 获取运行计划详情 */ export function getSandTableRunPlanDetail(simulationId) { return request({ - url: `http://192.168.3.233:9000/api/sandTable/${simulationId}/runPlanDetail`, + url: `/api/sandTable/${simulationId}/runPlanDetail`, method: 'get', }); } diff --git a/src/jmapNew/theme/datie_02/menus/dispatchWorkMenuBar.vue b/src/jmapNew/theme/datie_02/menus/dispatchWorkMenuBar.vue index 4dbff41f9..708ae5813 100644 --- a/src/jmapNew/theme/datie_02/menus/dispatchWorkMenuBar.vue +++ b/src/jmapNew/theme/datie_02/menus/dispatchWorkMenuBar.vue @@ -1,26 +1,27 @@