区段增加转换轨字段
This commit is contained in:
parent
38e85d3dfd
commit
9f74f659ad
@ -14,6 +14,11 @@
|
||||
@blur="onUpdate"
|
||||
label="目的地码"
|
||||
/>
|
||||
<q-checkbox
|
||||
v-model="sectionModel.turning"
|
||||
label="是否转换轨"
|
||||
@update:model-value="onUpdate"
|
||||
></q-checkbox>
|
||||
<q-field
|
||||
v-if="!isTurnoutPhysicalSection"
|
||||
class="q-mt-lg"
|
||||
|
@ -69,6 +69,12 @@ export class SectionData extends GraphicDataBase implements ISectionData {
|
||||
set destinationCode(destinationCode: string) {
|
||||
this.data.destinationCode = destinationCode;
|
||||
}
|
||||
get turning(): boolean {
|
||||
return this.data.turning;
|
||||
}
|
||||
set turning(v: boolean) {
|
||||
this.data.turning = v;
|
||||
}
|
||||
clone(): SectionData {
|
||||
return new SectionData(this.data.cloneMessage());
|
||||
}
|
||||
|
@ -46,6 +46,8 @@ export interface ISectionData extends GraphicData {
|
||||
set children(children: string[]);
|
||||
get destinationCode(): string;
|
||||
set destinationCode(destinationCode: string);
|
||||
get turning(): boolean;
|
||||
set turning(v: boolean);
|
||||
clone(): ISectionData;
|
||||
copyFrom(data: ISectionData): void;
|
||||
eq(other: ISectionData): boolean;
|
||||
|
@ -3509,6 +3509,7 @@ export namespace graphicData {
|
||||
axleCountings?: string[];
|
||||
children?: string[];
|
||||
destinationCode?: string;
|
||||
turning?: boolean;
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 7, 8], this.#one_of_decls);
|
||||
@ -3540,6 +3541,9 @@ export namespace graphicData {
|
||||
if ("destinationCode" in data && data.destinationCode != undefined) {
|
||||
this.destinationCode = data.destinationCode;
|
||||
}
|
||||
if ("turning" in data && data.turning != undefined) {
|
||||
this.turning = data.turning;
|
||||
}
|
||||
}
|
||||
}
|
||||
get common() {
|
||||
@ -3605,6 +3609,12 @@ export namespace graphicData {
|
||||
set destinationCode(value: string) {
|
||||
pb_1.Message.setField(this, 9, value);
|
||||
}
|
||||
get turning() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 10, false) as boolean;
|
||||
}
|
||||
set turning(value: boolean) {
|
||||
pb_1.Message.setField(this, 10, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
||||
code?: string;
|
||||
@ -3615,6 +3625,7 @@ export namespace graphicData {
|
||||
axleCountings?: string[];
|
||||
children?: string[];
|
||||
destinationCode?: string;
|
||||
turning?: boolean;
|
||||
}): Section {
|
||||
const message = new Section({});
|
||||
if (data.common != null) {
|
||||
@ -3644,6 +3655,9 @@ export namespace graphicData {
|
||||
if (data.destinationCode != null) {
|
||||
message.destinationCode = data.destinationCode;
|
||||
}
|
||||
if (data.turning != null) {
|
||||
message.turning = data.turning;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
@ -3657,6 +3671,7 @@ export namespace graphicData {
|
||||
axleCountings?: string[];
|
||||
children?: string[];
|
||||
destinationCode?: string;
|
||||
turning?: boolean;
|
||||
} = {};
|
||||
if (this.common != null) {
|
||||
data.common = this.common.toObject();
|
||||
@ -3685,6 +3700,9 @@ export namespace graphicData {
|
||||
if (this.destinationCode != null) {
|
||||
data.destinationCode = this.destinationCode;
|
||||
}
|
||||
if (this.turning != null) {
|
||||
data.turning = this.turning;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@ -3709,6 +3727,8 @@ export namespace graphicData {
|
||||
writer.writeRepeatedString(8, this.children);
|
||||
if (this.destinationCode.length)
|
||||
writer.writeString(9, this.destinationCode);
|
||||
if (this.turning != false)
|
||||
writer.writeBool(10, this.turning);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
@ -3745,6 +3765,9 @@ export namespace graphicData {
|
||||
case 9:
|
||||
message.destinationCode = reader.readString();
|
||||
break;
|
||||
case 10:
|
||||
message.turning = reader.readBool();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 464d12188c06e2f92d3879fb06ac56c1d4042e27
|
||||
Subproject commit 444643def119d639d49c6ce9be7836dea1a6eaf3
|
Loading…
Reference in New Issue
Block a user