代码调整
This commit is contained in:
parent
db35ba370e
commit
6b0d8cf772
@ -259,6 +259,13 @@ export default class Section extends Group {
|
||||
sectionCutOff() {
|
||||
const lineWidth = this.style.Section.line.width + (this.model.status != '01' ? this.style.Section.line.beyondWidth : 0);
|
||||
if (this.line) {
|
||||
if (this.model.relSwitchCode) {
|
||||
const switchModel = Vue.prototype.$jlmap.mapDevice[this.model.relSwitchCode];
|
||||
if (switchModel && switchModel.reversePosition && !switchModel.blockade && switchModel.sectionCCode == this.model.code) {
|
||||
// debugger;
|
||||
this.line.setZleve(this.z + 8);
|
||||
}
|
||||
}
|
||||
this.line.animateStyle(true, [
|
||||
{ time: 0, styles: { lineWidth: lineWidth } },
|
||||
{ time: 1000, styles: { stroke: this.style.backgroundColor } },
|
||||
|
Loading…
Reference in New Issue
Block a user