宁波三号线(泰雷兹)
扣车后没有显示扣车标识修改
This commit is contained in:
parent
103cecffa1
commit
c52474b771
@ -389,7 +389,7 @@ class SkinCode extends defaultStyle {
|
||||
solidStand:{
|
||||
// 层级
|
||||
z:0,
|
||||
spareColor: '#0080C0', // 站台空闲颜色
|
||||
spareColor: '#0000ff', // 站台空闲颜色
|
||||
spareStrokeColor: '#000000', // 站台空闲描边颜色
|
||||
jumpStopColor: '#C00000', // 站台跳停颜色
|
||||
designatedJumpStopColor: 'lightSkyBlue', // 站台指定列车跳停颜色
|
||||
@ -397,7 +397,9 @@ class SkinCode extends defaultStyle {
|
||||
doorOpenColor:'#00FF00', // 车门开启状态颜色
|
||||
stopColor: '#0080C0', // 站台列车停站颜色
|
||||
virtualColor: '#585858', // 虚拟站台颜色
|
||||
lineWidth: 6 // 站台线宽
|
||||
lineWidth: 6, // 站台线宽
|
||||
systemHoldTrainColor:'#0f0', // 系统扣车颜色
|
||||
stationHoldTrainColor:'#ff0' // 站台扣车颜色
|
||||
},
|
||||
// 站台紧急关闭
|
||||
emergentRhombus:{
|
||||
|
@ -31,6 +31,26 @@ class ESolidStand extends Group {
|
||||
});
|
||||
this.add(this.stand);
|
||||
|
||||
if (style.StationStand.solidStand.stationHoldTrainColor) {
|
||||
const direction = model.right ? 1 : -1;
|
||||
this.holdTrain = new Rect({
|
||||
zlevel: this.model.zlevel,
|
||||
z: this.model.z + 2,
|
||||
shape: {
|
||||
x: standX,
|
||||
y: standY + (1 - direction) / 2 * model.height / 2,
|
||||
width: model.width,
|
||||
height: model.height / 2
|
||||
},
|
||||
style: {
|
||||
fill:style.StationStand.solidStand.spareColor,
|
||||
lineWidth: 0
|
||||
}
|
||||
});
|
||||
this.add(this.holdTrain);
|
||||
this.holdTrain.hide();
|
||||
}
|
||||
|
||||
const path = window.location.href;
|
||||
if (path.includes('/practiceDisplay')) {
|
||||
// 文字描述
|
||||
@ -68,6 +88,27 @@ class ESolidStand extends Group {
|
||||
recover() {
|
||||
const style = this.model.style;
|
||||
this.setColor(style.StationStand.solidStand.spareColor);
|
||||
console.log(111111111111, this.model.modelData);
|
||||
this.holdTrain && this.holdTrain.setStyle('fill', style.StationStand.solidStand.spareColor);
|
||||
this.holdTrain && this.holdTrain.hide();
|
||||
}
|
||||
|
||||
setHoldTrain(type) {
|
||||
if (this.holdTrain) {
|
||||
const style = this.model.style;
|
||||
if (type == 'Station') {
|
||||
this.holdTrain.setStyle({fill:style.StationStand.solidStand.stationHoldTrainColor});
|
||||
} else if (type == 'System') {
|
||||
this.holdTrain.setStyle({fill:style.StationStand.solidStand.systemHoldTrainColor});
|
||||
}
|
||||
this.holdTrain.show();
|
||||
}
|
||||
}
|
||||
|
||||
setStationHoldTrain() {
|
||||
if (this.holdTrain) {
|
||||
this.holdTrain.show();
|
||||
}
|
||||
}
|
||||
|
||||
setState(model) {
|
||||
@ -82,6 +123,10 @@ class ESolidStand extends Group {
|
||||
model.trainParking && this.setColor(style.StationStand.solidStand.stopColor);
|
||||
// 紧急停车
|
||||
model.emergencyClosed && this.setColor(style.StationStand.solidStand.spareColor);
|
||||
// 系统扣车
|
||||
// model.centerHoldTrain && this.setHoldTrain('System');
|
||||
// 站台扣车
|
||||
(model.centerHoldTrain || model.stationHoldTrain) && this.setHoldTrain('Station');
|
||||
} else {
|
||||
this.handlePassagerColor(model.num);
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ export default {
|
||||
minDuration: 5,
|
||||
operateType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL.value,
|
||||
skinCode: '04',
|
||||
trainingName: '信号重开({3} 进路)',
|
||||
trainingName: '信号重开({5})',
|
||||
trainingRemark: '信号重开功能',
|
||||
trainingType: 'Signal',
|
||||
productTypes: ['02'],
|
||||
@ -825,6 +825,25 @@ export default {
|
||||
{ deviceType: '06', orderNum: 1, operateCode: '507', tip: '鼠标右键菜单选择【显示站台信息】' },
|
||||
{ deviceType: '06', orderNum: 2, operateCode: '0012', tip: '鼠标左键点击【退出】按钮' }
|
||||
]
|
||||
},
|
||||
// CMD_SIGNAL_CANCEL_CI_AUTO
|
||||
{
|
||||
maxDuration: 15,
|
||||
minDuration: 8,
|
||||
operateType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO.value,
|
||||
skinCode: '04',
|
||||
trainingName: '设置自动进路({3} 进路)',
|
||||
trainingRemark: '设置自动进路功能',
|
||||
trainingType: 'Signal',
|
||||
productTypes: ['01'],
|
||||
stepVOList: [
|
||||
{ deviceType: '04', orderNum: 1, operateCode: '2993', tip: '鼠标左键点击【功能按钮】' },
|
||||
{ deviceType: '04', orderNum: 2, operateCode: '3010', tip: '鼠标左键点击【{5}】', codeType:'START_SIGNAL' },
|
||||
{ deviceType: '04', orderNum: 3, operateCode: '3010', tip: '鼠标左键点击【{5}】', codeType:'END_SIGNAL' }
|
||||
],
|
||||
// 成都三号线 特殊配置 类似于哈尔滨线的 atp/联锁进路 配置
|
||||
config:{onlySignalOP:true}
|
||||
}
|
||||
|
||||
]
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user