调整mapDevice数据
This commit is contained in:
parent
d5925c305b
commit
a71217220a
@ -216,8 +216,8 @@ export function parser(data, skinCode, showConfig) {
|
|||||||
|
|
||||||
zrUtil.each(data.indicatorLightList || [], elem => {
|
zrUtil.each(data.indicatorLightList || [], elem => {
|
||||||
mapDevice[elem.code] = createDevice(elem.type, elem, propConvert, showConfig);
|
mapDevice[elem.code] = createDevice(elem.type, elem, propConvert, showConfig);
|
||||||
if (elem.type == 'SwitchFault') {
|
if (elem.type == 'SwitchFault' && mapDevice[elem.switchCode]) {
|
||||||
mapDevice[elem.switchCode].switchFaultCode = elem.code; // 道岔数据上关联道岔故障表示灯(需保证该数据在switchList之后处理)
|
mapDevice[elem.switchCode]['switchFaultCode'] = elem.code; // 道岔数据上关联道岔故障表示灯(需保证该数据在switchList之后处理)
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user