This commit is contained in:
fan 2023-10-19 17:30:49 +08:00
commit 7fcda79b8c
2 changed files with 65 additions and 0 deletions

View File

@ -152,6 +152,14 @@
v-model="UniqueIdPrefix.lineId" v-model="UniqueIdPrefix.lineId"
:rules="[(val) => val.trim() != '' || '集中站名称不能为空']" :rules="[(val) => val.trim() != '' || '集中站名称不能为空']"
/> />
<q-input
outlined
label="地图的公里标主坐标系"
v-model="UniqueIdPrefix.mainCoordinateSystem"
:rules="[
(val) => val.trim() != '' || '地图的公里标主坐标系不能为空',
]"
/>
</q-card-section> </q-card-section>
<q-card-actions align="right"> <q-card-actions align="right">

View File

@ -2798,6 +2798,7 @@ export namespace graphicData {
index?: number; index?: number;
refDev?: RelatedRef; refDev?: RelatedRef;
centralizedStations?: string[]; centralizedStations?: string[];
mt?: Signal.ModelType;
}) { }) {
super(); super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [9], this.#one_of_decls); pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [9], this.#one_of_decls);
@ -2823,6 +2824,9 @@ export namespace graphicData {
if ("centralizedStations" in data && data.centralizedStations != undefined) { if ("centralizedStations" in data && data.centralizedStations != undefined) {
this.centralizedStations = data.centralizedStations; this.centralizedStations = data.centralizedStations;
} }
if ("mt" in data && data.mt != undefined) {
this.mt = data.mt;
}
} }
} }
get common() { get common() {
@ -2876,6 +2880,12 @@ export namespace graphicData {
set centralizedStations(value: string[]) { set centralizedStations(value: string[]) {
pb_1.Message.setField(this, 9, value); pb_1.Message.setField(this, 9, value);
} }
get mt() {
return pb_1.Message.getFieldWithDefault(this, 10, Signal.ModelType.N) as Signal.ModelType;
}
set mt(value: Signal.ModelType) {
pb_1.Message.setField(this, 10, value);
}
static fromObject(data: { static fromObject(data: {
common?: ReturnType<typeof CommonInfo.prototype.toObject>; common?: ReturnType<typeof CommonInfo.prototype.toObject>;
code?: string; code?: string;
@ -2884,6 +2894,7 @@ export namespace graphicData {
index?: number; index?: number;
refDev?: ReturnType<typeof RelatedRef.prototype.toObject>; refDev?: ReturnType<typeof RelatedRef.prototype.toObject>;
centralizedStations?: string[]; centralizedStations?: string[];
mt?: Signal.ModelType;
}): Signal { }): Signal {
const message = new Signal({}); const message = new Signal({});
if (data.common != null) { if (data.common != null) {
@ -2907,6 +2918,9 @@ export namespace graphicData {
if (data.centralizedStations != null) { if (data.centralizedStations != null) {
message.centralizedStations = data.centralizedStations; message.centralizedStations = data.centralizedStations;
} }
if (data.mt != null) {
message.mt = data.mt;
}
return message; return message;
} }
toObject() { toObject() {
@ -2918,6 +2932,7 @@ export namespace graphicData {
index?: number; index?: number;
refDev?: ReturnType<typeof RelatedRef.prototype.toObject>; refDev?: ReturnType<typeof RelatedRef.prototype.toObject>;
centralizedStations?: string[]; centralizedStations?: string[];
mt?: Signal.ModelType;
} = {}; } = {};
if (this.common != null) { if (this.common != null) {
data.common = this.common.toObject(); data.common = this.common.toObject();
@ -2940,6 +2955,9 @@ export namespace graphicData {
if (this.centralizedStations != null) { if (this.centralizedStations != null) {
data.centralizedStations = this.centralizedStations; data.centralizedStations = this.centralizedStations;
} }
if (this.mt != null) {
data.mt = this.mt;
}
return data; return data;
} }
serialize(): Uint8Array; serialize(): Uint8Array;
@ -2960,6 +2978,8 @@ export namespace graphicData {
writer.writeMessage(8, this.refDev, () => this.refDev.serialize(writer)); writer.writeMessage(8, this.refDev, () => this.refDev.serialize(writer));
if (this.centralizedStations.length) if (this.centralizedStations.length)
writer.writeRepeatedString(9, this.centralizedStations); writer.writeRepeatedString(9, this.centralizedStations);
if (this.mt != Signal.ModelType.N)
writer.writeEnum(10, this.mt);
if (!w) if (!w)
return writer.getResultBuffer(); return writer.getResultBuffer();
} }
@ -2990,6 +3010,9 @@ export namespace graphicData {
case 9: case 9:
pb_1.Message.addToRepeatedField(message, 9, reader.readString()); pb_1.Message.addToRepeatedField(message, 9, reader.readString());
break; break;
case 10:
message.mt = reader.readEnum();
break;
default: reader.skipField(); default: reader.skipField();
} }
} }
@ -3002,6 +3025,17 @@ export namespace graphicData {
return Signal.deserialize(bytes); return Signal.deserialize(bytes);
} }
} }
export namespace Signal {
export enum ModelType {
N = 0,
HL = 1,
HLU_FU = 2,
HLU = 3,
HLU_FL = 4,
AB = 5,
HBU = 6
}
}
export class Section extends pb_1.Message { export class Section extends pb_1.Message {
#one_of_decls: number[][] = []; #one_of_decls: number[][] = [];
constructor(data?: any[] | { constructor(data?: any[] | {
@ -6644,6 +6678,7 @@ export namespace graphicData {
constructor(data?: any[] | { constructor(data?: any[] | {
city?: string; city?: string;
lineId?: string; lineId?: string;
mainCoordinateSystem?: string;
}) { }) {
super(); super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
@ -6654,6 +6689,9 @@ export namespace graphicData {
if ("lineId" in data && data.lineId != undefined) { if ("lineId" in data && data.lineId != undefined) {
this.lineId = data.lineId; this.lineId = data.lineId;
} }
if ("mainCoordinateSystem" in data && data.mainCoordinateSystem != undefined) {
this.mainCoordinateSystem = data.mainCoordinateSystem;
}
} }
} }
get city() { get city() {
@ -6668,9 +6706,16 @@ export namespace graphicData {
set lineId(value: string) { set lineId(value: string) {
pb_1.Message.setField(this, 2, value); pb_1.Message.setField(this, 2, value);
} }
get mainCoordinateSystem() {
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
}
set mainCoordinateSystem(value: string) {
pb_1.Message.setField(this, 3, value);
}
static fromObject(data: { static fromObject(data: {
city?: string; city?: string;
lineId?: string; lineId?: string;
mainCoordinateSystem?: string;
}): UniqueIdOfStationLayout { }): UniqueIdOfStationLayout {
const message = new UniqueIdOfStationLayout({}); const message = new UniqueIdOfStationLayout({});
if (data.city != null) { if (data.city != null) {
@ -6679,12 +6724,16 @@ export namespace graphicData {
if (data.lineId != null) { if (data.lineId != null) {
message.lineId = data.lineId; message.lineId = data.lineId;
} }
if (data.mainCoordinateSystem != null) {
message.mainCoordinateSystem = data.mainCoordinateSystem;
}
return message; return message;
} }
toObject() { toObject() {
const data: { const data: {
city?: string; city?: string;
lineId?: string; lineId?: string;
mainCoordinateSystem?: string;
} = {}; } = {};
if (this.city != null) { if (this.city != null) {
data.city = this.city; data.city = this.city;
@ -6692,6 +6741,9 @@ export namespace graphicData {
if (this.lineId != null) { if (this.lineId != null) {
data.lineId = this.lineId; data.lineId = this.lineId;
} }
if (this.mainCoordinateSystem != null) {
data.mainCoordinateSystem = this.mainCoordinateSystem;
}
return data; return data;
} }
serialize(): Uint8Array; serialize(): Uint8Array;
@ -6702,6 +6754,8 @@ export namespace graphicData {
writer.writeString(1, this.city); writer.writeString(1, this.city);
if (this.lineId.length) if (this.lineId.length)
writer.writeString(2, this.lineId); writer.writeString(2, this.lineId);
if (this.mainCoordinateSystem.length)
writer.writeString(3, this.mainCoordinateSystem);
if (!w) if (!w)
return writer.getResultBuffer(); return writer.getResultBuffer();
} }
@ -6717,6 +6771,9 @@ export namespace graphicData {
case 2: case 2:
message.lineId = reader.readString(); message.lineId = reader.readString();
break; break;
case 3:
message.mainCoordinateSystem = reader.readString();
break;
default: reader.skipField(); default: reader.skipField();
} }
} }