岔心 代码调整

This commit is contained in:
joylink_cuiweidong 2021-01-21 19:02:28 +08:00
parent a9ea00c0c8
commit 2b6e1ca117
2 changed files with 22 additions and 9 deletions

View File

@ -362,6 +362,9 @@ export default class ELines extends Group {
this.routeArrowRight.hide(); this.routeArrowRight.hide();
this.routeLineRight.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() { 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() { setCrossBlock() {

View File

@ -90,10 +90,14 @@ export default class Section extends Group {
this.line.stopAnimation(true); this.line.stopAnimation(true);
this.sectionBlock && this.sectionBlock.hide(); // 因此特殊区段 this.sectionBlock && this.sectionBlock.hide(); // 因此特殊区段
this.sectionBlock && this.sectionBlock.stopAnimation(); this.sectionBlock && this.sectionBlock.stopAnimation();
this.line.setStyle({ if (this.model.type == '01' && this.model.parentCode) {
stroke: this.style.Section.line.spareColor, this.line.setStyle({stroke:'#5b5b5b'});
lineWidth: this.style.Section.line.width } else {
}); this.line.setStyle({
stroke: this.style.Section.line.spareColor,
lineWidth: this.style.Section.line.width
});
}
this.line.setCrossSpeedUpperLimit(''); this.line.setCrossSpeedUpperLimit('');
} }
this.name && this.name.recover(); this.name && this.name.recover();
@ -121,10 +125,15 @@ export default class Section extends Group {
/** 空闲状态 01*/ /** 空闲状态 01*/
spare() { spare() {
if (this.line) { if (this.line) {
this.line.setStyle({ if (this.model.type == '01' && this.model.parentCode) {
stroke: this.style.Section.line.spareColor, this.section.setStyle({stroke:'#5b5b5b'});
lineWidth: this.style.Section.line.width } else {
}); this.line.setStyle({
stroke: this.style.Section.line.spareColor,
lineWidth: this.style.Section.line.width
});
}
} }
} }