修改三维故障获取
This commit is contained in:
parent
afbdc728c8
commit
02ba2797cd
@ -72,7 +72,7 @@ export function Maintainerconnect(jlmap3d,routegroup,jsonwebwork,lablecodemap) {
|
||||
if(event.data.body.type == "SIGNAL"){
|
||||
newfault.name = lablecodemap.signal[newfault.code];
|
||||
newfault.typetext = "信号机";
|
||||
if(event.data.body.fault[1] == "MAIN_FILAMENT_BROKEN"){
|
||||
if(event.data.body.fault == "MAIN_FILAMENT_BROKEN"){
|
||||
newfault.text = "主灯丝断丝故障";
|
||||
}
|
||||
}
|
||||
@ -80,7 +80,7 @@ export function Maintainerconnect(jlmap3d,routegroup,jsonwebwork,lablecodemap) {
|
||||
if(event.data.body.type == "SWITCH"){
|
||||
newfault.name = lablecodemap.switch[newfault.code];
|
||||
newfault.typetext = "道岔";
|
||||
if(event.data.body.fault[1] == "SPLIT"){
|
||||
if(event.data.body.fault == "SPLIT"){
|
||||
newfault.text = "道岔挤岔";
|
||||
}
|
||||
|
||||
@ -89,7 +89,7 @@ export function Maintainerconnect(jlmap3d,routegroup,jsonwebwork,lablecodemap) {
|
||||
if(event.data.body.type == "SECTION"){
|
||||
newfault.name = lablecodemap.section[newfault.code];
|
||||
newfault.typetext = "区段";
|
||||
if(event.data.body.fault[1] == "FAULT"){
|
||||
if(event.data.body.fault == "FAULT"){
|
||||
newfault.text = "计轴故障";
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@ export function Maintainerconnect(jlmap3d,routegroup,jsonwebwork,lablecodemap) {
|
||||
if(event.data.body.type == "STAND"){
|
||||
newfault.name = newfault.code;
|
||||
newfault.typetext = "屏蔽门";
|
||||
if(event.data.body.fault[1] == "FAULT_PSD_OPEN"){
|
||||
if(event.data.body.fault == "FAULT_PSD_OPEN"){
|
||||
newfault.text = "屏蔽门无法关闭故障";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user