设置设备集中站
This commit is contained in:
parent
61f6848dc8
commit
da5ef1a045
@ -1 +1 @@
|
|||||||
Subproject commit b6bb68aa99c33ce539a7a858a3682f6269d5a392
|
Subproject commit 0413df374c5d01759e53bee16490866a17882f5f
|
@ -124,6 +124,9 @@
|
|||||||
></TrackLogicSectionProperty>
|
></TrackLogicSectionProperty>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-else-if="drawStore.selectedGraphics.length > 1">
|
||||||
|
<multiple-select-property></multiple-select-property>
|
||||||
|
</template>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -184,6 +187,7 @@ import TrackSectionProperty from './properties/TrackSectionProperty.vue';
|
|||||||
import { TrackSection } from 'src/graphics/trackSection/TrackSection';
|
import { TrackSection } from 'src/graphics/trackSection/TrackSection';
|
||||||
import TrackLogicSectionProperty from './properties/TrackLogicSectionProperty.vue';
|
import TrackLogicSectionProperty from './properties/TrackLogicSectionProperty.vue';
|
||||||
import { TrackLogicSection } from 'src/graphics/trackLogicSection/TrackLogicSection';
|
import { TrackLogicSection } from 'src/graphics/trackLogicSection/TrackLogicSection';
|
||||||
|
import MultipleSelectProperty from './properties/multipleSelectProperty.vue';
|
||||||
|
|
||||||
const drawStore = useDrawStore();
|
const drawStore = useDrawStore();
|
||||||
</script>
|
</script>
|
||||||
|
@ -29,6 +29,21 @@
|
|||||||
:options="optionsDirection"
|
:options="optionsDirection"
|
||||||
label="方向"
|
label="方向"
|
||||||
/>
|
/>
|
||||||
|
<q-field class="q-mt-lg" outlined label="所属集中站" stack-label>
|
||||||
|
<template #control>
|
||||||
|
<q-chip
|
||||||
|
color="primary"
|
||||||
|
text-color="white"
|
||||||
|
v-for="(name, index) in platformModel.centralizedStations"
|
||||||
|
:key="index"
|
||||||
|
removable
|
||||||
|
@remove="removeStation(index)"
|
||||||
|
square
|
||||||
|
>{{ name }}</q-chip
|
||||||
|
>
|
||||||
|
<q-btn round color="primary" size="xs" icon="add" @click="addStation" />
|
||||||
|
</template>
|
||||||
|
</q-field>
|
||||||
</q-form>
|
</q-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -37,8 +52,10 @@ import { PlatformData } from 'src/drawApp/graphics/PlatformInteraction';
|
|||||||
import { Platform } from 'src/graphics/platform/Platform';
|
import { Platform } from 'src/graphics/platform/Platform';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
import { onMounted, onUnmounted, reactive, ref } from 'vue';
|
import { onMounted, onUnmounted, reactive, ref } from 'vue';
|
||||||
|
import { useQuasar } from 'quasar';
|
||||||
|
|
||||||
const drawStore = useDrawStore();
|
const drawStore = useDrawStore();
|
||||||
|
const $q = useQuasar();
|
||||||
const platformModel = reactive(new PlatformData());
|
const platformModel = reactive(new PlatformData());
|
||||||
const hasDoor = ref('是');
|
const hasDoor = ref('是');
|
||||||
const optionsDoor = ['是', '否'];
|
const optionsDoor = ['是', '否'];
|
||||||
@ -57,6 +74,23 @@ enum showSelectData {
|
|||||||
down = '向下',
|
down = '向下',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function removeStation(index: number) {
|
||||||
|
platformModel.centralizedStations.splice(index, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function addStation() {
|
||||||
|
$q.dialog({
|
||||||
|
message: '添加设备的集中站',
|
||||||
|
prompt: {
|
||||||
|
model: '',
|
||||||
|
type: 'text', // optional
|
||||||
|
},
|
||||||
|
cancel: true,
|
||||||
|
}).onOk((data: string) => {
|
||||||
|
platformModel.centralizedStations.push(data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
drawStore.bindFormData(platformModel);
|
drawStore.bindFormData(platformModel);
|
||||||
const platform = drawStore.selectedGraphic as Platform;
|
const platform = drawStore.selectedGraphic as Platform;
|
||||||
|
@ -95,6 +95,21 @@
|
|||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</q-field>
|
</q-field>
|
||||||
|
<q-field class="q-mt-lg" outlined label="所属集中站" stack-label>
|
||||||
|
<template #control>
|
||||||
|
<q-chip
|
||||||
|
color="primary"
|
||||||
|
text-color="white"
|
||||||
|
v-for="(name, index) in sectionModel.centralizedStations"
|
||||||
|
:key="index"
|
||||||
|
removable
|
||||||
|
@remove="removeStation(index)"
|
||||||
|
square
|
||||||
|
>{{ name }}</q-chip
|
||||||
|
>
|
||||||
|
<q-btn round color="primary" size="xs" icon="add" @click="addStation" />
|
||||||
|
</template>
|
||||||
|
</q-field>
|
||||||
</q-form>
|
</q-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -105,14 +120,15 @@ import { Section } from 'src/graphics/section/Section';
|
|||||||
import { Turnout } from 'src/graphics/turnout/Turnout';
|
import { Turnout } from 'src/graphics/turnout/Turnout';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
import { computed, shallowRef, watchEffect } from 'vue';
|
import { useQuasar } from 'quasar';
|
||||||
|
import { computed, reactive, watchEffect } from 'vue';
|
||||||
|
|
||||||
const drawStore = useDrawStore();
|
const drawStore = useDrawStore();
|
||||||
|
const $q = useQuasar();
|
||||||
const sectionModel = shallowRef(new SectionData());
|
const sectionModel = reactive(new SectionData());
|
||||||
|
|
||||||
const sectionTypeText = computed(() => {
|
const sectionTypeText = computed(() => {
|
||||||
return ['物理区段', '', '道岔物理区段'][sectionModel.value.sectionType];
|
return ['物理区段', '', '道岔物理区段'][sectionModel.sectionType];
|
||||||
});
|
});
|
||||||
|
|
||||||
const sectionRelations = computed(() => {
|
const sectionRelations = computed(() => {
|
||||||
@ -160,17 +176,34 @@ const axleCountingRelations = computed(() => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function removeStation(index: number) {
|
||||||
|
sectionModel.centralizedStations.splice(index, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function addStation() {
|
||||||
|
$q.dialog({
|
||||||
|
message: '添加设备的集中站',
|
||||||
|
prompt: {
|
||||||
|
model: '',
|
||||||
|
type: 'text', // optional
|
||||||
|
},
|
||||||
|
cancel: true,
|
||||||
|
}).onOk((data: string) => {
|
||||||
|
sectionModel.centralizedStations.push(data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
const section = drawStore.selectedGraphic;
|
const section = drawStore.selectedGraphic;
|
||||||
if (section && section instanceof Section) {
|
if (section && section instanceof Section) {
|
||||||
sectionModel.value = section.saveData();
|
sectionModel.copyFrom(section.saveData());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const onUpdate = () => {
|
const onUpdate = () => {
|
||||||
const section = drawStore.selectedGraphic as Section;
|
const section = drawStore.selectedGraphic as Section;
|
||||||
if (section) {
|
if (section) {
|
||||||
drawStore.getDrawApp().updateGraphicAndRecord(section, sectionModel.value);
|
drawStore.getDrawApp().updateGraphicAndRecord(section, sectionModel);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -89,6 +89,21 @@
|
|||||||
@update:model-value="onUpdate"
|
@update:model-value="onUpdate"
|
||||||
label="关联设备端口:"
|
label="关联设备端口:"
|
||||||
></q-select>
|
></q-select>
|
||||||
|
<q-field class="q-mt-lg" outlined label="所属集中站" stack-label>
|
||||||
|
<template #control>
|
||||||
|
<q-chip
|
||||||
|
color="primary"
|
||||||
|
text-color="white"
|
||||||
|
v-for="(name, index) in signalModel.centralizedStations"
|
||||||
|
:key="index"
|
||||||
|
removable
|
||||||
|
@remove="removeStation(index)"
|
||||||
|
square
|
||||||
|
>{{ name }}</q-chip
|
||||||
|
>
|
||||||
|
<q-btn round color="primary" size="xs" icon="add" @click="addStation" />
|
||||||
|
</template>
|
||||||
|
</q-field>
|
||||||
</q-form>
|
</q-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -99,9 +114,11 @@ import { Direction, Signal } from 'src/graphics/signal/Signal';
|
|||||||
import { Turnout } from 'src/graphics/turnout/Turnout';
|
import { Turnout } from 'src/graphics/turnout/Turnout';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
|
import { useQuasar } from 'quasar';
|
||||||
import { onMounted, onUnmounted, reactive } from 'vue';
|
import { onMounted, onUnmounted, reactive } from 'vue';
|
||||||
|
|
||||||
const drawStore = useDrawStore();
|
const drawStore = useDrawStore();
|
||||||
|
const $q = useQuasar();
|
||||||
const signalModel = reactive(new SignalData());
|
const signalModel = reactive(new SignalData());
|
||||||
const kilometerSystem = reactive({
|
const kilometerSystem = reactive({
|
||||||
coordinateSystem: '',
|
coordinateSystem: '',
|
||||||
@ -172,6 +189,23 @@ function initDeviceList() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function removeStation(index: number) {
|
||||||
|
signalModel.centralizedStations.splice(index, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function addStation() {
|
||||||
|
$q.dialog({
|
||||||
|
message: '添加设备的集中站',
|
||||||
|
prompt: {
|
||||||
|
model: '',
|
||||||
|
type: 'text', // optional
|
||||||
|
},
|
||||||
|
cancel: true,
|
||||||
|
}).onOk((data: string) => {
|
||||||
|
signalModel.centralizedStations.push(data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
drawStore.bindFormData(signalModel);
|
drawStore.bindFormData(signalModel);
|
||||||
const signal = drawStore.selectedGraphic as Signal;
|
const signal = drawStore.selectedGraphic as Signal;
|
||||||
|
@ -83,6 +83,21 @@
|
|||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</q-field>
|
</q-field>
|
||||||
|
<q-field class="q-mt-lg" outlined label="所属集中站" stack-label>
|
||||||
|
<template #control>
|
||||||
|
<q-chip
|
||||||
|
color="primary"
|
||||||
|
text-color="white"
|
||||||
|
v-for="(name, index) in transponderModel.centralizedStations"
|
||||||
|
:key="index"
|
||||||
|
removable
|
||||||
|
@remove="removeStation(index)"
|
||||||
|
square
|
||||||
|
>{{ name }}</q-chip
|
||||||
|
>
|
||||||
|
<q-btn round color="primary" size="xs" icon="add" @click="addStation" />
|
||||||
|
</template>
|
||||||
|
</q-field>
|
||||||
</q-form>
|
</q-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -95,9 +110,11 @@ import {
|
|||||||
} from 'src/graphics/transponder/Transponder';
|
} from 'src/graphics/transponder/Transponder';
|
||||||
import { Turnout } from 'src/graphics/turnout/Turnout';
|
import { Turnout } from 'src/graphics/turnout/Turnout';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
|
import { useQuasar } from 'quasar';
|
||||||
import { computed, onMounted, onUnmounted, reactive } from 'vue';
|
import { computed, onMounted, onUnmounted, reactive } from 'vue';
|
||||||
|
|
||||||
const drawStore = useDrawStore();
|
const drawStore = useDrawStore();
|
||||||
|
const $q = useQuasar();
|
||||||
const transponderModel = reactive(new TransponderData());
|
const transponderModel = reactive(new TransponderData());
|
||||||
const typeOptions = [
|
const typeOptions = [
|
||||||
{ label: '固定应答器', value: transponderTypeEnum.FB },
|
{ label: '固定应答器', value: transponderTypeEnum.FB },
|
||||||
@ -141,6 +158,23 @@ onUnmounted(() => {
|
|||||||
drawStore.unbindFormData(transponderModel);
|
drawStore.unbindFormData(transponderModel);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function removeStation(index: number) {
|
||||||
|
transponderModel.centralizedStations.splice(index, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function addStation() {
|
||||||
|
$q.dialog({
|
||||||
|
message: '添加设备的集中站',
|
||||||
|
prompt: {
|
||||||
|
model: '',
|
||||||
|
type: 'text', // optional
|
||||||
|
},
|
||||||
|
cancel: true,
|
||||||
|
}).onOk((data: string) => {
|
||||||
|
transponderModel.centralizedStations.push(data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function onUpdate() {
|
function onUpdate() {
|
||||||
const Transponder = drawStore.selectedGraphic as Transponder;
|
const Transponder = drawStore.selectedGraphic as Transponder;
|
||||||
transponderModel.kilometerSystem = {
|
transponderModel.kilometerSystem = {
|
||||||
|
@ -104,6 +104,21 @@
|
|||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</q-field>
|
</q-field>
|
||||||
|
<q-field class="q-mt-lg" outlined label="所属集中站" stack-label>
|
||||||
|
<template #control>
|
||||||
|
<q-chip
|
||||||
|
color="primary"
|
||||||
|
text-color="white"
|
||||||
|
v-for="(name, index) in turnoutModel.centralizedStations"
|
||||||
|
:key="index"
|
||||||
|
removable
|
||||||
|
@remove="removeStation(index)"
|
||||||
|
square
|
||||||
|
>{{ name }}</q-chip
|
||||||
|
>
|
||||||
|
<q-btn round color="primary" size="xs" icon="add" @click="addStation" />
|
||||||
|
</template>
|
||||||
|
</q-field>
|
||||||
</q-form>
|
</q-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -114,16 +129,18 @@ import { Direction } from 'src/graphics/signal/Signal';
|
|||||||
import { Turnout } from 'src/graphics/turnout/Turnout';
|
import { Turnout } from 'src/graphics/turnout/Turnout';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
import { computed, reactive, shallowRef, watchEffect } from 'vue';
|
import { useQuasar } from 'quasar';
|
||||||
|
import { computed, reactive, watchEffect, ref } from 'vue';
|
||||||
|
|
||||||
const drawStore = useDrawStore();
|
const drawStore = useDrawStore();
|
||||||
|
const $q = useQuasar();
|
||||||
const CoordinateSystemOptions = [
|
const CoordinateSystemOptions = [
|
||||||
{ label: '车辆段', value: 'DEPOT' },
|
{ label: '车辆段', value: 'DEPOT' },
|
||||||
{ label: '停车场', value: 'PARKING_LOT' },
|
{ label: '停车场', value: 'PARKING_LOT' },
|
||||||
{ label: '正线', value: 'MAIN_LINE' },
|
{ label: '正线', value: 'MAIN_LINE' },
|
||||||
{ label: '换线', value: 'TRANSFER' },
|
{ label: '换线', value: 'TRANSFER' },
|
||||||
];
|
];
|
||||||
const turnoutModel = shallowRef(new TurnoutData());
|
const turnoutModel = reactive(new TurnoutData());
|
||||||
const kilometerSystem = reactive([
|
const kilometerSystem = reactive([
|
||||||
{ coordinateSystem: '', kilometer: 0, direction: Direction.LEFT },
|
{ coordinateSystem: '', kilometer: 0, direction: Direction.LEFT },
|
||||||
{ coordinateSystem: '', kilometer: 0, direction: Direction.LEFT },
|
{ coordinateSystem: '', kilometer: 0, direction: Direction.LEFT },
|
||||||
@ -147,6 +164,23 @@ const switchMachineTypeOptions = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
function removeStation(index: number) {
|
||||||
|
turnoutModel.centralizedStations.splice(index, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function addStation() {
|
||||||
|
$q.dialog({
|
||||||
|
message: '添加设备的集中站',
|
||||||
|
prompt: {
|
||||||
|
model: '',
|
||||||
|
type: 'text', // optional
|
||||||
|
},
|
||||||
|
cancel: true,
|
||||||
|
}).onOk((data: string) => {
|
||||||
|
turnoutModel.centralizedStations.push(data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const sectionRelations = computed(() => {
|
const sectionRelations = computed(() => {
|
||||||
const turnout = drawStore.selectedGraphic as Turnout;
|
const turnout = drawStore.selectedGraphic as Turnout;
|
||||||
|
|
||||||
@ -182,13 +216,12 @@ const turnoutRelations = computed(() => {
|
|||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
const turnout = drawStore.selectedGraphic;
|
const turnout = drawStore.selectedGraphic;
|
||||||
if (turnout && turnout instanceof Turnout) {
|
if (turnout && turnout instanceof Turnout) {
|
||||||
turnoutModel.value = turnout.saveData();
|
turnoutModel.copyFrom(turnout.saveData());
|
||||||
if (turnoutModel.value.kilometerSystem.length > 0) {
|
if (turnoutModel.kilometerSystem.length > 0) {
|
||||||
kilometerSystem.forEach((ks, i) => {
|
kilometerSystem.forEach((ks, i) => {
|
||||||
ks.coordinateSystem =
|
ks.coordinateSystem = turnoutModel.kilometerSystem[i].coordinateSystem;
|
||||||
turnoutModel.value.kilometerSystem[i].coordinateSystem;
|
ks.kilometer = turnoutModel.kilometerSystem[i].kilometer;
|
||||||
ks.kilometer = turnoutModel.value.kilometerSystem[i].kilometer;
|
ks.direction = turnoutModel.kilometerSystem[i].direction;
|
||||||
ks.direction = turnoutModel.value.kilometerSystem[i].direction;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -196,13 +229,13 @@ watchEffect(() => {
|
|||||||
|
|
||||||
const onUpdate = () => {
|
const onUpdate = () => {
|
||||||
const turnout = drawStore.selectedGraphic as Turnout;
|
const turnout = drawStore.selectedGraphic as Turnout;
|
||||||
turnoutModel.value.kilometerSystem = kilometerSystem.map((ks) => ({
|
turnoutModel.kilometerSystem = kilometerSystem.map((ks) => ({
|
||||||
coordinateSystem: ks.coordinateSystem,
|
coordinateSystem: ks.coordinateSystem,
|
||||||
kilometer: ks.kilometer,
|
kilometer: ks.kilometer,
|
||||||
direction: ks.direction,
|
direction: ks.direction,
|
||||||
}));
|
}));
|
||||||
if (turnout) {
|
if (turnout) {
|
||||||
drawStore.getDrawApp().updateGraphicAndRecord(turnout, turnoutModel.value);
|
drawStore.getDrawApp().updateGraphicAndRecord(turnout, turnoutModel);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
168
src/components/draw-app/properties/multipleSelectProperty.vue
Normal file
168
src/components/draw-app/properties/multipleSelectProperty.vue
Normal file
@ -0,0 +1,168 @@
|
|||||||
|
<template>
|
||||||
|
<div class="q-gutter-sm" style="padding: 16px">
|
||||||
|
<q-input
|
||||||
|
outlined
|
||||||
|
bottom-slots
|
||||||
|
v-model="stationName"
|
||||||
|
label="集中站"
|
||||||
|
counter
|
||||||
|
maxlength="12"
|
||||||
|
>
|
||||||
|
<template v-slot:append>
|
||||||
|
<q-btn
|
||||||
|
label="添加集中站"
|
||||||
|
color="primary"
|
||||||
|
@click="addCentralizedStation"
|
||||||
|
></q-btn>
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
<q-btn
|
||||||
|
label="清空集中站"
|
||||||
|
color="primary"
|
||||||
|
@click="clearCentralizedStation"
|
||||||
|
></q-btn>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
|
import { onMounted, onUnmounted, ref } from 'vue';
|
||||||
|
import { useQuasar } from 'quasar';
|
||||||
|
import { Section } from 'src/graphics/section/Section';
|
||||||
|
import { SectionData } from 'src/drawApp/graphics/SectionInteraction';
|
||||||
|
import { Signal } from 'src/graphics/signal/Signal';
|
||||||
|
import { SignalData } from 'src/drawApp/graphics/SignalInteraction';
|
||||||
|
import { Turnout } from 'src/graphics/turnout/Turnout';
|
||||||
|
import { TurnoutData } from 'src/drawApp/graphics/TurnoutInteraction';
|
||||||
|
import { AxleCounting } from 'src/graphics/axleCounting/AxleCounting';
|
||||||
|
import { AxleCountingData } from 'src/drawApp/graphics/AxleCountingInteraction';
|
||||||
|
import { Platform } from 'src/graphics/platform/Platform';
|
||||||
|
import { PlatformData } from 'src/drawApp/graphics/PlatformInteraction';
|
||||||
|
import { Transponder } from 'src/graphics/transponder/Transponder';
|
||||||
|
import { TransponderData } from 'src/drawApp/graphics/TransponderInteraction';
|
||||||
|
|
||||||
|
const stationName = ref('');
|
||||||
|
const drawStore = useDrawStore();
|
||||||
|
const $q = useQuasar();
|
||||||
|
onMounted(() => {
|
||||||
|
// drawStore.bindFormData(stationModel);
|
||||||
|
// const station = drawStore.selectedGraphic as Station;
|
||||||
|
// if (station) {
|
||||||
|
// stationModel.copyFrom(station.saveData());
|
||||||
|
// concentrationStations.value = (showSelectData as never)[
|
||||||
|
// stationModel.concentrationStations + ''
|
||||||
|
// ];
|
||||||
|
// if (stationModel.kilometerSystem) {
|
||||||
|
// kilometerSystem.coordinateSystem =
|
||||||
|
// stationModel.kilometerSystem.coordinateSystem;
|
||||||
|
// kilometerSystem.kilometer = stationModel.kilometerSystem.kilometer;
|
||||||
|
// kilometerSystem.direction = stationModel.kilometerSystem.direction;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
});
|
||||||
|
onUnmounted(() => {
|
||||||
|
// drawStore.unbindFormData(stationModel);
|
||||||
|
});
|
||||||
|
|
||||||
|
function addCentralizedStation() {
|
||||||
|
const devices = drawStore.selectedGraphics;
|
||||||
|
if (devices && devices.length && stationName.value) {
|
||||||
|
$q.dialog({
|
||||||
|
message: `确定为选中设备添加集中站【${stationName.value}】吗?`,
|
||||||
|
cancel: true,
|
||||||
|
}).onOk(() => {
|
||||||
|
devices.forEach((device) => {
|
||||||
|
if (device.type === Section.Type) {
|
||||||
|
const data = new SectionData();
|
||||||
|
data.copyFrom(device.saveData());
|
||||||
|
data.centralizedStations.push(stationName.value);
|
||||||
|
device.updateData(data);
|
||||||
|
} else if (device.type === Signal.Type) {
|
||||||
|
const data = new SignalData();
|
||||||
|
data.copyFrom(device.saveData());
|
||||||
|
data.centralizedStations.push(stationName.value);
|
||||||
|
device.updateData(data);
|
||||||
|
} else if (device.type === Turnout.Type) {
|
||||||
|
const data = new TurnoutData();
|
||||||
|
data.copyFrom(device.saveData());
|
||||||
|
data.centralizedStations.push(stationName.value);
|
||||||
|
device.updateData(data);
|
||||||
|
} else if (device.type === AxleCounting.Type) {
|
||||||
|
const data = new AxleCountingData();
|
||||||
|
data.copyFrom(device.saveData());
|
||||||
|
data.centralizedStations.push(stationName.value);
|
||||||
|
device.updateData(data);
|
||||||
|
} else if (device.type === Platform.Type) {
|
||||||
|
const data = new PlatformData();
|
||||||
|
data.copyFrom(device.saveData());
|
||||||
|
data.centralizedStations.push(stationName.value);
|
||||||
|
device.updateData(data);
|
||||||
|
} else if (device.type === Transponder.Type) {
|
||||||
|
const data = new TransponderData();
|
||||||
|
data.copyFrom(device.saveData());
|
||||||
|
data.centralizedStations.push(stationName.value);
|
||||||
|
device.updateData(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
stationName.value = '';
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function clearCentralizedStation() {
|
||||||
|
const devices = drawStore.selectedGraphics;
|
||||||
|
if (devices && devices.length) {
|
||||||
|
$q.dialog({ message: '确定清空选中设备的集中站吗?', cancel: true }).onOk(
|
||||||
|
() => {
|
||||||
|
devices.forEach((device) => {
|
||||||
|
if (device.type === Section.Type) {
|
||||||
|
const data = new SectionData();
|
||||||
|
data.copyFrom(device.saveData());
|
||||||
|
data.centralizedStations.push(stationName.value);
|
||||||
|
device.updateData(data);
|
||||||
|
} else if (device.type === Signal.Type) {
|
||||||
|
const data = new SignalData();
|
||||||
|
data.copyFrom(device.saveData());
|
||||||
|
data.centralizedStations = [];
|
||||||
|
device.updateData(data);
|
||||||
|
} else if (device.type === Turnout.Type) {
|
||||||
|
const data = new TurnoutData();
|
||||||
|
data.copyFrom(device.saveData());
|
||||||
|
data.centralizedStations = [];
|
||||||
|
device.updateData(data);
|
||||||
|
} else if (device.type === AxleCounting.Type) {
|
||||||
|
const data = new AxleCountingData();
|
||||||
|
data.copyFrom(device.saveData());
|
||||||
|
data.centralizedStations = [];
|
||||||
|
device.updateData(data);
|
||||||
|
} else if (device.type === Platform.Type) {
|
||||||
|
const data = new PlatformData();
|
||||||
|
data.copyFrom(device.saveData());
|
||||||
|
data.centralizedStations = [];
|
||||||
|
device.updateData(data);
|
||||||
|
} else if (device.type === Transponder.Type) {
|
||||||
|
const data = new TransponderData();
|
||||||
|
data.copyFrom(device.saveData());
|
||||||
|
data.centralizedStations = [];
|
||||||
|
device.updateData(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function onUpdate() {
|
||||||
|
// stationModel.concentrationStations = JSON.parse(
|
||||||
|
// (showSelect as never)[concentrationStations.value]
|
||||||
|
// );
|
||||||
|
// stationModel.kilometerSystem = {
|
||||||
|
// coordinateSystem: kilometerSystem.coordinateSystem,
|
||||||
|
// kilometer: kilometerSystem.kilometer,
|
||||||
|
// direction: kilometerSystem.direction,
|
||||||
|
// };
|
||||||
|
// const station = drawStore.selectedGraphic as Station;
|
||||||
|
// if (station) {
|
||||||
|
// drawStore.getDrawApp().updateGraphicAndRecord(station, stationModel);
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
</script>
|
@ -62,6 +62,12 @@ export class AxleCountingData
|
|||||||
set type(type: graphicData.AxleCounting.TypeDetectionPoint) {
|
set type(type: graphicData.AxleCounting.TypeDetectionPoint) {
|
||||||
this.data.type = type;
|
this.data.type = type;
|
||||||
}
|
}
|
||||||
|
get centralizedStations(): string[] {
|
||||||
|
return this.data.centralizedStations;
|
||||||
|
}
|
||||||
|
set centralizedStations(v: string[]) {
|
||||||
|
this.data.centralizedStations;
|
||||||
|
}
|
||||||
clone(): AxleCountingData {
|
clone(): AxleCountingData {
|
||||||
return new AxleCountingData(this.data.cloneMessage());
|
return new AxleCountingData(this.data.cloneMessage());
|
||||||
}
|
}
|
||||||
|
@ -64,6 +64,12 @@ export class PlatformData extends GraphicDataBase implements IPlatformData {
|
|||||||
set refStationIndex(v: number) {
|
set refStationIndex(v: number) {
|
||||||
this.data.refStationIndex = v;
|
this.data.refStationIndex = v;
|
||||||
}
|
}
|
||||||
|
get centralizedStations(): string[] {
|
||||||
|
return this.data.centralizedStations;
|
||||||
|
}
|
||||||
|
set centralizedStations(v: string[]) {
|
||||||
|
this.data.centralizedStations = v;
|
||||||
|
}
|
||||||
|
|
||||||
clone(): PlatformData {
|
clone(): PlatformData {
|
||||||
return new PlatformData(this.data.cloneMessage());
|
return new PlatformData(this.data.cloneMessage());
|
||||||
|
@ -95,6 +95,12 @@ export class SectionData extends GraphicDataBase implements ISectionData {
|
|||||||
set segmentsCount(v: number) {
|
set segmentsCount(v: number) {
|
||||||
this.data.segmentsCount = v;
|
this.data.segmentsCount = v;
|
||||||
}
|
}
|
||||||
|
get centralizedStations(): string[] {
|
||||||
|
return this.data.centralizedStations;
|
||||||
|
}
|
||||||
|
set centralizedStations(v: string[]) {
|
||||||
|
this.data.centralizedStations = v;
|
||||||
|
}
|
||||||
clone(): SectionData {
|
clone(): SectionData {
|
||||||
return new SectionData(this.data.cloneMessage());
|
return new SectionData(this.data.cloneMessage());
|
||||||
}
|
}
|
||||||
|
@ -64,6 +64,12 @@ export class SignalData extends GraphicDataBase implements ISignalData {
|
|||||||
set refDev(v: graphicData.RelatedRef) {
|
set refDev(v: graphicData.RelatedRef) {
|
||||||
this.data.refDev = v;
|
this.data.refDev = v;
|
||||||
}
|
}
|
||||||
|
get centralizedStations(): string[] {
|
||||||
|
return this.data.centralizedStations;
|
||||||
|
}
|
||||||
|
set centralizedStations(v: string[]) {
|
||||||
|
this.data.centralizedStations = v;
|
||||||
|
}
|
||||||
clone(): SignalData {
|
clone(): SignalData {
|
||||||
return new SignalData(this.data.cloneMessage());
|
return new SignalData(this.data.cloneMessage());
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,12 @@ export class TransponderData
|
|||||||
set TransponderRef(v: graphicData.RelatedRef) {
|
set TransponderRef(v: graphicData.RelatedRef) {
|
||||||
this.data.TransponderRef = v;
|
this.data.TransponderRef = v;
|
||||||
}
|
}
|
||||||
|
get centralizedStations(): string[] {
|
||||||
|
return this.data.centralizedStations;
|
||||||
|
}
|
||||||
|
set centralizedStations(v: string[]) {
|
||||||
|
this.data.centralizedStations = v;
|
||||||
|
}
|
||||||
clone(): TransponderData {
|
clone(): TransponderData {
|
||||||
return new TransponderData(this.data.cloneMessage());
|
return new TransponderData(this.data.cloneMessage());
|
||||||
}
|
}
|
||||||
|
@ -265,6 +265,12 @@ export class TurnoutData extends GraphicDataBase implements ITurnoutData {
|
|||||||
set switchMachineType(v: graphicData.Turnout.SwitchMachineType) {
|
set switchMachineType(v: graphicData.Turnout.SwitchMachineType) {
|
||||||
this.data.switchMachineType = v;
|
this.data.switchMachineType = v;
|
||||||
}
|
}
|
||||||
|
get centralizedStations(): string[] {
|
||||||
|
return this.data.centralizedStations;
|
||||||
|
}
|
||||||
|
set centralizedStations(v: string[]) {
|
||||||
|
this.data.centralizedStations = v;
|
||||||
|
}
|
||||||
clone(): TurnoutData {
|
clone(): TurnoutData {
|
||||||
return new TurnoutData(this.data.cloneMessage());
|
return new TurnoutData(this.data.cloneMessage());
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,8 @@ export interface IAxleCountingData extends GraphicData {
|
|||||||
set invent(v: boolean);
|
set invent(v: boolean);
|
||||||
get type(): TypeDetectionPoint; // 计轴、区段边界
|
get type(): TypeDetectionPoint; // 计轴、区段边界
|
||||||
set type(v: TypeDetectionPoint);
|
set type(v: TypeDetectionPoint);
|
||||||
|
get centralizedStations(): string[];
|
||||||
|
set centralizedStations(v: string[]);
|
||||||
clone(): IAxleCountingData;
|
clone(): IAxleCountingData;
|
||||||
copyFrom(data: IAxleCountingData): void;
|
copyFrom(data: IAxleCountingData): void;
|
||||||
eq(other: IAxleCountingData): boolean;
|
eq(other: IAxleCountingData): boolean;
|
||||||
|
@ -21,6 +21,8 @@ export interface IPlatformData extends GraphicData {
|
|||||||
set index(v: number);
|
set index(v: number);
|
||||||
get refStationIndex(): number;
|
get refStationIndex(): number;
|
||||||
set refStationIndex(v: number);
|
set refStationIndex(v: number);
|
||||||
|
get centralizedStations(): string[];
|
||||||
|
set centralizedStations(v: string[]);
|
||||||
clone(): IPlatformData;
|
clone(): IPlatformData;
|
||||||
copyFrom(data: IPlatformData): void;
|
copyFrom(data: IPlatformData): void;
|
||||||
eq(other: IPlatformData): boolean;
|
eq(other: IPlatformData): boolean;
|
||||||
|
@ -54,6 +54,8 @@ export interface ISectionData extends GraphicData {
|
|||||||
set isCurve(v: boolean);
|
set isCurve(v: boolean);
|
||||||
get segmentsCount(): number; // 曲线分段数
|
get segmentsCount(): number; // 曲线分段数
|
||||||
set segmentsCount(v: number);
|
set segmentsCount(v: number);
|
||||||
|
get centralizedStations(): string[];
|
||||||
|
set centralizedStations(v: string[]);
|
||||||
clone(): ISectionData;
|
clone(): ISectionData;
|
||||||
copyFrom(data: ISectionData): void;
|
copyFrom(data: ISectionData): void;
|
||||||
eq(other: ISectionData): boolean;
|
eq(other: ISectionData): boolean;
|
||||||
|
@ -44,6 +44,8 @@ export interface ISignalData extends GraphicData {
|
|||||||
set index(v: number);
|
set index(v: number);
|
||||||
get refDev(): IRelatedRefData;
|
get refDev(): IRelatedRefData;
|
||||||
set refDev(v: IRelatedRefData);
|
set refDev(v: IRelatedRefData);
|
||||||
|
get centralizedStations(): string[];
|
||||||
|
set centralizedStations(v: string[]);
|
||||||
clone(): ISignalData;
|
clone(): ISignalData;
|
||||||
copyFrom(data: ISignalData): void;
|
copyFrom(data: ISignalData): void;
|
||||||
eq(other: ISignalData): boolean;
|
eq(other: ISignalData): boolean;
|
||||||
|
@ -27,6 +27,8 @@ export interface ITransponderData extends GraphicData {
|
|||||||
set kilometerSystem(v: KilometerSystem);
|
set kilometerSystem(v: KilometerSystem);
|
||||||
get TransponderRef(): IRelatedRefData;
|
get TransponderRef(): IRelatedRefData;
|
||||||
set TransponderRef(v: IRelatedRefData);
|
set TransponderRef(v: IRelatedRefData);
|
||||||
|
get centralizedStations(): string[];
|
||||||
|
set centralizedStations(v: string[]);
|
||||||
clone(): ITransponderData;
|
clone(): ITransponderData;
|
||||||
copyFrom(data: ITransponderData): void;
|
copyFrom(data: ITransponderData): void;
|
||||||
eq(other: ITransponderData): boolean;
|
eq(other: ITransponderData): boolean;
|
||||||
|
@ -47,6 +47,8 @@ export interface ITurnoutData extends GraphicData {
|
|||||||
set pcTrackSectionId(v: string);
|
set pcTrackSectionId(v: string);
|
||||||
get switchMachineType(): graphicData.Turnout.SwitchMachineType;
|
get switchMachineType(): graphicData.Turnout.SwitchMachineType;
|
||||||
set switchMachineType(v: graphicData.Turnout.SwitchMachineType);
|
set switchMachineType(v: graphicData.Turnout.SwitchMachineType);
|
||||||
|
get centralizedStations(): string[];
|
||||||
|
set centralizedStations(v: string[]);
|
||||||
clone(): ITurnoutData;
|
clone(): ITurnoutData;
|
||||||
copyFrom(data: ITurnoutData): void;
|
copyFrom(data: ITurnoutData): void;
|
||||||
eq(other: ITurnoutData): boolean;
|
eq(other: ITurnoutData): boolean;
|
||||||
|
@ -1223,9 +1223,10 @@ export namespace graphicData {
|
|||||||
direction?: string;
|
direction?: string;
|
||||||
index?: number;
|
index?: number;
|
||||||
refStationIndex?: number;
|
refStationIndex?: number;
|
||||||
|
centralizedStations?: 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, [7], this.#one_of_decls);
|
||||||
if (!Array.isArray(data) && typeof data == "object") {
|
if (!Array.isArray(data) && typeof data == "object") {
|
||||||
if ("common" in data && data.common != undefined) {
|
if ("common" in data && data.common != undefined) {
|
||||||
this.common = data.common;
|
this.common = data.common;
|
||||||
@ -1245,6 +1246,9 @@ export namespace graphicData {
|
|||||||
if ("refStationIndex" in data && data.refStationIndex != undefined) {
|
if ("refStationIndex" in data && data.refStationIndex != undefined) {
|
||||||
this.refStationIndex = data.refStationIndex;
|
this.refStationIndex = data.refStationIndex;
|
||||||
}
|
}
|
||||||
|
if ("centralizedStations" in data && data.centralizedStations != undefined) {
|
||||||
|
this.centralizedStations = data.centralizedStations;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get common() {
|
get common() {
|
||||||
@ -1286,6 +1290,12 @@ export namespace graphicData {
|
|||||||
set refStationIndex(value: number) {
|
set refStationIndex(value: number) {
|
||||||
pb_1.Message.setField(this, 6, value);
|
pb_1.Message.setField(this, 6, value);
|
||||||
}
|
}
|
||||||
|
get centralizedStations() {
|
||||||
|
return pb_1.Message.getFieldWithDefault(this, 7, []) as string[];
|
||||||
|
}
|
||||||
|
set centralizedStations(value: string[]) {
|
||||||
|
pb_1.Message.setField(this, 7, value);
|
||||||
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
||||||
code?: string;
|
code?: string;
|
||||||
@ -1293,6 +1303,7 @@ export namespace graphicData {
|
|||||||
direction?: string;
|
direction?: string;
|
||||||
index?: number;
|
index?: number;
|
||||||
refStationIndex?: number;
|
refStationIndex?: number;
|
||||||
|
centralizedStations?: string[];
|
||||||
}): Platform {
|
}): Platform {
|
||||||
const message = new Platform({});
|
const message = new Platform({});
|
||||||
if (data.common != null) {
|
if (data.common != null) {
|
||||||
@ -1313,6 +1324,9 @@ export namespace graphicData {
|
|||||||
if (data.refStationIndex != null) {
|
if (data.refStationIndex != null) {
|
||||||
message.refStationIndex = data.refStationIndex;
|
message.refStationIndex = data.refStationIndex;
|
||||||
}
|
}
|
||||||
|
if (data.centralizedStations != null) {
|
||||||
|
message.centralizedStations = data.centralizedStations;
|
||||||
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
@ -1323,6 +1337,7 @@ export namespace graphicData {
|
|||||||
direction?: string;
|
direction?: string;
|
||||||
index?: number;
|
index?: number;
|
||||||
refStationIndex?: number;
|
refStationIndex?: number;
|
||||||
|
centralizedStations?: string[];
|
||||||
} = {};
|
} = {};
|
||||||
if (this.common != null) {
|
if (this.common != null) {
|
||||||
data.common = this.common.toObject();
|
data.common = this.common.toObject();
|
||||||
@ -1342,6 +1357,9 @@ export namespace graphicData {
|
|||||||
if (this.refStationIndex != null) {
|
if (this.refStationIndex != null) {
|
||||||
data.refStationIndex = this.refStationIndex;
|
data.refStationIndex = this.refStationIndex;
|
||||||
}
|
}
|
||||||
|
if (this.centralizedStations != null) {
|
||||||
|
data.centralizedStations = this.centralizedStations;
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
serialize(): Uint8Array;
|
serialize(): Uint8Array;
|
||||||
@ -1360,6 +1378,8 @@ export namespace graphicData {
|
|||||||
writer.writeInt32(5, this.index);
|
writer.writeInt32(5, this.index);
|
||||||
if (this.refStationIndex != 0)
|
if (this.refStationIndex != 0)
|
||||||
writer.writeInt32(6, this.refStationIndex);
|
writer.writeInt32(6, this.refStationIndex);
|
||||||
|
if (this.centralizedStations.length)
|
||||||
|
writer.writeRepeatedString(7, this.centralizedStations);
|
||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
@ -1387,6 +1407,9 @@ export namespace graphicData {
|
|||||||
case 6:
|
case 6:
|
||||||
message.refStationIndex = reader.readInt32();
|
message.refStationIndex = reader.readInt32();
|
||||||
break;
|
break;
|
||||||
|
case 7:
|
||||||
|
pb_1.Message.addToRepeatedField(message, 7, reader.readString());
|
||||||
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1690,9 +1713,10 @@ export namespace graphicData {
|
|||||||
index?: number;
|
index?: number;
|
||||||
invent?: boolean;
|
invent?: boolean;
|
||||||
type?: AxleCounting.TypeDetectionPoint;
|
type?: AxleCounting.TypeDetectionPoint;
|
||||||
|
centralizedStations?: string[];
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4, 8], this.#one_of_decls);
|
||||||
if (!Array.isArray(data) && typeof data == "object") {
|
if (!Array.isArray(data) && typeof data == "object") {
|
||||||
if ("common" in data && data.common != undefined) {
|
if ("common" in data && data.common != undefined) {
|
||||||
this.common = data.common;
|
this.common = data.common;
|
||||||
@ -1715,6 +1739,9 @@ export namespace graphicData {
|
|||||||
if ("type" in data && data.type != undefined) {
|
if ("type" in data && data.type != undefined) {
|
||||||
this.type = data.type;
|
this.type = data.type;
|
||||||
}
|
}
|
||||||
|
if ("centralizedStations" in data && data.centralizedStations != undefined) {
|
||||||
|
this.centralizedStations = data.centralizedStations;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get common() {
|
get common() {
|
||||||
@ -1765,6 +1792,12 @@ export namespace graphicData {
|
|||||||
set type(value: AxleCounting.TypeDetectionPoint) {
|
set type(value: AxleCounting.TypeDetectionPoint) {
|
||||||
pb_1.Message.setField(this, 7, value);
|
pb_1.Message.setField(this, 7, value);
|
||||||
}
|
}
|
||||||
|
get centralizedStations() {
|
||||||
|
return pb_1.Message.getFieldWithDefault(this, 8, []) as string[];
|
||||||
|
}
|
||||||
|
set centralizedStations(value: string[]) {
|
||||||
|
pb_1.Message.setField(this, 8, value);
|
||||||
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
||||||
code?: string;
|
code?: string;
|
||||||
@ -1773,6 +1806,7 @@ export namespace graphicData {
|
|||||||
index?: number;
|
index?: number;
|
||||||
invent?: boolean;
|
invent?: boolean;
|
||||||
type?: AxleCounting.TypeDetectionPoint;
|
type?: AxleCounting.TypeDetectionPoint;
|
||||||
|
centralizedStations?: string[];
|
||||||
}): AxleCounting {
|
}): AxleCounting {
|
||||||
const message = new AxleCounting({});
|
const message = new AxleCounting({});
|
||||||
if (data.common != null) {
|
if (data.common != null) {
|
||||||
@ -1796,6 +1830,9 @@ export namespace graphicData {
|
|||||||
if (data.type != null) {
|
if (data.type != null) {
|
||||||
message.type = data.type;
|
message.type = data.type;
|
||||||
}
|
}
|
||||||
|
if (data.centralizedStations != null) {
|
||||||
|
message.centralizedStations = data.centralizedStations;
|
||||||
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
@ -1807,6 +1844,7 @@ export namespace graphicData {
|
|||||||
index?: number;
|
index?: number;
|
||||||
invent?: boolean;
|
invent?: boolean;
|
||||||
type?: AxleCounting.TypeDetectionPoint;
|
type?: AxleCounting.TypeDetectionPoint;
|
||||||
|
centralizedStations?: string[];
|
||||||
} = {};
|
} = {};
|
||||||
if (this.common != null) {
|
if (this.common != null) {
|
||||||
data.common = this.common.toObject();
|
data.common = this.common.toObject();
|
||||||
@ -1829,6 +1867,9 @@ export namespace graphicData {
|
|||||||
if (this.type != null) {
|
if (this.type != null) {
|
||||||
data.type = this.type;
|
data.type = this.type;
|
||||||
}
|
}
|
||||||
|
if (this.centralizedStations != null) {
|
||||||
|
data.centralizedStations = this.centralizedStations;
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
serialize(): Uint8Array;
|
serialize(): Uint8Array;
|
||||||
@ -1849,6 +1890,8 @@ export namespace graphicData {
|
|||||||
writer.writeBool(6, this.invent);
|
writer.writeBool(6, this.invent);
|
||||||
if (this.type != AxleCounting.TypeDetectionPoint.AxleCounting)
|
if (this.type != AxleCounting.TypeDetectionPoint.AxleCounting)
|
||||||
writer.writeEnum(7, this.type);
|
writer.writeEnum(7, this.type);
|
||||||
|
if (this.centralizedStations.length)
|
||||||
|
writer.writeRepeatedString(8, this.centralizedStations);
|
||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
@ -1879,6 +1922,9 @@ export namespace graphicData {
|
|||||||
case 7:
|
case 7:
|
||||||
message.type = reader.readEnum();
|
message.type = reader.readEnum();
|
||||||
break;
|
break;
|
||||||
|
case 8:
|
||||||
|
pb_1.Message.addToRepeatedField(message, 8, reader.readString());
|
||||||
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1914,9 +1960,10 @@ export namespace graphicData {
|
|||||||
pbTrackSectionId?: string;
|
pbTrackSectionId?: string;
|
||||||
pcTrackSectionId?: string;
|
pcTrackSectionId?: string;
|
||||||
switchMachineType?: Turnout.SwitchMachineType;
|
switchMachineType?: Turnout.SwitchMachineType;
|
||||||
|
centralizedStations?: string[];
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6, 7, 8, 13], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6, 7, 8, 13, 19], this.#one_of_decls);
|
||||||
if (!Array.isArray(data) && typeof data == "object") {
|
if (!Array.isArray(data) && typeof data == "object") {
|
||||||
if ("common" in data && data.common != undefined) {
|
if ("common" in data && data.common != undefined) {
|
||||||
this.common = data.common;
|
this.common = data.common;
|
||||||
@ -1960,6 +2007,9 @@ export namespace graphicData {
|
|||||||
if ("switchMachineType" in data && data.switchMachineType != undefined) {
|
if ("switchMachineType" in data && data.switchMachineType != undefined) {
|
||||||
this.switchMachineType = data.switchMachineType;
|
this.switchMachineType = data.switchMachineType;
|
||||||
}
|
}
|
||||||
|
if ("centralizedStations" in data && data.centralizedStations != undefined) {
|
||||||
|
this.centralizedStations = data.centralizedStations;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get common() {
|
get common() {
|
||||||
@ -2058,6 +2108,12 @@ export namespace graphicData {
|
|||||||
set switchMachineType(value: Turnout.SwitchMachineType) {
|
set switchMachineType(value: Turnout.SwitchMachineType) {
|
||||||
pb_1.Message.setField(this, 18, value);
|
pb_1.Message.setField(this, 18, value);
|
||||||
}
|
}
|
||||||
|
get centralizedStations() {
|
||||||
|
return pb_1.Message.getFieldWithDefault(this, 19, []) as string[];
|
||||||
|
}
|
||||||
|
set centralizedStations(value: string[]) {
|
||||||
|
pb_1.Message.setField(this, 19, value);
|
||||||
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
||||||
code?: string;
|
code?: string;
|
||||||
@ -2073,6 +2129,7 @@ export namespace graphicData {
|
|||||||
pbTrackSectionId?: string;
|
pbTrackSectionId?: string;
|
||||||
pcTrackSectionId?: string;
|
pcTrackSectionId?: string;
|
||||||
switchMachineType?: Turnout.SwitchMachineType;
|
switchMachineType?: Turnout.SwitchMachineType;
|
||||||
|
centralizedStations?: string[];
|
||||||
}): Turnout {
|
}): Turnout {
|
||||||
const message = new Turnout({});
|
const message = new Turnout({});
|
||||||
if (data.common != null) {
|
if (data.common != null) {
|
||||||
@ -2117,6 +2174,9 @@ export namespace graphicData {
|
|||||||
if (data.switchMachineType != null) {
|
if (data.switchMachineType != null) {
|
||||||
message.switchMachineType = data.switchMachineType;
|
message.switchMachineType = data.switchMachineType;
|
||||||
}
|
}
|
||||||
|
if (data.centralizedStations != null) {
|
||||||
|
message.centralizedStations = data.centralizedStations;
|
||||||
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
@ -2135,6 +2195,7 @@ export namespace graphicData {
|
|||||||
pbTrackSectionId?: string;
|
pbTrackSectionId?: string;
|
||||||
pcTrackSectionId?: string;
|
pcTrackSectionId?: string;
|
||||||
switchMachineType?: Turnout.SwitchMachineType;
|
switchMachineType?: Turnout.SwitchMachineType;
|
||||||
|
centralizedStations?: string[];
|
||||||
} = {};
|
} = {};
|
||||||
if (this.common != null) {
|
if (this.common != null) {
|
||||||
data.common = this.common.toObject();
|
data.common = this.common.toObject();
|
||||||
@ -2178,6 +2239,9 @@ export namespace graphicData {
|
|||||||
if (this.switchMachineType != null) {
|
if (this.switchMachineType != null) {
|
||||||
data.switchMachineType = this.switchMachineType;
|
data.switchMachineType = this.switchMachineType;
|
||||||
}
|
}
|
||||||
|
if (this.centralizedStations != null) {
|
||||||
|
data.centralizedStations = this.centralizedStations;
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
serialize(): Uint8Array;
|
serialize(): Uint8Array;
|
||||||
@ -2212,6 +2276,8 @@ export namespace graphicData {
|
|||||||
writer.writeString(17, this.pcTrackSectionId);
|
writer.writeString(17, this.pcTrackSectionId);
|
||||||
if (this.switchMachineType != Turnout.SwitchMachineType.Unknown)
|
if (this.switchMachineType != Turnout.SwitchMachineType.Unknown)
|
||||||
writer.writeEnum(18, this.switchMachineType);
|
writer.writeEnum(18, this.switchMachineType);
|
||||||
|
if (this.centralizedStations.length)
|
||||||
|
writer.writeRepeatedString(19, this.centralizedStations);
|
||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
@ -2263,6 +2329,9 @@ export namespace graphicData {
|
|||||||
case 18:
|
case 18:
|
||||||
message.switchMachineType = reader.readEnum();
|
message.switchMachineType = reader.readEnum();
|
||||||
break;
|
break;
|
||||||
|
case 19:
|
||||||
|
pb_1.Message.addToRepeatedField(message, 19, reader.readString());
|
||||||
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2404,9 +2473,10 @@ export namespace graphicData {
|
|||||||
kilometerSystem?: KilometerSystem;
|
kilometerSystem?: KilometerSystem;
|
||||||
index?: number;
|
index?: number;
|
||||||
refDev?: RelatedRef;
|
refDev?: RelatedRef;
|
||||||
|
centralizedStations?: 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, [9], this.#one_of_decls);
|
||||||
if (!Array.isArray(data) && typeof data == "object") {
|
if (!Array.isArray(data) && typeof data == "object") {
|
||||||
if ("common" in data && data.common != undefined) {
|
if ("common" in data && data.common != undefined) {
|
||||||
this.common = data.common;
|
this.common = data.common;
|
||||||
@ -2426,6 +2496,9 @@ export namespace graphicData {
|
|||||||
if ("refDev" in data && data.refDev != undefined) {
|
if ("refDev" in data && data.refDev != undefined) {
|
||||||
this.refDev = data.refDev;
|
this.refDev = data.refDev;
|
||||||
}
|
}
|
||||||
|
if ("centralizedStations" in data && data.centralizedStations != undefined) {
|
||||||
|
this.centralizedStations = data.centralizedStations;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get common() {
|
get common() {
|
||||||
@ -2473,6 +2546,12 @@ export namespace graphicData {
|
|||||||
get has_refDev() {
|
get has_refDev() {
|
||||||
return pb_1.Message.getField(this, 8) != null;
|
return pb_1.Message.getField(this, 8) != null;
|
||||||
}
|
}
|
||||||
|
get centralizedStations() {
|
||||||
|
return pb_1.Message.getFieldWithDefault(this, 9, []) as string[];
|
||||||
|
}
|
||||||
|
set centralizedStations(value: string[]) {
|
||||||
|
pb_1.Message.setField(this, 9, value);
|
||||||
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
||||||
code?: string;
|
code?: string;
|
||||||
@ -2480,6 +2559,7 @@ export namespace graphicData {
|
|||||||
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
|
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
|
||||||
index?: number;
|
index?: number;
|
||||||
refDev?: ReturnType<typeof RelatedRef.prototype.toObject>;
|
refDev?: ReturnType<typeof RelatedRef.prototype.toObject>;
|
||||||
|
centralizedStations?: string[];
|
||||||
}): Signal {
|
}): Signal {
|
||||||
const message = new Signal({});
|
const message = new Signal({});
|
||||||
if (data.common != null) {
|
if (data.common != null) {
|
||||||
@ -2500,6 +2580,9 @@ export namespace graphicData {
|
|||||||
if (data.refDev != null) {
|
if (data.refDev != null) {
|
||||||
message.refDev = RelatedRef.fromObject(data.refDev);
|
message.refDev = RelatedRef.fromObject(data.refDev);
|
||||||
}
|
}
|
||||||
|
if (data.centralizedStations != null) {
|
||||||
|
message.centralizedStations = data.centralizedStations;
|
||||||
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
@ -2510,6 +2593,7 @@ export namespace graphicData {
|
|||||||
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
|
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
|
||||||
index?: number;
|
index?: number;
|
||||||
refDev?: ReturnType<typeof RelatedRef.prototype.toObject>;
|
refDev?: ReturnType<typeof RelatedRef.prototype.toObject>;
|
||||||
|
centralizedStations?: string[];
|
||||||
} = {};
|
} = {};
|
||||||
if (this.common != null) {
|
if (this.common != null) {
|
||||||
data.common = this.common.toObject();
|
data.common = this.common.toObject();
|
||||||
@ -2529,6 +2613,9 @@ export namespace graphicData {
|
|||||||
if (this.refDev != null) {
|
if (this.refDev != null) {
|
||||||
data.refDev = this.refDev.toObject();
|
data.refDev = this.refDev.toObject();
|
||||||
}
|
}
|
||||||
|
if (this.centralizedStations != null) {
|
||||||
|
data.centralizedStations = this.centralizedStations;
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
serialize(): Uint8Array;
|
serialize(): Uint8Array;
|
||||||
@ -2547,6 +2634,8 @@ export namespace graphicData {
|
|||||||
writer.writeInt32(7, this.index);
|
writer.writeInt32(7, this.index);
|
||||||
if (this.has_refDev)
|
if (this.has_refDev)
|
||||||
writer.writeMessage(8, this.refDev, () => this.refDev.serialize(writer));
|
writer.writeMessage(8, this.refDev, () => this.refDev.serialize(writer));
|
||||||
|
if (this.centralizedStations.length)
|
||||||
|
writer.writeRepeatedString(9, this.centralizedStations);
|
||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
@ -2574,6 +2663,9 @@ export namespace graphicData {
|
|||||||
case 8:
|
case 8:
|
||||||
reader.readMessage(message.refDev, () => message.refDev = RelatedRef.deserialize(reader));
|
reader.readMessage(message.refDev, () => message.refDev = RelatedRef.deserialize(reader));
|
||||||
break;
|
break;
|
||||||
|
case 9:
|
||||||
|
pb_1.Message.addToRepeatedField(message, 9, reader.readString());
|
||||||
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2600,9 +2692,10 @@ export namespace graphicData {
|
|||||||
trackSectionId?: string;
|
trackSectionId?: string;
|
||||||
isCurve?: boolean;
|
isCurve?: boolean;
|
||||||
segmentsCount?: number;
|
segmentsCount?: number;
|
||||||
|
centralizedStations?: string[];
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 7], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 7, 13], this.#one_of_decls);
|
||||||
if (!Array.isArray(data) && typeof data == "object") {
|
if (!Array.isArray(data) && typeof data == "object") {
|
||||||
if ("common" in data && data.common != undefined) {
|
if ("common" in data && data.common != undefined) {
|
||||||
this.common = data.common;
|
this.common = data.common;
|
||||||
@ -2637,6 +2730,9 @@ export namespace graphicData {
|
|||||||
if ("segmentsCount" in data && data.segmentsCount != undefined) {
|
if ("segmentsCount" in data && data.segmentsCount != undefined) {
|
||||||
this.segmentsCount = data.segmentsCount;
|
this.segmentsCount = data.segmentsCount;
|
||||||
}
|
}
|
||||||
|
if ("centralizedStations" in data && data.centralizedStations != undefined) {
|
||||||
|
this.centralizedStations = data.centralizedStations;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get common() {
|
get common() {
|
||||||
@ -2714,6 +2810,12 @@ export namespace graphicData {
|
|||||||
set segmentsCount(value: number) {
|
set segmentsCount(value: number) {
|
||||||
pb_1.Message.setField(this, 12, value);
|
pb_1.Message.setField(this, 12, value);
|
||||||
}
|
}
|
||||||
|
get centralizedStations() {
|
||||||
|
return pb_1.Message.getFieldWithDefault(this, 13, []) as string[];
|
||||||
|
}
|
||||||
|
set centralizedStations(value: string[]) {
|
||||||
|
pb_1.Message.setField(this, 13, value);
|
||||||
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
||||||
code?: string;
|
code?: string;
|
||||||
@ -2726,6 +2828,7 @@ export namespace graphicData {
|
|||||||
trackSectionId?: string;
|
trackSectionId?: string;
|
||||||
isCurve?: boolean;
|
isCurve?: boolean;
|
||||||
segmentsCount?: number;
|
segmentsCount?: number;
|
||||||
|
centralizedStations?: string[];
|
||||||
}): Section {
|
}): Section {
|
||||||
const message = new Section({});
|
const message = new Section({});
|
||||||
if (data.common != null) {
|
if (data.common != null) {
|
||||||
@ -2761,6 +2864,9 @@ export namespace graphicData {
|
|||||||
if (data.segmentsCount != null) {
|
if (data.segmentsCount != null) {
|
||||||
message.segmentsCount = data.segmentsCount;
|
message.segmentsCount = data.segmentsCount;
|
||||||
}
|
}
|
||||||
|
if (data.centralizedStations != null) {
|
||||||
|
message.centralizedStations = data.centralizedStations;
|
||||||
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
@ -2776,6 +2882,7 @@ export namespace graphicData {
|
|||||||
trackSectionId?: string;
|
trackSectionId?: string;
|
||||||
isCurve?: boolean;
|
isCurve?: boolean;
|
||||||
segmentsCount?: number;
|
segmentsCount?: number;
|
||||||
|
centralizedStations?: string[];
|
||||||
} = {};
|
} = {};
|
||||||
if (this.common != null) {
|
if (this.common != null) {
|
||||||
data.common = this.common.toObject();
|
data.common = this.common.toObject();
|
||||||
@ -2810,6 +2917,9 @@ export namespace graphicData {
|
|||||||
if (this.segmentsCount != null) {
|
if (this.segmentsCount != null) {
|
||||||
data.segmentsCount = this.segmentsCount;
|
data.segmentsCount = this.segmentsCount;
|
||||||
}
|
}
|
||||||
|
if (this.centralizedStations != null) {
|
||||||
|
data.centralizedStations = this.centralizedStations;
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
serialize(): Uint8Array;
|
serialize(): Uint8Array;
|
||||||
@ -2838,6 +2948,8 @@ export namespace graphicData {
|
|||||||
writer.writeBool(10, this.isCurve);
|
writer.writeBool(10, this.isCurve);
|
||||||
if (this.segmentsCount != 0)
|
if (this.segmentsCount != 0)
|
||||||
writer.writeInt32(12, this.segmentsCount);
|
writer.writeInt32(12, this.segmentsCount);
|
||||||
|
if (this.centralizedStations.length)
|
||||||
|
writer.writeRepeatedString(13, this.centralizedStations);
|
||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
@ -2880,6 +2992,9 @@ export namespace graphicData {
|
|||||||
case 12:
|
case 12:
|
||||||
message.segmentsCount = reader.readInt32();
|
message.segmentsCount = reader.readInt32();
|
||||||
break;
|
break;
|
||||||
|
case 13:
|
||||||
|
pb_1.Message.addToRepeatedField(message, 13, reader.readString());
|
||||||
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3240,9 +3355,10 @@ export namespace graphicData {
|
|||||||
index?: number;
|
index?: number;
|
||||||
kilometerSystem?: KilometerSystem;
|
kilometerSystem?: KilometerSystem;
|
||||||
TransponderRef?: RelatedRef;
|
TransponderRef?: RelatedRef;
|
||||||
|
centralizedStations?: 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, [7], this.#one_of_decls);
|
||||||
if (!Array.isArray(data) && typeof data == "object") {
|
if (!Array.isArray(data) && typeof data == "object") {
|
||||||
if ("common" in data && data.common != undefined) {
|
if ("common" in data && data.common != undefined) {
|
||||||
this.common = data.common;
|
this.common = data.common;
|
||||||
@ -3262,6 +3378,9 @@ export namespace graphicData {
|
|||||||
if ("TransponderRef" in data && data.TransponderRef != undefined) {
|
if ("TransponderRef" in data && data.TransponderRef != undefined) {
|
||||||
this.TransponderRef = data.TransponderRef;
|
this.TransponderRef = data.TransponderRef;
|
||||||
}
|
}
|
||||||
|
if ("centralizedStations" in data && data.centralizedStations != undefined) {
|
||||||
|
this.centralizedStations = data.centralizedStations;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get common() {
|
get common() {
|
||||||
@ -3309,6 +3428,12 @@ export namespace graphicData {
|
|||||||
get has_TransponderRef() {
|
get has_TransponderRef() {
|
||||||
return pb_1.Message.getField(this, 6) != null;
|
return pb_1.Message.getField(this, 6) != null;
|
||||||
}
|
}
|
||||||
|
get centralizedStations() {
|
||||||
|
return pb_1.Message.getFieldWithDefault(this, 7, []) as string[];
|
||||||
|
}
|
||||||
|
set centralizedStations(value: string[]) {
|
||||||
|
pb_1.Message.setField(this, 7, value);
|
||||||
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
common?: ReturnType<typeof CommonInfo.prototype.toObject>;
|
||||||
code?: string;
|
code?: string;
|
||||||
@ -3316,6 +3441,7 @@ export namespace graphicData {
|
|||||||
index?: number;
|
index?: number;
|
||||||
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
|
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
|
||||||
TransponderRef?: ReturnType<typeof RelatedRef.prototype.toObject>;
|
TransponderRef?: ReturnType<typeof RelatedRef.prototype.toObject>;
|
||||||
|
centralizedStations?: string[];
|
||||||
}): Transponder {
|
}): Transponder {
|
||||||
const message = new Transponder({});
|
const message = new Transponder({});
|
||||||
if (data.common != null) {
|
if (data.common != null) {
|
||||||
@ -3336,6 +3462,9 @@ export namespace graphicData {
|
|||||||
if (data.TransponderRef != null) {
|
if (data.TransponderRef != null) {
|
||||||
message.TransponderRef = RelatedRef.fromObject(data.TransponderRef);
|
message.TransponderRef = RelatedRef.fromObject(data.TransponderRef);
|
||||||
}
|
}
|
||||||
|
if (data.centralizedStations != null) {
|
||||||
|
message.centralizedStations = data.centralizedStations;
|
||||||
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
@ -3346,6 +3475,7 @@ export namespace graphicData {
|
|||||||
index?: number;
|
index?: number;
|
||||||
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
|
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
|
||||||
TransponderRef?: ReturnType<typeof RelatedRef.prototype.toObject>;
|
TransponderRef?: ReturnType<typeof RelatedRef.prototype.toObject>;
|
||||||
|
centralizedStations?: string[];
|
||||||
} = {};
|
} = {};
|
||||||
if (this.common != null) {
|
if (this.common != null) {
|
||||||
data.common = this.common.toObject();
|
data.common = this.common.toObject();
|
||||||
@ -3365,6 +3495,9 @@ export namespace graphicData {
|
|||||||
if (this.TransponderRef != null) {
|
if (this.TransponderRef != null) {
|
||||||
data.TransponderRef = this.TransponderRef.toObject();
|
data.TransponderRef = this.TransponderRef.toObject();
|
||||||
}
|
}
|
||||||
|
if (this.centralizedStations != null) {
|
||||||
|
data.centralizedStations = this.centralizedStations;
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
serialize(): Uint8Array;
|
serialize(): Uint8Array;
|
||||||
@ -3383,6 +3516,8 @@ export namespace graphicData {
|
|||||||
writer.writeMessage(5, this.kilometerSystem, () => this.kilometerSystem.serialize(writer));
|
writer.writeMessage(5, this.kilometerSystem, () => this.kilometerSystem.serialize(writer));
|
||||||
if (this.has_TransponderRef)
|
if (this.has_TransponderRef)
|
||||||
writer.writeMessage(6, this.TransponderRef, () => this.TransponderRef.serialize(writer));
|
writer.writeMessage(6, this.TransponderRef, () => this.TransponderRef.serialize(writer));
|
||||||
|
if (this.centralizedStations.length)
|
||||||
|
writer.writeRepeatedString(7, this.centralizedStations);
|
||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
@ -3410,6 +3545,9 @@ export namespace graphicData {
|
|||||||
case 6:
|
case 6:
|
||||||
reader.readMessage(message.TransponderRef, () => message.TransponderRef = RelatedRef.deserialize(reader));
|
reader.readMessage(message.TransponderRef, () => message.TransponderRef = RelatedRef.deserialize(reader));
|
||||||
break;
|
break;
|
||||||
|
case 7:
|
||||||
|
pb_1.Message.addToRepeatedField(message, 7, reader.readString());
|
||||||
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user