From 907a88c6ea293e9ddd78bc3d4e35914ca3377347 Mon Sep 17 00:00:00 2001 From: Yuan Date: Thu, 9 Nov 2023 14:57:31 +0800 Subject: [PATCH] =?UTF-8?q?tms=E9=A1=B5=E9=9D=A2=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/stomp.js | 5 +- src/utils/subscribeCallback.js | 2 +- src/views/jlmap3d/drive/sceneview/tmsPage.vue | 99 +++++++++++++------ .../newMap/display/terminals/terminalMenu.vue | 2 +- 4 files changed, 74 insertions(+), 34 deletions(-) diff --git a/src/utils/stomp.js b/src/utils/stomp.js index 7c2e61ca2..b4ad3f919 100644 --- a/src/utils/stomp.js +++ b/src/utils/stomp.js @@ -33,7 +33,10 @@ export function getTopic(type, group, param) { break; case 'ISCSGATE': topic = `/queue/simulation/${group}/iscs/gate/${param.stationCode}`; - break; + break; + case 'TMS': + topic = `/queue/simulation/${group}/train/001/tms` + break; case 'PIS_STAND': topic = `/queue/simulation/${group}/standPis/${param.standCode}`; break; diff --git a/src/utils/subscribeCallback.js b/src/utils/subscribeCallback.js index 677d1f867..8dac96947 100644 --- a/src/utils/subscribeCallback.js +++ b/src/utils/subscribeCallback.js @@ -37,7 +37,7 @@ export function defaultCallback(Response) { handle(JSON.parse(Response.body)); } function handle(data) { - const msg = data.body; + const msg = data.body; switch (data.type) { case 'Order_Pay_Result': // 订单支付结果消息 store.dispatch('socket/setPayOrder', msg); diff --git a/src/views/jlmap3d/drive/sceneview/tmsPage.vue b/src/views/jlmap3d/drive/sceneview/tmsPage.vue index 606a52ec7..8918c1a8f 100644 --- a/src/views/jlmap3d/drive/sceneview/tmsPage.vue +++ b/src/views/jlmap3d/drive/sceneview/tmsPage.vue @@ -18,7 +18,7 @@ {{ trainInfo.voltage }}V {{ trainInfo.current }}A {{ trainInfo.speed }} km/h - {{ trainInfo.traction }}% + {{ trainInfo.traction }}% {{ trainInfo.mileage || '--' }} {{ trainInfo.nextStation }} {{ trainInfo.destination }} @@ -46,8 +46,8 @@ @@ -60,22 +60,22 @@ @@ -109,6 +109,11 @@ diff --git a/src/views/newMap/display/terminals/terminalMenu.vue b/src/views/newMap/display/terminals/terminalMenu.vue index 7d8ecd3ff..b395f5da4 100644 --- a/src/views/newMap/display/terminals/terminalMenu.vue +++ b/src/views/newMap/display/terminals/terminalMenu.vue @@ -145,7 +145,7 @@ export default { const mapClientList = mapClientMap ? mapClientMap[this.$route.query.simType] : []; if (!mapClientList.length) { this.$store.dispatch('app/animationsClose'); - this.$messageBox('为获取到客户端数据,请查验地图数据!'); + this.$messageBox('未获取到客户端数据,请查验地图数据!'); } mapClientList.forEach(client => { if (clientIdList && clientIdList.length) {