diff --git a/src/components/draw-app/properties/AxleCountingProperty.vue b/src/components/draw-app/properties/AxleCountingProperty.vue index 22244b8..b81172b 100644 --- a/src/components/draw-app/properties/AxleCountingProperty.vue +++ b/src/components/draw-app/properties/AxleCountingProperty.vue @@ -7,12 +7,12 @@ label="id" hint="" /> - diff --git a/src/components/draw-app/properties/AxleCountingSectionProperty.vue b/src/components/draw-app/properties/AxleCountingSectionProperty.vue index f1657c9..7bdb630 100644 --- a/src/components/draw-app/properties/AxleCountingSectionProperty.vue +++ b/src/components/draw-app/properties/AxleCountingSectionProperty.vue @@ -12,7 +12,7 @@ label="计轴区段索引编号" type="textarea" @blur="onUpdate" - v-model="axleCountingSectionModel.indexNumber" + v-model="axleCountingSectionModel.index" lazy-rules autogrow /> diff --git a/src/components/draw-app/properties/LogicSectionProperty.vue b/src/components/draw-app/properties/LogicSectionProperty.vue index bdbc260..d40539c 100644 --- a/src/components/draw-app/properties/LogicSectionProperty.vue +++ b/src/components/draw-app/properties/LogicSectionProperty.vue @@ -12,7 +12,7 @@ label="索引编号" type="textarea" @blur="onUpdate" - v-model="logicSectionModel.indexNumber" + v-model="logicSectionModel.index" lazy-rules autogrow /> diff --git a/src/drawApp/graphics/AxleCountingInteraction.ts b/src/drawApp/graphics/AxleCountingInteraction.ts index 64adf28..42b4c3f 100644 --- a/src/drawApp/graphics/AxleCountingInteraction.ts +++ b/src/drawApp/graphics/AxleCountingInteraction.ts @@ -44,11 +44,11 @@ export class AxleCountingData set axleCountingRef(points: graphicData.RelatedRef[]) { this.data.axleCountingRef = points; } - get indexNumber(): number { - return this.data.indexNumber; + get index(): number { + return this.data.index; } - set indexNumber(v: number) { - this.data.indexNumber = v; + set index(v: number) { + this.data.index = v; } clone(): AxleCountingData { return new AxleCountingData(this.data.cloneMessage()); diff --git a/src/drawApp/graphics/AxleCountingSectionInteraction.ts b/src/drawApp/graphics/AxleCountingSectionInteraction.ts index 053c76d..17cdf26 100644 --- a/src/drawApp/graphics/AxleCountingSectionInteraction.ts +++ b/src/drawApp/graphics/AxleCountingSectionInteraction.ts @@ -58,11 +58,11 @@ export class AxleCountingSectionData set turnoutPosRef(points: ITurnoutPosRefData[]) { this.data.turnoutPos = points.map((p) => new graphicData.TurnoutPosRef(p)); } - get indexNumber(): number { - return this.data.indexNumber; + get index(): number { + return this.data.index; } - set indexNumber(v: number) { - this.data.indexNumber = v; + set index(v: number) { + this.data.index = v; } clone(): AxleCountingSectionData { return new AxleCountingSectionData(this.data.cloneMessage()); diff --git a/src/drawApp/graphics/LogicSectionInteraction.ts b/src/drawApp/graphics/LogicSectionInteraction.ts index e1f72f1..19539ce 100644 --- a/src/drawApp/graphics/LogicSectionInteraction.ts +++ b/src/drawApp/graphics/LogicSectionInteraction.ts @@ -45,11 +45,11 @@ export class LogicSectionData set axleSectionId(v: string) { this.data.axleSectionId = v; } - get indexNumber(): number { - return this.data.indexNumber; + get index(): number { + return this.data.index; } - set indexNumber(v: number) { - this.data.indexNumber = v; + set index(v: number) { + this.data.index = v; } get turnoutId(): string { return this.data.turnoutId; diff --git a/src/graphics/axleCounting/AxleCounting.ts b/src/graphics/axleCounting/AxleCounting.ts index 1334812..0c5550e 100644 --- a/src/graphics/axleCounting/AxleCounting.ts +++ b/src/graphics/axleCounting/AxleCounting.ts @@ -16,8 +16,8 @@ export interface IAxleCountingData extends GraphicData { set kilometerSystem(v: KilometerSystem); get axleCountingRef(): IRelatedRefData[]; //关联的设备 set axleCountingRef(ref: IRelatedRefData[]); - get indexNumber(): number; // 索引编号 - set indexNumber(v: number); + get index(): number; // 索引编号 + set index(v: number); clone(): IAxleCountingData; copyFrom(data: IAxleCountingData): void; eq(other: IAxleCountingData): boolean; diff --git a/src/graphics/axleCountingSection/AxleCountingSection.ts b/src/graphics/axleCountingSection/AxleCountingSection.ts index e5ec5bb..bbebf01 100644 --- a/src/graphics/axleCountingSection/AxleCountingSection.ts +++ b/src/graphics/axleCountingSection/AxleCountingSection.ts @@ -28,8 +28,8 @@ export interface IAxleCountingSectionData extends GraphicData { set pbRef(ref: IRelatedRefData | undefined); get turnoutPosRef(): ITurnoutPosRefData[]; //关联道岔的定反位--0是定位,1是反位 set turnoutPosRef(ref: ITurnoutPosRefData[]); - get indexNumber(): number; // 索引编号 - set indexNumber(v: number); + get index(): number; // 索引编号 + set index(v: number); clone(): IAxleCountingSectionData; copyFrom(data: IAxleCountingSectionData): void; eq(other: IAxleCountingSectionData): boolean; diff --git a/src/graphics/logicSection/LogicSection.ts b/src/graphics/logicSection/LogicSection.ts index 9162402..6c4f4a8 100644 --- a/src/graphics/logicSection/LogicSection.ts +++ b/src/graphics/logicSection/LogicSection.ts @@ -17,8 +17,8 @@ export interface ILogicSectionData extends GraphicData { set points(points: IPointData[]); get axleSectionId(): string; // 计轴区段ID set axleSectionId(v: string); - get indexNumber(): number; // 索引编号 - set indexNumber(v: number); + get index(): number; // 索引编号 + set index(v: number); get turnoutId(): string; // 关联岔芯的道岔id set turnoutId(v: string); clone(): ILogicSectionData;