diff --git a/src/jmapNew/config/skinCode/fuzhou_01.js b/src/jmapNew/config/skinCode/fuzhou_01.js index eabf2a4fb..798f6cf4c 100644 --- a/src/jmapNew/config/skinCode/fuzhou_01.js +++ b/src/jmapNew/config/skinCode/fuzhou_01.js @@ -189,6 +189,13 @@ class SkinCode extends defaultStyle { }, lowButton:{ display: false // 现地 信号机按钮 + }, + transmission: { // 传输信号机 + fillColor: '#f00', + fillColorVirtual: '#f00', + sideLength: 20, + textColor: '#fff', + strokeColor: '#00FFFF' } }; diff --git a/src/jmapNew/config/skinCode/xian_02.js b/src/jmapNew/config/skinCode/xian_02.js index a4494c1c9..df720dc60 100644 --- a/src/jmapNew/config/skinCode/xian_02.js +++ b/src/jmapNew/config/skinCode/xian_02.js @@ -233,6 +233,13 @@ class SkinCode extends defaultStyle { fontSize: 12, distance: 20, defaultText: 'E' + }, + transmission: { // 传输信号机 + fillColor: '#f00', + fillColorVirtual: '#f00', + sideLength: 20, + textColor: '#fff', + strokeColor: '#00FFFF' } }; diff --git a/src/jmapNew/shape/graph/Signal/index.js b/src/jmapNew/shape/graph/Signal/index.js index a56432bbd..c9d2972a7 100644 --- a/src/jmapNew/shape/graph/Signal/index.js +++ b/src/jmapNew/shape/graph/Signal/index.js @@ -931,8 +931,8 @@ class Signal extends Group { // 隐藏自动信号和自动进路 setAutoClose() { if (this.style.Signal.auto.autoRouteType != 'text') { - this.sigAuto.hide(); - this.sigAuto.setColor(this.style.backgroundColor); + this.sigAuto && this.sigAuto.hide(); + this.sigAuto && this.sigAuto.setColor(this.style.backgroundColor); } else { this.sigName.setColor(this.style.Signal.text.defaultColor); }