diff --git a/src/api/simulation.js b/src/api/simulation.js index dbe149486..00973172e 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -590,3 +590,12 @@ export function getUnreceivedMessages(simulationId, memberId) { method: 'get' }); } + +/** 控制叶佳供货的小车 */ +export function controlYjTrain(simulationId, right) { + return request({ + url: `/api/realDevice/${simulationId}/train`, + method: 'put', + params: { right } + }); +} diff --git a/src/views/newMap/display/simulationMenu/simulationMenu.vue b/src/views/newMap/display/simulationMenu/simulationMenu.vue index d0aea673a..616b4b6c0 100644 --- a/src/views/newMap/display/simulationMenu/simulationMenu.vue +++ b/src/views/newMap/display/simulationMenu/simulationMenu.vue @@ -18,6 +18,7 @@ + + +