This commit is contained in:
fan 2023-07-14 15:36:49 +08:00
commit d52c6e3732
9 changed files with 22 additions and 22 deletions

View File

@ -12,7 +12,7 @@
label="计轴索引编号" label="计轴索引编号"
type="textarea" type="textarea"
@blur="onUpdate" @blur="onUpdate"
v-model="axleCountingModel.indexNumber" v-model="axleCountingModel.index"
lazy-rules lazy-rules
autogrow autogrow
/> />

View File

@ -12,7 +12,7 @@
label="计轴区段索引编号" label="计轴区段索引编号"
type="textarea" type="textarea"
@blur="onUpdate" @blur="onUpdate"
v-model="axleCountingSectionModel.indexNumber" v-model="axleCountingSectionModel.index"
lazy-rules lazy-rules
autogrow autogrow
/> />

View File

@ -12,7 +12,7 @@
label="索引编号" label="索引编号"
type="textarea" type="textarea"
@blur="onUpdate" @blur="onUpdate"
v-model="logicSectionModel.indexNumber" v-model="logicSectionModel.index"
lazy-rules lazy-rules
autogrow autogrow
/> />

View File

@ -44,11 +44,11 @@ export class AxleCountingData
set axleCountingRef(points: graphicData.RelatedRef[]) { set axleCountingRef(points: graphicData.RelatedRef[]) {
this.data.axleCountingRef = points; this.data.axleCountingRef = points;
} }
get indexNumber(): number { get index(): number {
return this.data.indexNumber; return this.data.index;
} }
set indexNumber(v: number) { set index(v: number) {
this.data.indexNumber = v; this.data.index = v;
} }
clone(): AxleCountingData { clone(): AxleCountingData {
return new AxleCountingData(this.data.cloneMessage()); return new AxleCountingData(this.data.cloneMessage());

View File

@ -58,11 +58,11 @@ export class AxleCountingSectionData
set turnoutPosRef(points: ITurnoutPosRefData[]) { set turnoutPosRef(points: ITurnoutPosRefData[]) {
this.data.turnoutPos = points.map((p) => new graphicData.TurnoutPosRef(p)); this.data.turnoutPos = points.map((p) => new graphicData.TurnoutPosRef(p));
} }
get indexNumber(): number { get index(): number {
return this.data.indexNumber; return this.data.index;
} }
set indexNumber(v: number) { set index(v: number) {
this.data.indexNumber = v; this.data.index = v;
} }
clone(): AxleCountingSectionData { clone(): AxleCountingSectionData {
return new AxleCountingSectionData(this.data.cloneMessage()); return new AxleCountingSectionData(this.data.cloneMessage());

View File

@ -45,11 +45,11 @@ export class LogicSectionData
set axleSectionId(v: string) { set axleSectionId(v: string) {
this.data.axleSectionId = v; this.data.axleSectionId = v;
} }
get indexNumber(): number { get index(): number {
return this.data.indexNumber; return this.data.index;
} }
set indexNumber(v: number) { set index(v: number) {
this.data.indexNumber = v; this.data.index = v;
} }
get turnoutId(): string { get turnoutId(): string {
return this.data.turnoutId; return this.data.turnoutId;

View File

@ -16,8 +16,8 @@ export interface IAxleCountingData extends GraphicData {
set kilometerSystem(v: KilometerSystem); set kilometerSystem(v: KilometerSystem);
get axleCountingRef(): IRelatedRefData[]; //关联的设备 get axleCountingRef(): IRelatedRefData[]; //关联的设备
set axleCountingRef(ref: IRelatedRefData[]); set axleCountingRef(ref: IRelatedRefData[]);
get indexNumber(): number; // 索引编号 get index(): number; // 索引编号
set indexNumber(v: number); set index(v: number);
clone(): IAxleCountingData; clone(): IAxleCountingData;
copyFrom(data: IAxleCountingData): void; copyFrom(data: IAxleCountingData): void;
eq(other: IAxleCountingData): boolean; eq(other: IAxleCountingData): boolean;

View File

@ -28,8 +28,8 @@ export interface IAxleCountingSectionData extends GraphicData {
set pbRef(ref: IRelatedRefData | undefined); set pbRef(ref: IRelatedRefData | undefined);
get turnoutPosRef(): ITurnoutPosRefData[]; //关联道岔的定反位--0是定位1是反位 get turnoutPosRef(): ITurnoutPosRefData[]; //关联道岔的定反位--0是定位1是反位
set turnoutPosRef(ref: ITurnoutPosRefData[]); set turnoutPosRef(ref: ITurnoutPosRefData[]);
get indexNumber(): number; // 索引编号 get index(): number; // 索引编号
set indexNumber(v: number); set index(v: number);
clone(): IAxleCountingSectionData; clone(): IAxleCountingSectionData;
copyFrom(data: IAxleCountingSectionData): void; copyFrom(data: IAxleCountingSectionData): void;
eq(other: IAxleCountingSectionData): boolean; eq(other: IAxleCountingSectionData): boolean;

View File

@ -17,8 +17,8 @@ export interface ILogicSectionData extends GraphicData {
set points(points: IPointData[]); set points(points: IPointData[]);
get axleSectionId(): string; // 计轴区段ID get axleSectionId(): string; // 计轴区段ID
set axleSectionId(v: string); set axleSectionId(v: string);
get indexNumber(): number; // 索引编号 get index(): number; // 索引编号
set indexNumber(v: number); set index(v: number);
get turnoutId(): string; // 关联岔芯的道岔id get turnoutId(): string; // 关联岔芯的道岔id
set turnoutId(v: string); set turnoutId(v: string);
clone(): ILogicSectionData; clone(): ILogicSectionData;