区段与计轴关系读取

This commit is contained in:
Yuan 2023-09-15 09:21:03 +08:00
parent 40ae549484
commit a39f2120ab

View File

@ -317,13 +317,15 @@ export class Section extends JlGraphic implements ILineGraphic {
this.queryStore.queryById<TrackSection>(this.datas.trackSectionId)
);
}
if (this.datas.axleCountings) {
this.datas.axleCountings.forEach((id) => {
this.relationManage.addRelation(
this,
this.queryStore.queryById<AxleCounting>(id)
);
});
if (this.datas.sectionType === SectionType.TurnoutPhysical) {
if (this.datas.axleCountings) {
this.datas.axleCountings.forEach((id) => {
this.relationManage.addRelation(
this,
this.queryStore.queryById<AxleCounting>(id)
);
});
}
}
}
}