公里标配置

This commit is contained in:
joylink_zhaoerwei 2023-12-21 16:39:54 +08:00
parent d41843a10a
commit 4ac1338b85
6 changed files with 108 additions and 96 deletions

View File

@ -50,7 +50,6 @@ const model = ref({
}); });
onMounted(() => { onMounted(() => {
console.log(props.garyPointIndexs, '===');
if (props.garyPointIndexs.length) { if (props.garyPointIndexs.length) {
model.value = { model.value = {
min: props.garyPointIndexs[0], min: props.garyPointIndexs[0],

View File

@ -1,12 +1,6 @@
<template> <template>
<q-form class="q-gutter-sm"> <q-form class="q-gutter-sm">
<q-input <q-input outlined readonly v-model="axleCountingModel.id" label="id" />
outlined
readonly
v-model="axleCountingModel.id"
label="id"
hint=""
/>
<q-input <q-input
outlined outlined
label="计轴名称" label="计轴名称"
@ -16,24 +10,29 @@
lazy-rules lazy-rules
autogrow autogrow
/> />
<q-select <q-list bordered separator class="rounded-borders">
outlined <q-item no-wrap class="q-gutter-y-sm column">
style="margin-top: 10px" <div>公里标配置</div>
v-model="axleCountingModel.kilometerSystem.coordinateSystem" <q-select
:options="CoordinateSystemOptions" outlined
:map-options="true" style="margin-top: 10px"
:emit-value="true" v-model="axleCountingModel.kilometerSystem.coordinateSystem"
@update:model-value="onUpdate" :options="CoordinateSystemOptions"
label="坐标系" :map-options="true"
></q-select> :emit-value="true"
<q-input @update:model-value="onUpdate"
outlined label="坐标系"
style="margin-top: 10px" ></q-select>
v-model.number="axleCountingModel.kilometerSystem.kilometer" <q-input
type="number" outlined
@blur="onUpdate" style="margin-top: 10px"
label="公里标(mm):" v-model.number="axleCountingModel.kilometerSystem.kilometer"
/> type="number"
@blur="onUpdate"
label="公里标(mm):"
/>
</q-item>
</q-list>
<q-list bordered separator class="rounded-borders"> <q-list bordered separator class="rounded-borders">
<q-item> <q-item>
<q-item-section no-wrap class="q-gutter-y-sm column"> <q-item-section no-wrap class="q-gutter-y-sm column">

View File

@ -33,22 +33,27 @@
@update:model-value="onUpdate" @update:model-value="onUpdate"
label="关联设备端口:" label="关联设备端口:"
></q-select> ></q-select>
<q-select <q-list bordered separator class="rounded-borders">
outlined <q-item no-wrap class="q-gutter-y-sm column">
v-model="signalModel.kilometerSystem.coordinateSystem" <div>公里标配置</div>
:options="CoordinateSystemOptions" <q-select
:map-options="true" outlined
:emit-value="true" v-model="signalModel.kilometerSystem.coordinateSystem"
@update:model-value="onUpdate" :options="CoordinateSystemOptions"
label="坐标系" :map-options="true"
></q-select> :emit-value="true"
<q-input @update:model-value="onUpdate"
outlined label="坐标系"
v-model.number="signalModel.kilometerSystem.kilometer" ></q-select>
type="number" <q-input
@blur="onUpdate" outlined
label="公里标(mm):" v-model.number="signalModel.kilometerSystem.kilometer"
/> type="number"
@blur="onUpdate"
label="公里标(mm):"
/>
</q-item>
</q-list>
<q-select <q-select
outlined outlined
v-model="signalModel.centralizedStation" v-model="signalModel.centralizedStation"
@ -78,7 +83,6 @@ const { data: signalModel, onUpdate } = useFormData(
); );
const refDevData = computed(() => { const refDevData = computed(() => {
console.log(signalModel, '====');
return signalModel.refDevice return signalModel.refDevice
? { ? {
...signalModel.refDevice.toObject(), ...signalModel.refDevice.toObject(),

View File

@ -19,24 +19,29 @@
lazy-rules lazy-rules
autogrow autogrow
/> />
<q-select <q-list bordered separator class="rounded-borders">
outlined <q-item no-wrap class="q-gutter-y-sm column">
style="margin-top: 10px" <div>公里标配置</div>
v-model="stationModel.kilometerSystem.coordinateSystem" <q-select
:options="CoordinateSystemOptions" outlined
:map-options="true" style="margin-top: 10px"
:emit-value="true" v-model="stationModel.kilometerSystem.coordinateSystem"
@update:model-value="onUpdate" :options="CoordinateSystemOptions"
label="坐标系" :map-options="true"
></q-select> :emit-value="true"
<q-input @update:model-value="onUpdate"
outlined label="坐标系"
style="margin-top: 10px" ></q-select>
v-model.number="stationModel.kilometerSystem.kilometer" <q-input
type="number" outlined
@blur="onUpdate" style="margin-top: 10px"
label="公里标(mm):" v-model.number="stationModel.kilometerSystem.kilometer"
/> type="number"
@blur="onUpdate"
label="公里标(mm):"
/>
</q-item>
</q-list>
<q-select <q-select
v-if="stationModel.concentrationStations" v-if="stationModel.concentrationStations"
outlined outlined

View File

@ -7,38 +7,46 @@
@blur="onUpdate" @blur="onUpdate"
label="编号" label="编号"
/> />
<q-select <q-list bordered separator class="rounded-borders">
outlined <q-item no-wrap class="q-gutter-y-sm column">
v-model="turnoutModel.kilometerSystem[0].coordinateSystem" <div>公里标配置</div>
:options="CoordinateSystemOptions" <q-select
:map-options="true" outlined
:emit-value="true" v-model="turnoutModel.kilometerSystem[0].coordinateSystem"
@update:model-value="onUpdate" :options="CoordinateSystemOptions"
label="坐标系" :map-options="true"
></q-select> :emit-value="true"
<q-input @update:model-value="onUpdate"
outlined label="坐标系"
v-model.number="turnoutModel.kilometerSystem[0].kilometer" ></q-select>
type="number" <q-input
@blur="onUpdate" outlined
label="公里标(mm):" v-model.number="turnoutModel.kilometerSystem[0].kilometer"
/> type="number"
<q-select @blur="onUpdate"
outlined label="公里标(mm):"
v-model="turnoutModel.kilometerSystem[1].coordinateSystem" />
:options="CoordinateSystemOptions" </q-item>
:map-options="true" <q-item no-wrap class="q-gutter-y-sm column">
:emit-value="true" <div>公里标配置</div>
@update:model-value="onUpdate" <q-select
label="坐标系2" outlined
></q-select> v-model="turnoutModel.kilometerSystem[1].coordinateSystem"
<q-input :options="CoordinateSystemOptions"
outlined :map-options="true"
v-model.number="turnoutModel.kilometerSystem[1].kilometer" :emit-value="true"
type="number" @update:model-value="onUpdate"
@blur="onUpdate" label="坐标系2"
label="公里标(mm):" ></q-select>
/> <q-input
outlined
v-model.number="turnoutModel.kilometerSystem[1].kilometer"
type="number"
@blur="onUpdate"
label="公里标(mm):"
/>
</q-item>
</q-list>
<q-field class="q-mt-lg" outlined label="关联区段" readonly stack-label> <q-field class="q-mt-lg" outlined label="关联区段" readonly stack-label>
<template #control> <template #control>
<q-chip <q-chip

View File

@ -110,9 +110,6 @@ enum statusTextColor {
A = '0xFF0000', // A报警 A = '0xFF0000', // A报警
} }
console.log(LogicSection);
console.trace(1);
const deviceTypeString = new Map(); const deviceTypeString = new Map();
deviceTypeString.set(state.DeviceType.TRACK, LogicSection.Type); deviceTypeString.set(state.DeviceType.TRACK, LogicSection.Type);
deviceTypeString.set(state.DeviceType.SWITCH_TRACK, Section.Type); deviceTypeString.set(state.DeviceType.SWITCH_TRACK, Section.Type);