diff --git a/src/jmapNew/shape/graph/Train/index.js b/src/jmapNew/shape/graph/Train/index.js index a042d87c0..a021a6769 100644 --- a/src/jmapNew/shape/graph/Train/index.js +++ b/src/jmapNew/shape/graph/Train/index.js @@ -180,7 +180,7 @@ export default class Train extends Group { } if (style.Train.directionArrow.hasArrow) { // 列车运行上下方箭头(eg:宁波yi) const arrowPoint = { x: 0, y: 0 }; - if (model.trainWindowModel) { + if (model.trainWindowModel && model.trainWindowModel.instance) { arrowPoint.x = model.trainWindowModel.instance.computedPoint.x; arrowPoint.y = model.right ? model.trainWindowModel.instance.computedPoint.y + style.Train.directionArrow.distanceBottom : model.trainWindowModel.instance.computedPoint.y - style.Train.directionArrow.distanceTop; } diff --git a/src/views/newMap/display/terminals/terminalMenu.vue b/src/views/newMap/display/terminals/terminalMenu.vue index 3992db29d..142a59446 100644 --- a/src/views/newMap/display/terminals/terminalMenu.vue +++ b/src/views/newMap/display/terminals/terminalMenu.vue @@ -304,7 +304,9 @@ export default { this.changePictureShow('maintainerSelect'); } else if (this.roles === 'DRIVER') { // 司机模拟 - this.changePictureShow('driverAtsWork'); + const trainingDesign = this.$store.state.training.domConfig ? this.$store.state.training.domConfig.trainingDesign : false; + console.log('1111111111111111', trainingDesign); + this.changePictureShow(trainingDesign ? 'driverAtsWork' : 'drivingPlan'); } }, changePictureShow(code) {