diff --git a/src/layouts/DrawLayout.vue b/src/layouts/DrawLayout.vue index 7d0a0ee..41ef9fd 100644 --- a/src/layouts/DrawLayout.vue +++ b/src/layouts/DrawLayout.vue @@ -794,6 +794,24 @@ function oneClickRelateCentralizedStation() { }); }); handleCentralizedStationsData(otherLineListDevice, []); + //道岔物理区段--(根据关联的计轴获取所属集中站) + const turnoutPhysicalSections = drawApp.queryStore + .queryByType
(Section.Type) + .filter( + (section) => + section.datas.sectionType == + graphicData.Section.SectionType.TurnoutPhysical + ); + turnoutPhysicalSections.forEach((turnoutPhysicalSection) => { + const refAxleCounting = turnoutPhysicalSection.relationManage + .getRelationsOfGraphicAndOtherType( + turnoutPhysicalSection, + AxleCounting.Type + )[0] + .getOtherGraphic(turnoutPhysicalSection); + turnoutPhysicalSection.datas.centralizedStations = + refAxleCounting.datas.centralizedStations; + }); function handleNodeConWithSec( relatedRef: graphicData.RelatedRef,