调整区段逻辑
This commit is contained in:
parent
e4c2cf03b1
commit
1a20248a0d
@ -30,7 +30,7 @@ export default class ELines extends Group {
|
||||
isLine: true,
|
||||
zlevel: this.zlevel,
|
||||
progressive: model.progressive,
|
||||
z: this.z + 1,
|
||||
z: this.z + 2,
|
||||
culling: true,
|
||||
shape: shape,
|
||||
style: {
|
||||
|
@ -26,7 +26,6 @@ class EMouse extends Group {
|
||||
});
|
||||
this.add(this.sectionTextBorder);
|
||||
this.sectionTextBorder.hide();
|
||||
console.log(this.sectionTextBorder);
|
||||
}
|
||||
|
||||
const fontSize = this.device.model.type == '02' ? this.device.style.Section.text.fontSize + 2 : this.device.style.Section.text.fontSize;
|
||||
|
@ -572,19 +572,9 @@ export default class Section extends Group {
|
||||
});
|
||||
}
|
||||
|
||||
// setModelTypeLevel() { // 给含有逻辑区段的 section 层级加一
|
||||
// if (this.model.type == '01' && this.model.logicSectionCodeList && this.model.logicSectionCodeList.length > 0) {
|
||||
// console.log(this.section);
|
||||
// this.section.setZleve(this.z + 2);
|
||||
// }
|
||||
// }
|
||||
|
||||
/** 设置区段恢复默认状态*/
|
||||
recover() {
|
||||
if (this.section) {
|
||||
if (this.model.type == '01') {
|
||||
this.section.setZleve(this.z);
|
||||
}
|
||||
this.section.stopAnimation(true);
|
||||
this.sectionBlock && this.sectionBlock.hide(); // 因此特殊区段
|
||||
this.section.setStyle({
|
||||
@ -631,7 +621,6 @@ export default class Section extends Group {
|
||||
stroke: this.style.Section.line.communicationOccupiedColor,
|
||||
lineWidth: this.style.Section.line.width + this.style.Section.line.beyondWidth
|
||||
});
|
||||
// this.setModelTypeLevel();
|
||||
}
|
||||
}
|
||||
|
||||
@ -642,7 +631,6 @@ export default class Section extends Group {
|
||||
stroke: this.style.Section.line.unCommunicationOccupiedColor,
|
||||
lineWidth: this.style.Section.line.width + this.style.Section.line.beyondWidth
|
||||
});
|
||||
// this.setModelTypeLevel();
|
||||
}
|
||||
}
|
||||
|
||||
@ -653,7 +641,6 @@ export default class Section extends Group {
|
||||
stroke: this.style.Section.line.routeLockColor,
|
||||
lineWidth: this.style.Section.line.width + this.style.Section.line.beyondWidth
|
||||
});
|
||||
// this.setModelTypeLevel();
|
||||
}
|
||||
}
|
||||
|
||||
@ -673,7 +660,6 @@ export default class Section extends Group {
|
||||
{ time: 2000, styles: { stroke: this.style.Section.line.blockColor } }
|
||||
]);
|
||||
}
|
||||
// this.setModelTypeLevel();
|
||||
}
|
||||
|
||||
/** 故障锁定状态 05*/
|
||||
|
Loading…
Reference in New Issue
Block a user