From c32009a9d257382d3586d64ed44cb4280af53ab5 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 26 Jan 2021 13:07:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=97=E4=BA=AC=E4=BA=8C=E5=8F=B7=E7=BA=BF?= =?UTF-8?q?=E6=8A=98=E8=A1=8C=E6=98=BE=E7=A4=BA=E5=88=97=E8=BD=A6=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/transformHandle.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jmapNew/transformHandle.js b/src/jmapNew/transformHandle.js index 3169d729e..06020b2ea 100644 --- a/src/jmapNew/transformHandle.js +++ b/src/jmapNew/transformHandle.js @@ -52,6 +52,10 @@ class TransformHandle { const stand = store.getters['map/getDeviceByCode'](view.model.standCode); const station = store.getters['map/getDeviceByCode'](stand.stationCode); this.handleStationViewTransform(view, station); + } else if (view.model && view.model._type === 'Train' && view.model.sectionModel) { + const belongStation = view.model.sectionModel.belongStation; + const station = store.getters['map/getDeviceByCode'](belongStation); + this.handleStationViewTransform(view, station); } else if (view.model && (view.model.belongStation || view.model.belongStationCode)) { const belongStation = view.model.belongStation || view.model.belongStationCode; const station = store.getters['map/getDeviceByCode'](belongStation);