公里标系统放开填写

This commit is contained in:
fan 2023-10-19 10:36:00 +08:00
parent 10f25f4d18
commit 1dad042c62
11 changed files with 38 additions and 144 deletions

View File

@ -51,7 +51,6 @@ import DraggableDialog from 'src/components/common/DraggableDialog.vue';
import { QTable, useQuasar } from 'quasar';
import { errorNotify, successNotify } from 'src/utils/CommonNotify';
import {
CoordinateSystemOptions,
deleteKilometerConvert,
loadKilometerConvertList,
sameTrendOptions,
@ -160,15 +159,7 @@ function getSameTrendName(row: graphicData.KilometerConvert) {
}
function getKMName(km: KilometerSystem) {
let nameArr = [];
const findCoordinate = CoordinateSystemOptions.find((item) => {
return item.value == km.coordinateSystem;
});
if (findCoordinate) {
nameArr.push(findCoordinate.label);
}
nameArr.push(km.kilometer);
return nameArr.join('_');
return km.coordinateSystem + '_' + km.kilometer;
}
</script>

View File

@ -22,16 +22,13 @@
<q-list bordered separator class="rounded-borders">
<q-item no-wrap class="q-gutter-y-sm column">
<div>公里标配置</div>
<q-select
<q-input
outlined
style="margin-top: 10px"
v-model="axleCountingModel.kilometerSystem.coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
@update:model-value="onUpdate"
@blur="onUpdate"
label="坐标系"
></q-select>
></q-input>
<q-input
outlined
style="margin-top: 10px"
@ -138,12 +135,6 @@ const { data: axleCountingModel, onUpdate } = useFormData(
new AxleCountingData(),
drawStore.getDrawApp()
);
const CoordinateSystemOptions = [
{ label: '车辆段', value: 'DEPOT' },
{ label: '停车场', value: 'PARKING_LOT' },
{ label: '正线', value: 'MAIN_LINE' },
{ label: '换线', value: 'TRANSFER' },
];
const directionOptions = [
{ label: '左行', value: 0 },

View File

@ -10,12 +10,6 @@ const { data: kiloMarkerModel, onUpdate } = useFormData(
drawStore.getDrawApp()
);
const CoordinateSystemOptions = [
{ label: '车辆段', value: 'DEPOT' },
{ label: '停车场', value: 'PARKING_LOT' },
{ label: '正线', value: 'MAIN_LINE' },
{ label: '换线', value: 'TRANSFER' },
];
const directionOptions = [
{ label: '左行', value: 0 },
{ label: '右行', value: 1 },
@ -28,15 +22,12 @@ const directionOptions = [
<q-list bordered separator class="rounded-borders">
<q-item no-wrap class="q-gutter-y-sm column">
<div>公里标配置</div>
<q-select
<q-input
outlined
v-model="kiloMarkerModel.kilometerSystem[0].coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
@update:model-value="onUpdate"
@blur="onUpdate"
label="坐标系"
></q-select>
></q-input>
<q-input
outlined
v-model.number="kiloMarkerModel.kilometerSystem[0].kilometer"
@ -58,16 +49,13 @@ const directionOptions = [
<q-list bordered separator class="rounded-borders">
<q-item no-wrap class="q-gutter-y-sm column">
<div>公里标配置</div>
<q-select
<q-input
outlined
class="q-mt-lg"
v-model="kiloMarkerModel.kilometerSystem[1].coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
@update:model-value="onUpdate"
@blur="onUpdate"
label="坐标系"
></q-select>
></q-input>
<q-input
outlined
v-model.number="kiloMarkerModel.kilometerSystem[1].kilometer"

View File

@ -15,14 +15,11 @@
<div class="text-subtitle1">坐标A</div>
</q-card-section>
<q-item-section no-wrap class="q-gutter-y-sm column">
<q-select
<q-input
style="margin-top: 10px"
v-model="data.kmA.coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
label="坐标系"
></q-select>
></q-input>
<q-input
style="margin-top: 10px"
v-model.number="data.kmA.kilometer"
@ -36,14 +33,11 @@
<div class="text-subtitle1">坐标B</div>
</q-card-section>
<q-item-section no-wrap class="q-gutter-y-sm column">
<q-select
<q-input
style="margin-top: 10px"
v-model="data.kmB.coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
label="坐标系"
></q-select>
></q-input>
<q-input
style="margin-top: 10px"
v-model.number="data.kmB.kilometer"
@ -86,7 +80,6 @@ import {
creatKilometerConvert,
editKilometerConvert,
sameTrendOptions,
CoordinateSystemOptions,
loadKilometerConvertList,
} from 'src/drawApp/commonApp';
import { useDrawStore } from 'src/stores/draw-store';

View File

@ -18,16 +18,13 @@
<q-list bordered separator class="rounded-borders">
<q-item no-wrap class="q-gutter-y-sm column">
<div>公里标配置</div>
<q-select
<q-input
outlined
class="q-mt-sm"
v-model="signalModel.kilometerSystem.coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
@update:model-value="onUpdate"
@blur="onUpdate"
label="坐标系"
></q-select>
></q-input>
<q-select
outlined
class="q-mt-sm"
@ -136,12 +133,6 @@ const DevicePortOptions = [
{ label: 'B端', value: graphicData.RelatedRef.DevicePort.B },
{ label: 'C端', value: graphicData.RelatedRef.DevicePort.C },
];
const CoordinateSystemOptions = [
{ label: '车辆段', value: 'DEPOT' },
{ label: '停车场', value: 'PARKING_LOT' },
{ label: '正线', value: 'MAIN_LINE' },
{ label: '换线', value: 'TRANSFER' },
];
const directionOptions = [
{ label: '左行', value: 0 },
{ label: '右行', value: 1 },

View File

@ -10,12 +10,6 @@ const { data: kiloMarkerModel, onUpdate } = useFormData(
drawStore.getDrawApp()
);
const CoordinateSystemOptions = [
{ label: '车辆段', value: 'DEPOT' },
{ label: '停车场', value: 'PARKING_LOT' },
{ label: '正线', value: 'MAIN_LINE' },
{ label: '换线', value: 'TRANSFER' },
];
const directionOptions = [
{ label: '左行', value: 0 },
{ label: '右行', value: 1 },
@ -28,15 +22,12 @@ const directionOptions = [
<q-list bordered separator class="rounded-borders">
<q-item no-wrap class="q-gutter-y-sm column">
<div>公里标配置</div>
<QSelect
<q-input
outlined
v-model="kiloMarkerModel.kilometerSystem[0].coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
@update:model-value="onUpdate"
@blur="onUpdate"
label="坐标系"
></QSelect>
></q-input>
<QInput
outlined
v-model.number="kiloMarkerModel.kilometerSystem[0].kilometer"
@ -58,16 +49,13 @@ const directionOptions = [
<q-list bordered separator class="rounded-borders">
<q-item no-wrap class="q-gutter-y-sm column">
<div>公里标配置</div>
<QSelect
<q-input
outlined
class="q-mt-lg"
v-model="kiloMarkerModel.kilometerSystem[1].coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
@update:model-value="onUpdate"
@blur="onUpdate"
label="坐标系"
></QSelect>
></q-input>
<QInput
outlined
v-model.number="kiloMarkerModel.kilometerSystem[1].kilometer"

View File

@ -21,16 +21,13 @@
<q-item no-wrap class="q-gutter-y-sm column">
<template v-if="stationModel.kilometerSystem">
<div>公里标配置</div>
<q-select
<q-input
outlined
class="q-mt-md"
v-model="stationModel.kilometerSystem.coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
@update:model-value="onUpdate"
@blur="onUpdate"
label="坐标系"
></q-select>
></q-input>
<q-input
outlined
class="q-mt-md"
@ -98,13 +95,6 @@ const optionsControl = [
{ label: '否', value: false },
];
const CoordinateSystemOptions = [
{ label: '车辆段', value: 'DEPOT' },
{ label: '停车场', value: 'PARKING_LOT' },
{ label: '正线', value: 'MAIN_LINE' },
{ label: '换线', value: 'TRANSFER' },
];
const directionOptions = [
{ label: '左行', value: 0 },
{ label: '右行', value: 1 },

View File

@ -22,16 +22,13 @@
<q-item no-wrap class="q-gutter-y-sm column">
<template v-if="stopPositionModel.kilometerSystem">
<div>公里标配置</div>
<q-select
<q-input
outlined
class="q-mt-md"
v-model="stopPositionModel.kilometerSystem.coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
@update:model-value="onUpdate"
@blur="onUpdate"
label="坐标系"
></q-select>
></q-input>
<q-select
outlined
class="q-mt-md"
@ -81,12 +78,6 @@ const { data: stopPositionModel, onUpdate } = useFormData(
drawStore.getDrawApp()
);
const sectionList: { label: string; value: string }[] = reactive([]);
const CoordinateSystemOptions = [
{ label: '车辆段', value: 'DEPOT' },
{ label: '停车场', value: 'PARKING_LOT' },
{ label: '正线', value: 'MAIN_LINE' },
{ label: '换线', value: 'TRANSFER' },
];
const directionOptions = [
{ label: '左行', value: 0 },
{ label: '右行', value: 1 },

View File

@ -19,16 +19,13 @@
<q-item no-wrap class="q-gutter-y-sm column">
<template v-if="transponderModel.kilometerSystem">
<div>公里标配置</div>
<q-select
<q-input
outlined
class="q-mt-md"
v-model="transponderModel.kilometerSystem.coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
@update:model-value="onUpdate"
@blur="onUpdate"
label="坐标系"
></q-select>
></q-input>
<q-input
outlined
class="q-mt-md"
@ -129,13 +126,6 @@ const typeOptions = [
{ label: '预告应答器', value: transponderTypeEnum.IB },
];
const CoordinateSystemOptions = [
{ label: '车辆段', value: 'DEPOT' },
{ label: '停车场', value: 'PARKING_LOT' },
{ label: '正线', value: 'MAIN_LINE' },
{ label: '换线', value: 'TRANSFER' },
];
const directionOptions = [
{ label: '左行', value: 0 },
{ label: '右行', value: 1 },

View File

@ -18,16 +18,13 @@
<q-list bordered separator class="rounded-borders">
<q-item no-wrap class="q-gutter-y-sm column">
<div>公里标配置</div>
<q-select
<q-input
outlined
class="q-mt-sm"
v-model="turnoutModel.kilometerSystem[0].coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
@update:model-value="onUpdate"
@blur="onUpdate"
label="坐标系"
></q-select>
></q-input>
<q-input
outlined
class="q-mt-sm"
@ -51,16 +48,13 @@
<q-list bordered separator class="rounded-borders">
<q-item no-wrap class="q-gutter-y-sm column">
<div>公里标配置</div>
<q-select
<q-input
outlined
class="q-mt-sm"
v-model="turnoutModel.kilometerSystem[1].coordinateSystem"
:options="CoordinateSystemOptions"
:map-options="true"
:emit-value="true"
@update:model-value="onUpdate"
@blur="onUpdate"
label="坐标系"
></q-select>
></q-input>
<q-input
outlined
class="q-mt-sm"
@ -145,12 +139,6 @@ import { useFormData } from 'src/components/DrawAppFormUtils';
const drawStore = useDrawStore();
const $q = useQuasar();
const CoordinateSystemOptions = [
{ label: '车辆段', value: 'DEPOT' },
{ label: '停车场', value: 'PARKING_LOT' },
{ label: '正线', value: 'MAIN_LINE' },
{ label: '换线', value: 'TRANSFER' },
];
const { data: turnoutModel, onUpdate } = useFormData(
new TurnoutData(),

View File

@ -454,13 +454,6 @@ export const sameTrendOptions = [
{ label: '相反', value: false },
{ label: '相同', value: true },
];
// 公里标-坐标系
export const CoordinateSystemOptions = [
{ label: '车辆段', value: 'DEPOT' },
{ label: '停车场', value: 'PARKING_LOT' },
{ label: '正线', value: 'MAIN_LINE' },
{ label: '换线', value: 'TRANSFER' },
];
// 公里标-方向
export const directionOptions = [
{ label: '左行', value: 0 },