From 2b6e1ca117905b5a2e872e07427e2f78d81a7d67 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 21 Jan 2021 19:02:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B2=94=E5=BF=83=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Section/ELines.js | 6 +++++- src/jmapNew/shape/Section/index.js | 25 +++++++++++++++++-------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/jmapNew/shape/Section/ELines.js b/src/jmapNew/shape/Section/ELines.js index 478f91772..298f1b43f 100644 --- a/src/jmapNew/shape/Section/ELines.js +++ b/src/jmapNew/shape/Section/ELines.js @@ -362,6 +362,9 @@ export default class ELines extends Group { this.routeArrowRight.hide(); this.routeLineRight.hide(); } + if (model.type == '01' && model.parentCode) { + this.section.setStyle({stroke:'#5b5b5b'}); + } } } @@ -374,7 +377,8 @@ export default class ELines extends Group { } setOrignalCross() { - this.crossSection && this.crossSection.setStyle({lineWidth:0, fill:this.model.style.Section.cross.crossSection.fillColor}); + this.crossSection && this.crossSection.setStyle({lineWidth:0 }); + // fill:this.model.style.Section.cross.crossSection.fillColor } setCrossBlock() { diff --git a/src/jmapNew/shape/Section/index.js b/src/jmapNew/shape/Section/index.js index 76e55f1b8..6f1cfbdd1 100644 --- a/src/jmapNew/shape/Section/index.js +++ b/src/jmapNew/shape/Section/index.js @@ -90,10 +90,14 @@ export default class Section extends Group { this.line.stopAnimation(true); this.sectionBlock && this.sectionBlock.hide(); // 因此特殊区段 this.sectionBlock && this.sectionBlock.stopAnimation(); - this.line.setStyle({ - stroke: this.style.Section.line.spareColor, - lineWidth: this.style.Section.line.width - }); + if (this.model.type == '01' && this.model.parentCode) { + this.line.setStyle({stroke:'#5b5b5b'}); + } else { + this.line.setStyle({ + stroke: this.style.Section.line.spareColor, + lineWidth: this.style.Section.line.width + }); + } this.line.setCrossSpeedUpperLimit(''); } this.name && this.name.recover(); @@ -121,10 +125,15 @@ export default class Section extends Group { /** 空闲状态 01*/ spare() { if (this.line) { - this.line.setStyle({ - stroke: this.style.Section.line.spareColor, - lineWidth: this.style.Section.line.width - }); + if (this.model.type == '01' && this.model.parentCode) { + this.section.setStyle({stroke:'#5b5b5b'}); + } else { + this.line.setStyle({ + stroke: this.style.Section.line.spareColor, + lineWidth: this.style.Section.line.width + }); + } + } }