diff --git a/src/api/competition.js b/src/api/competition.js new file mode 100644 index 000000000..483d58386 --- /dev/null +++ b/src/api/competition.js @@ -0,0 +1,38 @@ +import request from '@/utils/request'; + +/** 裁判退出仿真*/ +export function refereeExitSimulation(group) { + return request({ + url: `/api/v1/competition/room/${group}/refree`, + method: 'delete' + }); +} +/** 裁判进入仿真 */ +export function refereeEnterSimulation(group) { + return request({ + url: `/api/v1/competition/room/${group}/refree`, + method: 'post' + }); +} +/** 裁判查询竞赛人员的房间列表 */ +export function refereeGetCompetitionList(id) { + return request({ + url: `/api/v1/competition/${id}/room`, + method: 'get' + }); +} +/** 参赛者创建演练房间 */ +export function participantCreatTrainingRoom(id, data) { + return request({ + url: `/api/v1/competition/${id}/room`, + method: 'post', + data: data + }); +} +/** 参赛者完成竞赛 */ +export function participantCompleteCompetition(id, group) { + return request({ + url: `/api/v1/competition/${id}/room/${group}`, + method: 'post' + }); +} diff --git a/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js b/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js index 790191d3b..57285b9f7 100644 --- a/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js +++ b/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js @@ -58,6 +58,7 @@ export function Jlmap3dSubscribeNew(jlmap3d,routegroup,jsonwebwork) { // // console.log(event.data); // // } + console.log(event.data); if(event.data.type == "Device_Load_Destroy_3D"){ DeviceDestroy(event.data); return; diff --git a/src/jmapNew/shape/Section/EAxle.js b/src/jmapNew/shape/Section/EAxle.js index c7d07decd..492efc9ec 100644 --- a/src/jmapNew/shape/Section/EAxle.js +++ b/src/jmapNew/shape/Section/EAxle.js @@ -257,7 +257,6 @@ export default class EAxle111 extends Group { setStyle(styles) { if (this.model.shape.isSpecial) { - this.isogonInside.setStyle(styles); this.isogonOutside.setStyle(styles); this.line1.setStyle(styles); this.line2.setStyle(styles); diff --git a/src/scripts/cmdPlugin/Handler.js b/src/scripts/cmdPlugin/Handler.js index 1fde94d33..3c6075115 100644 --- a/src/scripts/cmdPlugin/Handler.js +++ b/src/scripts/cmdPlugin/Handler.js @@ -101,7 +101,7 @@ class Handler { const command = this.getCommand(operation); if (command) { // 判断当前是否是剧本 添加动作指令操作 - if (store.state.scriptRecord.isScriptCommand) { + if (store.state.scriptRecord.isScriptCommand && store.state.scriptRecord.bgSet ) { store.dispatch('scriptRecord/updateScriptCommand', {operationId:command.id, cmdType:operation.cmdType, param:command.get()}); resolve(rtn); } else { diff --git a/src/scripts/cmdPlugin/MenuContextHandler.js b/src/scripts/cmdPlugin/MenuContextHandler.js index 3ec7adf69..464a4a8dd 100644 --- a/src/scripts/cmdPlugin/MenuContextHandler.js +++ b/src/scripts/cmdPlugin/MenuContextHandler.js @@ -62,8 +62,7 @@ class MenuContextHandler { const selected = this.getCurrentStateObject(); let menu = []; const control = this.getStationControl(selected); - - if (control) { + if (control && (!store.state.scriptRecord.bgSet || store.state.scriptRecord.isScriptCommand)) { if (this.getPrdType() != '') { const type = State2SimulationMap[this.getPrdType()]; const status = State2ControlMap[control.controlMode]; // 判断当前模式 diff --git a/src/views/iscs/iscsSystem/config/pis/lcdControl.vue b/src/views/iscs/iscsSystem/config/pis/lcdControl.vue index 9f827a7a0..64cc1e513 100644 --- a/src/views/iscs/iscsSystem/config/pis/lcdControl.vue +++ b/src/views/iscs/iscsSystem/config/pis/lcdControl.vue @@ -7,8 +7,8 @@
- 开启LCD屏 - 关闭LCD屏 + 开启LCD屏 + 关闭LCD屏
确定
@@ -69,3 +69,29 @@ export default { line-height: 30px; } + diff --git a/src/views/jlmap3d/drive/drivecontrol/drivecontrol.vue b/src/views/jlmap3d/drive/drivecontrol/drivecontrol.vue index ab1a69a8e..7392fc72b 100644 --- a/src/views/jlmap3d/drive/drivecontrol/drivecontrol.vue +++ b/src/views/jlmap3d/drive/drivecontrol/drivecontrol.vue @@ -23,11 +23,7 @@ {{ jl3dname }} {{ jl3dmodel }}