bug: 1 & 紧急停车调整 & bug: 10
This commit is contained in:
parent
614f835701
commit
16206cd003
@ -14,13 +14,13 @@ class EEmergentCross extends Group {
|
||||
const model = this.model.modelData;
|
||||
const style = this.model.style;
|
||||
|
||||
const emergentOffset = model.inside ? style.StationStand.emergentCross.insideOffset : style.StationStand.emergentCross.outsideOffset;
|
||||
const emergentOffset = model.inside ? style.StationStand.emergentRhombus.insideOffset : style.StationStand.emergentRhombus.outsideOffset;
|
||||
const emergentH = model.right ? 1 : -1;
|
||||
const emergentX = model.position.x + emergentH * emergentOffset.x;
|
||||
const emergentY = model.position.y + emergentH * emergentOffset.y;
|
||||
|
||||
model.r = style.StationStand.emergentCross.mergentR;
|
||||
model.n = style.StationStand.emergentCross.mergentN;
|
||||
model.r = style.StationStand.emergentRhombus.mergentR;
|
||||
model.n = style.StationStand.emergentRhombus.mergentN;
|
||||
|
||||
this.emergent = new Isogon({
|
||||
zlevel: this.model.zlevel,
|
||||
@ -33,7 +33,7 @@ class EEmergentCross extends Group {
|
||||
},
|
||||
style: {
|
||||
lineWidth: 2,
|
||||
stroke:style.StationStand.emergentCross.defaultColor
|
||||
stroke:style.StationStand.emergentRhombus.defaultColor
|
||||
}
|
||||
});
|
||||
this.add(this.emergent);
|
||||
@ -52,7 +52,7 @@ class EEmergentCross extends Group {
|
||||
},
|
||||
style:{
|
||||
lineWidth:2,
|
||||
stroke:style.StationStand.emergentCross.defaultColor
|
||||
stroke:style.StationStand.emergentRhombus.defaultColor
|
||||
}
|
||||
});
|
||||
this.emergentLine2 = new Line({
|
||||
@ -66,7 +66,7 @@ class EEmergentCross extends Group {
|
||||
},
|
||||
style:{
|
||||
lineWidth:2,
|
||||
stroke:style.StationStand.emergentCross.defaultColor
|
||||
stroke:style.StationStand.emergentRhombus.defaultColor
|
||||
}
|
||||
});
|
||||
this.add(this.emergentLine1);
|
||||
|
@ -49,7 +49,7 @@ class EHollowStand extends Group {
|
||||
// 停车
|
||||
model.trainParking && this.setColor(style.StationStand.hollowStand.doorOpenColor);
|
||||
// 紧急停车
|
||||
model.emergencyClosed && this.setColor(this.style.StationStand.hollowStand.spareColor);
|
||||
model.emergencyClosed && this.setColor(style.StationStand.hollowStand.spareColor);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -84,7 +84,7 @@ class ESolidStand extends Group {
|
||||
model.trainParking && this.setColor(style.StationStand.solidStand.stopColor);
|
||||
model.trainParking && this.setStroke(style.StationStand.solidStand.doorOpenColor);
|
||||
// 紧急停车
|
||||
model.emergencyClosed && this.setColor(this.style.StationStand.solidStand.spareColor);
|
||||
model.emergencyClosed && this.setColor(style.StationStand.solidStand.spareColor);
|
||||
} else {
|
||||
this.handlePassagerColor(model.num);
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ export default {
|
||||
parkingTime: this.control === '01' ? -1 : this.time,
|
||||
parkingAlwaysValid: this.control === '01' ? true : this.effective
|
||||
},
|
||||
messages: [`${this.$t('menu.stopTime') + this.$t('global.colon') + this.stationName} - ${this.standName}, ${this.$t('menu.stopTimeIs')}${this.control == '01' ? this.$t('menu.automatic2') : this.time + this.$t('global.second')}, ${this.$t('menu.effectiveFrequencyIs')}${this.effective == false ? this.$t('menu.alwaysEffective') : this.$t('menu.onceEffective')}`]
|
||||
messages: [`${this.$t('menu.stopTime') + this.$t('global.colon') + this.stationName} - ${this.standName}, ${this.$t('menu.stopTimeIs')}${this.control == '01' ? this.$t('menu.automatic2') : this.time + this.$t('global.second')}, ${this.$t('menu.effectiveFrequencyIs')}${this.effective == true ? this.$t('menu.alwaysEffective') : this.$t('menu.onceEffective')}`]
|
||||
};
|
||||
|
||||
this.loading = true;
|
||||
|
@ -58,7 +58,7 @@ export function handleMapData(mapData, type) {
|
||||
}
|
||||
}
|
||||
export function loadRunPlanData(group, dataError) {
|
||||
if (!store.state.runPlan.runPlanInfo) {
|
||||
if (!store.state.runPlan.runPlanInfo || !store.state.runPlan.runPlanInfo.templateId) {
|
||||
MessageBox.confirm('未获取到运行图信息!', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
showCancelButton: false,
|
||||
|
@ -129,7 +129,7 @@ export default {
|
||||
}
|
||||
},
|
||||
doShow() {
|
||||
this.newModel.map = this.$route.params.mapId || this.$route.query.mapId;
|
||||
this.newModel.mapId = this.$route.params.mapId || this.$route.query.mapId;
|
||||
this.pullModel.mapId = this.$route.params.mapId || this.$route.query.mapId;
|
||||
this.dialogShow = true;
|
||||
this.initLoad();
|
||||
|
@ -129,7 +129,7 @@ export default {
|
||||
}
|
||||
},
|
||||
doShow() {
|
||||
this.newModel.map = this.$route.params.mapId || this.$route.query.mapId;
|
||||
this.newModel.mapId = this.$route.params.mapId || this.$route.query.mapId;
|
||||
this.pullModel.mapId = this.$route.params.mapId || this.$route.query.mapId;
|
||||
this.dialogShow = true;
|
||||
this.initLoad();
|
||||
|
Loading…
Reference in New Issue
Block a user