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);