计轴和计轴区段的code显示
This commit is contained in:
parent
e73fe0ede6
commit
bc0844523b
@ -75,7 +75,7 @@ const drawStore = useDrawStore();
|
|||||||
const axleCountingSectionModel = reactive(new AxleCountingSectionData());
|
const axleCountingSectionModel = reactive(new AxleCountingSectionData());
|
||||||
|
|
||||||
enum turoutPos {
|
enum turoutPos {
|
||||||
'正位',
|
'定位',
|
||||||
'反位',
|
'反位',
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ const turnoutRelations = computed(() => {
|
|||||||
refTurnoutAndPos.push({ turnout: refTurout, pos: ref.position });
|
refTurnoutAndPos.push({ turnout: refTurout, pos: ref.position });
|
||||||
});
|
});
|
||||||
const ref = refTurnoutAndPos.map(
|
const ref = refTurnoutAndPos.map(
|
||||||
(ref) => `${ref.turnout.datas.code}+${turoutPos[ref.pos]}`
|
(ref) => `${ref.turnout.datas.code}:${turoutPos[ref.pos]}`
|
||||||
);
|
);
|
||||||
return Array.from(new Set(ref));
|
return Array.from(new Set(ref));
|
||||||
});
|
});
|
||||||
|
@ -118,7 +118,7 @@ export class AxleCountingDraw extends GraphicDrawAssistant<
|
|||||||
}
|
}
|
||||||
axleCounting.id = GraphicIdGenerator.next();
|
axleCounting.id = GraphicIdGenerator.next();
|
||||||
axleCounting.datas.axleCountingRef = [refData2, refData1];
|
axleCounting.datas.axleCountingRef = [refData2, refData1];
|
||||||
axleCounting.datas.code = `${graphic.datas.code}-${port}+${refGraphic.datas.code}-${refPort}`;
|
axleCounting.datas.code = `${graphic.datas.code}-${port}\\${refGraphic.datas.code}-${refPort}`;
|
||||||
this.storeGraphic(axleCounting);
|
this.storeGraphic(axleCounting);
|
||||||
axleCounting.loadRelations();
|
axleCounting.loadRelations();
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ export interface IAxleCountingSectionData extends GraphicData {
|
|||||||
set paRef(ref: IRelatedRefData | undefined);
|
set paRef(ref: IRelatedRefData | undefined);
|
||||||
get pbRef(): IRelatedRefData | undefined; //区段B端关联的设备
|
get pbRef(): IRelatedRefData | undefined; //区段B端关联的设备
|
||||||
set pbRef(ref: IRelatedRefData | undefined);
|
set pbRef(ref: IRelatedRefData | undefined);
|
||||||
get turnoutPosRef(): ITurnoutPosRefData[]; //关联道岔的正反位
|
get turnoutPosRef(): ITurnoutPosRefData[]; //关联道岔的定反位--0是定位,1是反位
|
||||||
set turnoutPosRef(ref: ITurnoutPosRefData[]);
|
set turnoutPosRef(ref: ITurnoutPosRefData[]);
|
||||||
get indexNumber(): number; // 索引编号
|
get indexNumber(): number; // 索引编号
|
||||||
set indexNumber(v: number);
|
set indexNumber(v: number);
|
||||||
|
Loading…
Reference in New Issue
Block a user