diff --git a/src/jmapNew/shape/graph/Train/TrainBody.js b/src/jmapNew/shape/graph/Train/TrainBody.js index cf69aa789..f0638ec8a 100644 --- a/src/jmapNew/shape/graph/Train/TrainBody.js +++ b/src/jmapNew/shape/graph/Train/TrainBody.js @@ -1,4 +1,3 @@ -/* 观的角度来看当前所处的位置。 */ import Group from 'zrender/src/container/Group'; import TrainBodyBox from './TrainBodyBox'; // import '../StationStand/EDetain'; @@ -302,8 +301,8 @@ export default class TrainBody extends Group { // Style('fill', color); } setTrainBorderColor(color) { - this.trainBodyBox && this.trainBodyBox.setColor('stroke', color); - } + this.trainBodyBox && this.trainBodyBox.setColor('stroke', color); + } setHShow(isShow) { if (this.textH) { isShow ? this.textH.show() : this.textH.hide(); diff --git a/src/jmapNew/shape/graph/Train/index.js b/src/jmapNew/shape/graph/Train/index.js index 2358832a0..7af64ad8f 100644 --- a/src/jmapNew/shape/graph/Train/index.js +++ b/src/jmapNew/shape/graph/Train/index.js @@ -226,7 +226,7 @@ export default class Train extends Group { this.trainR && this.trainR.setLineShow(false); this.trainL && this.trainL.setArrowShow(false); this.trainR && this.trainR.setArrowShow(false); - this.trainB && this.trainB.setTrainBorderColor(this.style.Train.trainBody.trainSidelineColor || this.style.trainSidelineColor); + this.trainB && this.trainB.setTrainBorderColor(this.style.Train.trainBody.trainSidelineColor || this.style.trainSidelineColor); } // 设置运行方向状态类型 @@ -267,20 +267,20 @@ export default class Train extends Group { this.trainL && this.trainL.setArrowShow(item.arrowLShow); this.trainR && this.trainR.setArrowShow(item.arrowRShow); } - } else if(this.style.Train.trainHead.directionStopType == 'specialAll'){ - if (flag) { - this.trainL && this.trainL.setArrowShow(!item.arrowLShow); - this.trainR && this.trainR.setArrowShow(!item.arrowRShow); - this.trainL && this.trainL.setLineShow(!item.lineLShow); - this.trainR && this.trainR.setLineShow(!item.lineRShow); - } else { - this.trainL && this.trainL.setArrowShow(item.arrowLShow); - this.trainR && this.trainR.setArrowShow(item.arrowRShow); - this.trainL && this.trainL.setLineShow(item.lineLShow); - this.trainR && this.trainR.setLineShow(item.lineRShow); - } - this.trainB && this.trainB.setTrainBorderColor(this.style.Train.trainBody.trainSidelineStopColor); - } else { + } else if (this.style.Train.trainHead.directionStopType == 'specialAll') { + if (flag) { + this.trainL && this.trainL.setArrowShow(!item.arrowLShow); + this.trainR && this.trainR.setArrowShow(!item.arrowRShow); + this.trainL && this.trainL.setLineShow(!item.lineLShow); + this.trainR && this.trainR.setLineShow(!item.lineRShow); + } else { + this.trainL && this.trainL.setArrowShow(item.arrowLShow); + this.trainR && this.trainR.setArrowShow(item.arrowRShow); + this.trainL && this.trainL.setLineShow(item.lineLShow); + this.trainR && this.trainR.setLineShow(item.lineRShow); + } + this.trainB && this.trainB.setTrainBorderColor(this.style.Train.trainBody.trainSidelineStopColor); + } else { if (flag) { this.trainL && this.trainL.setLineShow(!item.lineLShow); this.trainR && this.trainR.setLineShow(!item.lineRShow);