屏蔽门故障打开
This commit is contained in:
parent
b98f811998
commit
0a594f5e09
@ -427,6 +427,11 @@ class Jlmap {
|
||||
// store.dispatch('map/updateTrainState', elem);
|
||||
} else if (elem.deviceType === 'STAND') {
|
||||
store.dispatch('map/updateStationStand', elem);
|
||||
const psdDevice = this.mapDevice[this.mapDevice[elem.code].psdCode];
|
||||
if (psdDevice) {
|
||||
psdDevice.fault = elem.fault;
|
||||
this.$painter.update(psdDevice);
|
||||
}
|
||||
}
|
||||
const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig);
|
||||
if (elem.dispose) {
|
||||
|
@ -82,13 +82,19 @@ export default class Line2 extends Group {
|
||||
}
|
||||
|
||||
setState(model) {
|
||||
this.recover();
|
||||
if (!this.isShowShape) return;
|
||||
/** 设置屏蔽门开关*/
|
||||
model.screenDoorOpenStatus == 0 && this.openDoor(); /** 开门*/
|
||||
model.screenDoorOpenStatus != 0 && this.closeDoor(); /** 关门*/
|
||||
|
||||
if (model.fault == 'FAULT_PSD_OPEN') {
|
||||
this.doorFault();
|
||||
this.openDoor();
|
||||
} else {
|
||||
model.screenDoorOpenStatus == 0 && this.openDoor(); /** 开门*/
|
||||
model.screenDoorOpenStatus != 0 && this.closeDoor(); /** 关门*/
|
||||
}
|
||||
model.alarmStatus && this.alarm(); /** 收到警报(西安二号线样式) */
|
||||
model.emergencyDepart && this.emergencyDepart(); /** 紧急出发按钮激活(西安二号线样式) */
|
||||
|
||||
// /** 设置屏蔽门状态*/
|
||||
// switch (model.screenDoorStatus) {
|
||||
// case '01':
|
||||
|
@ -86,9 +86,10 @@ export function parser(data, skinCode, showConfig) {
|
||||
zrUtil.each(data.espList || [], elem => {
|
||||
mapDevice[elem.code] = createDevice(deviceType.Esp, elem, propConvert, showConfig);
|
||||
}, this);
|
||||
|
||||
// psd在stand后处理 -便于在stand上挂载关系
|
||||
zrUtil.each(data.psdList || [], elem => {
|
||||
mapDevice[elem.code] = createDevice(deviceType.Psd, elem, propConvert, showConfig);
|
||||
mapDevice[elem.standCode].psdCode = elem.code;
|
||||
}, this);
|
||||
|
||||
zrUtil.each(data.textList || [], elem => {
|
||||
|
Loading…
Reference in New Issue
Block a user