信号机关联设备调整
This commit is contained in:
parent
2349f81149
commit
c95ddf4372
@ -73,7 +73,6 @@ const { data: signalModel, onUpdate } = useFormData(
|
|||||||
);
|
);
|
||||||
|
|
||||||
const refDevData = computed(() => {
|
const refDevData = computed(() => {
|
||||||
console.log(signalModel, '====');
|
|
||||||
return signalModel.refDevice
|
return signalModel.refDevice
|
||||||
? {
|
? {
|
||||||
...signalModel.refDevice.toObject(),
|
...signalModel.refDevice.toObject(),
|
||||||
|
@ -18,7 +18,7 @@ import {
|
|||||||
import { SignalCode } from './SignalCode';
|
import { SignalCode } from './SignalCode';
|
||||||
import { Station } from '../station/Station';
|
import { Station } from '../station/Station';
|
||||||
import { Turnout, TurnoutPort } from '../turnout/Turnout';
|
import { Turnout, TurnoutPort } from '../turnout/Turnout';
|
||||||
import { Section, SectionPort } from '../section/Section';
|
import { Section, SectionPort, SectionType } from '../section/Section';
|
||||||
|
|
||||||
export interface KilometerSystem {
|
export interface KilometerSystem {
|
||||||
get coordinateSystem(): string;
|
get coordinateSystem(): string;
|
||||||
@ -218,7 +218,9 @@ export class Signal extends JlGraphic {
|
|||||||
this.humanControl.endFill();
|
this.humanControl.endFill();
|
||||||
}
|
}
|
||||||
buildRelation() {
|
buildRelation() {
|
||||||
const sections = this.queryStore.queryByType<Section>(Section.Type);
|
const sections = this.queryStore
|
||||||
|
.queryByType<Section>(Section.Type)
|
||||||
|
.filter((item) => item.datas.sectionType === SectionType.Physical);
|
||||||
const turnouts = this.queryStore.queryByType<Turnout>(Turnout.Type);
|
const turnouts = this.queryStore.queryByType<Turnout>(Turnout.Type);
|
||||||
let deviceId = 0;
|
let deviceId = 0;
|
||||||
let deviceType = '';
|
let deviceType = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user