非实训设计司机角色跳转司机驾驶客户端
This commit is contained in:
parent
9ea5bef12a
commit
0626d81356
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user