一键关联集中站加道岔物理区段也关联

This commit is contained in:
joylink_zhaoerwei 2024-06-19 10:56:19 +08:00
parent 00d413d494
commit d784e2f0e6

View File

@ -794,6 +794,24 @@ function oneClickRelateCentralizedStation() {
});
});
handleCentralizedStationsData(otherLineListDevice, []);
//--()
const turnoutPhysicalSections = drawApp.queryStore
.queryByType<Section>(Section.Type)
.filter(
(section) =>
section.datas.sectionType ==
graphicData.Section.SectionType.TurnoutPhysical
);
turnoutPhysicalSections.forEach((turnoutPhysicalSection) => {
const refAxleCounting = turnoutPhysicalSection.relationManage
.getRelationsOfGraphicAndOtherType(
turnoutPhysicalSection,
AxleCounting.Type
)[0]
.getOtherGraphic<AxleCounting>(turnoutPhysicalSection);
turnoutPhysicalSection.datas.centralizedStations =
refAxleCounting.datas.centralizedStations;
});
function handleNodeConWithSec(
relatedRef: graphicData.RelatedRef,