站台关联关系调整
This commit is contained in:
parent
cdb02a8e20
commit
e2165a0a35
@ -17,10 +17,10 @@
|
|||||||
</q-btn-dropdown>
|
</q-btn-dropdown>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-separator inset />
|
<q-separator inset />
|
||||||
<q-card-section>
|
<q-card-section class="q-gutter-sm">
|
||||||
<q-input outlined readonly v-model="relayState.id" label="id" hint="" />
|
<q-input outlined readonly v-model="relayState.id" label="id" />
|
||||||
<q-input outlined readonly v-model="relayState.code" label="名称" />
|
<q-input outlined readonly v-model="relayState.code" label="名称" />
|
||||||
<q-checkbox v-model="relayState.xh" outlined label="是否吸合" />
|
<q-checkbox disable v-model="relayState.xh" label="是否吸合" />
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
</template>
|
</template>
|
||||||
|
@ -168,18 +168,23 @@ export class Platform extends JlGraphic {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (minDistanceRefSections) {
|
if (minDistanceRefSections) {
|
||||||
const refSection = minDistanceRefSections?.reduce((prev, cur) => {
|
const refSection = minDistanceRefSections.reduce((prev, cur) => {
|
||||||
return distance2(
|
return distance2(
|
||||||
prev.localToCanvasPoint(prev.getStartPoint()),
|
prev.localToCanvasPoint(getRectangleCenter(prev.getLocalBounds())),
|
||||||
this.position
|
this.position
|
||||||
) >
|
) >
|
||||||
distance2(cur.localToCanvasPoint(prev.getStartPoint()), this.position)
|
distance2(
|
||||||
|
cur.localToCanvasPoint(getRectangleCenter(cur.getLocalBounds())),
|
||||||
|
this.position
|
||||||
|
)
|
||||||
? cur
|
? cur
|
||||||
: prev;
|
: prev;
|
||||||
});
|
});
|
||||||
if (refSection) {
|
this.relationManage.deleteRelationOfGraphicAndOtherType(
|
||||||
this.relationManage.addRelation(this, refSection);
|
this,
|
||||||
}
|
Section.Type
|
||||||
|
);
|
||||||
|
this.relationManage.addRelation(this, refSection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
saveRelations() {
|
saveRelations() {
|
||||||
|
Loading…
Reference in New Issue
Block a user