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