西安三号线ibp盘扣车显示调整
This commit is contained in:
parent
1ed9fd4d5d
commit
4b7e2efcba
@ -243,6 +243,7 @@ class SkinCode extends defaultStyle {
|
|||||||
centerTrainColor: '#FFFFFF', // 中心扣车颜色
|
centerTrainColor: '#FFFFFF', // 中心扣车颜色
|
||||||
andCenterTrainColor: '#F61107', // 车站+中心扣车颜色
|
andCenterTrainColor: '#F61107', // 车站+中心扣车颜色
|
||||||
detainTrainTextColor: '#E4EF50', // 车站扣除文字颜色
|
detainTrainTextColor: '#E4EF50', // 车站扣除文字颜色
|
||||||
|
ibpDetainTrainColor: '#0F16DA', // IBP盘扣车文字颜色
|
||||||
fontSize: 11, // 字体大小
|
fontSize: 11, // 字体大小
|
||||||
fontWeight: 'normal'
|
fontWeight: 'normal'
|
||||||
},
|
},
|
||||||
@ -274,7 +275,8 @@ class SkinCode extends defaultStyle {
|
|||||||
|
|
||||||
common: { // 通用属性
|
common: { // 通用属性
|
||||||
textFontSize: 11, // 站台默认字体大小
|
textFontSize: 11, // 站台默认字体大小
|
||||||
functionButtonShow: '03' // 功能灯按钮显示条件(01所有模式下显示 02 行调显示 03现地显示)
|
functionButtonShow: '03', // 功能灯按钮显示条件(01所有模式下显示 02 行调显示 03现地显示)
|
||||||
|
ibpDetainDiffStation: true // ibp扣车不同于现地扣车
|
||||||
},
|
},
|
||||||
safetyDoor: { // 屏蔽门
|
safetyDoor: { // 屏蔽门
|
||||||
height: 3, // 站台屏蔽门高度
|
height: 3, // 站台屏蔽门高度
|
||||||
|
@ -65,15 +65,18 @@ class EDetain extends Group {
|
|||||||
|
|
||||||
setState(model, deviceParam = this.model.style.StationStand.detainNormal) {
|
setState(model, deviceParam = this.model.style.StationStand.detainNormal) {
|
||||||
/** 设置扣车*/
|
/** 设置扣车*/
|
||||||
if (model.stationHoldTrain && model.centerHoldTrain) {
|
if ((model.stationHoldTrain || model.ibpHoldTrain) && model.centerHoldTrain) {
|
||||||
this.showMode(deviceParam);
|
this.showMode(deviceParam);
|
||||||
this.setColor(deviceParam.andCenterTrainColor);
|
this.setColor(deviceParam.andCenterTrainColor);
|
||||||
} else if (model.stationHoldTrain) {
|
} else if (model.stationHoldTrain || (model.ibpHoldTrain && !this.model.style.StationStand.common.ibpDetainDiffStation)) {
|
||||||
this.showMode(deviceParam);
|
this.showMode(deviceParam);
|
||||||
this.setColor(deviceParam.detainTrainTextColor);
|
this.setColor(deviceParam.detainTrainTextColor);
|
||||||
} else if (model.centerHoldTrain) {
|
} else if (model.centerHoldTrain) {
|
||||||
this.showMode(deviceParam);
|
this.showMode(deviceParam);
|
||||||
this.setColor(deviceParam.centerTrainColor);
|
this.setColor(deviceParam.centerTrainColor);
|
||||||
|
} else if (model.ibpHoldTrain) {
|
||||||
|
this.showMode(deviceParam);
|
||||||
|
this.setColor(deviceParam.ibpDetainTrainColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,7 @@ class EDetainHollow extends EDetain {
|
|||||||
|
|
||||||
recover() {
|
recover() {
|
||||||
this.hideMode();
|
this.hideMode();
|
||||||
|
this.circleDetain && this.circleDetain.setStyle({ fill: '#000' });
|
||||||
}
|
}
|
||||||
|
|
||||||
hideMode() {
|
hideMode() {
|
||||||
@ -58,6 +59,9 @@ class EDetainHollow extends EDetain {
|
|||||||
|
|
||||||
setState(model) {
|
setState(model) {
|
||||||
super.setState(model, this.model.style.StationStand.detainHollow);
|
super.setState(model, this.model.style.StationStand.detainHollow);
|
||||||
|
if (model.ibpHoldTrain && this.model.style.StationStand.common.ibpDetainDiffStation) {
|
||||||
|
this.circleDetain && this.circleDetain.setStyle({ fill: '#fff' });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user