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

View File

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