岔心鼠标事件 绘图代码调整

This commit is contained in:
joylink_cuiweidong 2021-01-25 13:48:37 +08:00
parent 8373a96229
commit d3546c5de2
3 changed files with 12 additions and 6 deletions

View File

@ -376,9 +376,14 @@ export default class ELines extends Group {
this.crossSection && this.crossSection.setStyle(styles);
}
setOrignalCross() {
this.crossSection && this.crossSection.setStyle({lineWidth:0 });
// fill:this.model.style.Section.cross.crossSection.fillColor
setOrignalCross(isModifyFill = false) {
if (this.crossSection) {
if (isModifyFill) {
this.crossSection.setStyle({lineWidth:0, fill:this.model.style.Section.cross.crossSection.fillColor });
} else {
this.crossSection.setStyle({lineWidth:0 });
}
}
}
setCrossBlock() {

View File

@ -411,7 +411,7 @@ export default class Section extends Group {
this.on('mouseout', () => { // 移出
if (!this.selectedType && !this.selected && this.line ) {
this.line.setStyle({ stroke: this.style.Section.line.spareColor, lineWidth: this.style.Section.line.width });
this.line.setOrignalCross();
this.line.setOrignalCross(true);
}
if (this.style.Switch.sectionAction.flag && this.model.relSwitchCode) {
const switchModel = Vue.prototype.$jlmap.mapDevice[this.model.relSwitchCode];
@ -443,7 +443,7 @@ export default class Section extends Group {
} else {
this.lineBorder && this.lineBorder.setStyle({ lineWidth: 0 });
!this.selectedType && this.setState(this.model);
this.line.setOrignalCross();
this.line.setOrignalCross(false);
}
}
drawBatchSelected(selected, type) {

View File

@ -211,7 +211,8 @@ export default {
{ prop: 'leftStopPointOffset', label: this.$t('map.leftStopPointOffset'), type: 'number', min: 0, max: this.maxLengthFact, isHidden: !this.isStopPointOffset }, //
{ prop: 'rightStopPointOffset', label: this.$t('map.rightStopPointOffset'), type: 'number', min: 0, max: this.maxLengthFact, isHidden: !this.isStopPointOffset }, //
{ prop: 'region', label: this.$t('map.sectionColon'), type: 'select', optionLabel: 'label', optionValue: 'value', options: this.regionList, isHidden: !this.sectionColonShow },
{ prop: 'trainWindowCode', label: '关联车次窗', type: 'input', disabled: true, isHidden: !this.isSwitchSectionShow || !this.isCrossSectionType }
{ prop: 'trainWindowCode', label: '关联车次窗', type: 'input', disabled: true, isHidden: !this.isSwitchSectionShow }
// || !this.isCrossSectionType
]
}
}