bugfix - 关联关系更新
This commit is contained in:
parent
08a8e332d2
commit
f3ee285bc3
@ -34,10 +34,10 @@ export interface ISectionData extends GraphicData {
|
||||
set code(v: string);
|
||||
get points(): IPointData[]; // 线坐标点
|
||||
set points(points: IPointData[]);
|
||||
get paRef(): IRelatedRefData;
|
||||
set paRef(ref: IRelatedRefData);
|
||||
get pbRef(): IRelatedRefData;
|
||||
set pbRef(ref: IRelatedRefData);
|
||||
get paRef(): IRelatedRefData | undefined;
|
||||
set paRef(ref: IRelatedRefData | undefined);
|
||||
get pbRef(): IRelatedRefData | undefined;
|
||||
set pbRef(ref: IRelatedRefData | undefined);
|
||||
get sectionType(): SectionType;
|
||||
set sectionType(type: SectionType);
|
||||
get children(): string[];
|
||||
@ -204,6 +204,8 @@ export class Section extends JlGraphic implements ILineGraphic {
|
||||
paDevice.id,
|
||||
paRelation?.getOtherRelationParam(this).param
|
||||
);
|
||||
} else {
|
||||
delete this.datas.paRef;
|
||||
}
|
||||
const pbRelation = this.relationManage
|
||||
.getRelationsOfGraphic(this)
|
||||
@ -217,6 +219,8 @@ export class Section extends JlGraphic implements ILineGraphic {
|
||||
pbDevice.id,
|
||||
pbRelation?.getOtherRelationParam(this).param
|
||||
);
|
||||
} else {
|
||||
delete this.datas.pbRef;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -27,12 +27,12 @@ export interface ITurnoutData extends GraphicData {
|
||||
set pointB(point: IPointData[]);
|
||||
get pointC(): IPointData[];
|
||||
set pointC(point: IPointData[]);
|
||||
get paRef(): IRelatedRefData;
|
||||
set paRef(ref: IRelatedRefData);
|
||||
get pbRef(): IRelatedRefData;
|
||||
set pbRef(ref: IRelatedRefData);
|
||||
get pcRef(): IRelatedRefData;
|
||||
set pcRef(ref: IRelatedRefData);
|
||||
get paRef(): IRelatedRefData | undefined;
|
||||
set paRef(ref: IRelatedRefData | undefined);
|
||||
get pbRef(): IRelatedRefData | undefined;
|
||||
set pbRef(ref: IRelatedRefData | undefined);
|
||||
get pcRef(): IRelatedRefData | undefined;
|
||||
set pcRef(ref: IRelatedRefData | undefined);
|
||||
get kilometerSystem(): KilometerSystem[];
|
||||
set kilometerSystem(v: KilometerSystem[]);
|
||||
clone(): ITurnoutData;
|
||||
@ -268,6 +268,8 @@ export class Turnout extends JlGraphic {
|
||||
paDevice.id,
|
||||
paRelation?.getOtherRelationParam(this).param
|
||||
);
|
||||
} else {
|
||||
delete this.datas.paRef;
|
||||
}
|
||||
const pbRelation = this.relationManage
|
||||
.getRelationsOfGraphic(this)
|
||||
@ -281,6 +283,8 @@ export class Turnout extends JlGraphic {
|
||||
pbDevice.id,
|
||||
pbRelation?.getOtherRelationParam(this).param
|
||||
);
|
||||
} else {
|
||||
delete this.datas.pbRef;
|
||||
}
|
||||
const pcRelation = this.relationManage
|
||||
.getRelationsOfGraphic(this)
|
||||
@ -294,6 +298,8 @@ export class Turnout extends JlGraphic {
|
||||
pcDevice.id,
|
||||
pcRelation?.getOtherRelationParam(this).param
|
||||
);
|
||||
} else {
|
||||
delete this.datas.pcRef;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user