diff --git a/src/graphics/axleCounting/AxleCountingDrawAssistant.ts b/src/graphics/axleCounting/AxleCountingDrawAssistant.ts index 2ba8cee..c15e7c3 100644 --- a/src/graphics/axleCounting/AxleCountingDrawAssistant.ts +++ b/src/graphics/axleCounting/AxleCountingDrawAssistant.ts @@ -162,16 +162,11 @@ export class AxleCountingDraw extends GraphicDrawAssistant< 1 ); }); - //由区段生成计轴--区段和区段 + //由区段生成计轴--区段和区段或区段和道岔 const sections = this.app.queryStore .queryByType
(Section.Type) .filter((section) => { - return ( - section.relationManage.getRelationsOfGraphicAndOtherType( - section, - AxleCounting.Type - ).length < 2 && section.datas.sectionType == SectionType.Physical - ); + return section.datas.sectionType == SectionType.Physical; }); sections.forEach((section) => {