代码调整
This commit is contained in:
parent
2981a131ce
commit
437fd3edbe
@ -85,11 +85,14 @@ export class LogicSectionDraw extends GraphicDrawAssistant<
|
||||
AxleCountingSection.Type
|
||||
);
|
||||
axleCountingSections.forEach((axleCountingSection) => {
|
||||
if (map.has(`${axleCountingSection.id}`)) {
|
||||
return;
|
||||
}
|
||||
map.set(`${axleCountingSection.id}`, 1);
|
||||
const turnoutPosRef = axleCountingSection.datas.turnoutPosRef;
|
||||
if (turnoutPosRef.length > 0) {
|
||||
turnoutPosRef.forEach((turnout) => {
|
||||
if (turnout.position == 1 && !map.has(`${turnout.id}`)) {
|
||||
map.set(`${turnout.id}`, 1);
|
||||
if (turnout.position == 1) {
|
||||
const t = this.app.queryStore.queryById(turnout.id) as Turnout;
|
||||
const data = new LogicSectionData();
|
||||
data.points = [
|
||||
@ -101,13 +104,10 @@ export class LogicSectionDraw extends GraphicDrawAssistant<
|
||||
}
|
||||
});
|
||||
}
|
||||
if (!map.has(`${axleCountingSection.id}`)) {
|
||||
map.set(`${axleCountingSection.id}`, 1);
|
||||
const data = new LogicSectionData();
|
||||
data.points = axleCountingSection.datas.points;
|
||||
data.axleSectionId = axleCountingSection.id;
|
||||
this.draw(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user