一键关联集中站加道岔物理区段也关联
This commit is contained in:
parent
00d413d494
commit
d784e2f0e6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user