逻辑区段调整

This commit is contained in:
dong 2023-07-12 10:26:07 +08:00
parent bc0844523b
commit 37d73efc9d

View File

@ -84,15 +84,9 @@ function onUpdate() {
const logicSectionRelations = computed(() => {
const logicSection = drawStore.selectedGraphic as LogicSection;
const sectionRelations =
logicSection?.relationManage.getRelationsOfGraphicAndOtherType(
logicSection,
AxleCountingSection.Type
);
const ref = sectionRelations.map(
(relation) =>
`${relation.getOtherGraphic<LogicSection>(logicSection).datas.code}`
);
return Array.from(new Set(ref));
const axleCountingSection = logicSection.queryStore.queryById(
logicSection.datas.axleSectionId
) as AxleCountingSection;
return [axleCountingSection.datas.code];
});
</script>