去除虚拟计轴
This commit is contained in:
parent
16cf9af1ae
commit
850e79c28a
@ -52,15 +52,6 @@
|
||||
@update:model-value="onUpdate"
|
||||
label="方向"
|
||||
></q-select>
|
||||
<q-select
|
||||
outlined
|
||||
@blur="onUpdate"
|
||||
v-model="axleCountingModel.invent"
|
||||
:options="optionsInvent"
|
||||
label="是否虚拟区段检测点"
|
||||
map-options
|
||||
emit-value
|
||||
/>
|
||||
<q-select
|
||||
outlined
|
||||
v-model="axleCountingModel.type"
|
||||
@ -143,10 +134,6 @@ const directionOptions = [
|
||||
{ label: '右行', value: 1 },
|
||||
];
|
||||
|
||||
const optionsInvent = [
|
||||
{ label: '是', value: true },
|
||||
{ label: '否', value: false },
|
||||
];
|
||||
const optionsDetectType = [
|
||||
{ label: '计轴', value: 0 },
|
||||
{ label: '区段边界', value: 1 },
|
||||
|
@ -53,12 +53,6 @@ export class AxleCountingData
|
||||
set index(v: number) {
|
||||
this.data.index = v;
|
||||
}
|
||||
get invent(): boolean {
|
||||
return this.data.invent;
|
||||
}
|
||||
set invent(v: boolean) {
|
||||
this.data.invent = v;
|
||||
}
|
||||
get type(): graphicData.AxleCounting.TypeDetectionPoint {
|
||||
return this.data.type;
|
||||
}
|
||||
|
@ -23,8 +23,6 @@ export interface IAxleCountingData extends GraphicData {
|
||||
set axleCountingRef(ref: IRelatedRefData[]);
|
||||
get index(): number; // 索引编号
|
||||
set index(v: number);
|
||||
get invent(): boolean; // 是否虚拟计轴
|
||||
set invent(v: boolean);
|
||||
get type(): TypeDetectionPoint; // 计轴、区段边界
|
||||
set type(v: TypeDetectionPoint);
|
||||
clone(): IAxleCountingData;
|
||||
@ -61,9 +59,6 @@ class TwoCircleGraphic extends Container {
|
||||
this.circleB.position.set(12, 0);
|
||||
this.line.clear();
|
||||
let color = AxleCountingConsts.circleColorBlue;
|
||||
if (data.invent) {
|
||||
color = AxleCountingConsts.circleColorRed;
|
||||
}
|
||||
if (data.type == 1) {
|
||||
color = AxleCountingConsts.circleColorRed;
|
||||
}
|
||||
@ -74,9 +69,6 @@ class TwoCircleGraphic extends Container {
|
||||
drawCircle(circle: Graphics, data: IAxleCountingData): void {
|
||||
circle.clear();
|
||||
let color = AxleCountingConsts.circleColorBlue;
|
||||
if (data.invent) {
|
||||
color = AxleCountingConsts.circleColorRed;
|
||||
}
|
||||
if (data.type == 1) {
|
||||
color = AxleCountingConsts.circleColorRed;
|
||||
}
|
||||
|
@ -1688,7 +1688,6 @@ export namespace graphicData {
|
||||
kilometerSystem?: KilometerSystem;
|
||||
axleCountingRef?: RelatedRef[];
|
||||
index?: number;
|
||||
invent?: boolean;
|
||||
type?: AxleCounting.TypeDetectionPoint;
|
||||
}) {
|
||||
super();
|
||||
@ -1709,9 +1708,6 @@ export namespace graphicData {
|
||||
if ("index" in data && data.index != undefined) {
|
||||
this.index = data.index;
|
||||
}
|
||||
if ("invent" in data && data.invent != undefined) {
|
||||
this.invent = data.invent;
|
||||
}
|
||||
if ("type" in data && data.type != undefined) {
|
||||
this.type = data.type;
|
||||
}
|
||||
@ -1753,12 +1749,6 @@ export namespace graphicData {
|
||||
set index(value: number) {
|
||||
pb_1.Message.setField(this, 5, value);
|
||||
}
|
||||
get invent() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 6, false) as boolean;
|
||||
}
|
||||
set invent(value: boolean) {
|
||||
pb_1.Message.setField(this, 6, value);
|
||||
}
|
||||
get type() {
|
||||
return pb_1.Message.getFieldWithDefault(this, 7, AxleCounting.TypeDetectionPoint.AxleCounting) as AxleCounting.TypeDetectionPoint;
|
||||
}
|
||||
@ -1771,7 +1761,6 @@ export namespace graphicData {
|
||||
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
|
||||
axleCountingRef?: ReturnType<typeof RelatedRef.prototype.toObject>[];
|
||||
index?: number;
|
||||
invent?: boolean;
|
||||
type?: AxleCounting.TypeDetectionPoint;
|
||||
}): AxleCounting {
|
||||
const message = new AxleCounting({});
|
||||
@ -1790,9 +1779,6 @@ export namespace graphicData {
|
||||
if (data.index != null) {
|
||||
message.index = data.index;
|
||||
}
|
||||
if (data.invent != null) {
|
||||
message.invent = data.invent;
|
||||
}
|
||||
if (data.type != null) {
|
||||
message.type = data.type;
|
||||
}
|
||||
@ -1805,7 +1791,6 @@ export namespace graphicData {
|
||||
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
|
||||
axleCountingRef?: ReturnType<typeof RelatedRef.prototype.toObject>[];
|
||||
index?: number;
|
||||
invent?: boolean;
|
||||
type?: AxleCounting.TypeDetectionPoint;
|
||||
} = {};
|
||||
if (this.common != null) {
|
||||
@ -1823,9 +1808,6 @@ export namespace graphicData {
|
||||
if (this.index != null) {
|
||||
data.index = this.index;
|
||||
}
|
||||
if (this.invent != null) {
|
||||
data.invent = this.invent;
|
||||
}
|
||||
if (this.type != null) {
|
||||
data.type = this.type;
|
||||
}
|
||||
@ -1845,8 +1827,6 @@ export namespace graphicData {
|
||||
writer.writeRepeatedMessage(4, this.axleCountingRef, (item: RelatedRef) => item.serialize(writer));
|
||||
if (this.index != 0)
|
||||
writer.writeInt32(5, this.index);
|
||||
if (this.invent != false)
|
||||
writer.writeBool(6, this.invent);
|
||||
if (this.type != AxleCounting.TypeDetectionPoint.AxleCounting)
|
||||
writer.writeEnum(7, this.type);
|
||||
if (!w)
|
||||
@ -1873,9 +1853,6 @@ export namespace graphicData {
|
||||
case 5:
|
||||
message.index = reader.readInt32();
|
||||
break;
|
||||
case 6:
|
||||
message.invent = reader.readBool();
|
||||
break;
|
||||
case 7:
|
||||
message.type = reader.readEnum();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user