公里标
This commit is contained in:
parent
3fa8c54334
commit
ae04a6ada7
@ -31,7 +31,6 @@ const directionOptions = [
|
||||
label="id"
|
||||
hint=""
|
||||
/>
|
||||
<template v-if="kiloMarkerModel.kilometerSystem[0]">
|
||||
<q-select
|
||||
outlined
|
||||
v-model="kiloMarkerModel.kilometerSystem[0].coordinateSystem"
|
||||
@ -57,8 +56,6 @@ const directionOptions = [
|
||||
@update:model-value="onUpdate"
|
||||
label="方向"
|
||||
></q-select>
|
||||
</template>
|
||||
<template v-if="kiloMarkerModel.kilometerSystem[1]">
|
||||
<q-select
|
||||
outlined
|
||||
class="q-mt-lg"
|
||||
@ -85,7 +82,6 @@ const directionOptions = [
|
||||
@update:model-value="onUpdate"
|
||||
label="方向"
|
||||
></q-select>
|
||||
</template>
|
||||
</q-form>
|
||||
</template>
|
||||
|
||||
|
@ -25,7 +25,6 @@ const directionOptions = [
|
||||
<template>
|
||||
<QForm class="q-gutter-sm">
|
||||
<QInput outlined readonly v-model="kiloMarkerModel.id" label="id" hint="" />
|
||||
<template v-if="kiloMarkerModel.kilometerSystem[0]">
|
||||
<QSelect
|
||||
outlined
|
||||
v-model="kiloMarkerModel.kilometerSystem[0].coordinateSystem"
|
||||
@ -51,8 +50,6 @@ const directionOptions = [
|
||||
@update:model-value="onUpdate"
|
||||
label="方向"
|
||||
></QSelect>
|
||||
</template>
|
||||
<template v-if="kiloMarkerModel.kilometerSystem[1]">
|
||||
<QSelect
|
||||
outlined
|
||||
class="q-mt-lg"
|
||||
@ -79,7 +76,6 @@ const directionOptions = [
|
||||
@update:model-value="onUpdate"
|
||||
label="方向"
|
||||
></QSelect>
|
||||
</template>
|
||||
</QForm>
|
||||
</template>
|
||||
|
||||
|
@ -32,6 +32,11 @@ export class CurvatureKiloMarkerData
|
||||
this.data.code = v;
|
||||
}
|
||||
get kilometerSystem(): KilometerSystem[] {
|
||||
if (this.data.kilometerSystem.length < 2) {
|
||||
this.data.kilometerSystem = Array(2).map(
|
||||
() => new graphicData.KilometerSystem()
|
||||
);
|
||||
}
|
||||
return this.data.kilometerSystem;
|
||||
}
|
||||
set kilometerSystem(value: KilometerSystem[]) {
|
||||
|
@ -32,6 +32,11 @@ export class SlopeKiloMarkerData
|
||||
this.data.code = v;
|
||||
}
|
||||
get kilometerSystem(): KilometerSystem[] {
|
||||
if (this.data.kilometerSystem.length < 2) {
|
||||
this.data.kilometerSystem = Array(2).map(
|
||||
() => new graphicData.KilometerSystem()
|
||||
);
|
||||
}
|
||||
return this.data.kilometerSystem;
|
||||
}
|
||||
set kilometerSystem(value: KilometerSystem[]) {
|
||||
|
@ -232,8 +232,8 @@ export class TurnoutData extends GraphicDataBase implements ITurnoutData {
|
||||
}
|
||||
get kilometerSystem(): KilometerSystem[] {
|
||||
if (this.data.kilometerSystem.length < 2) {
|
||||
this.data.kilometerSystem = Array(2).fill(
|
||||
new graphicData.KilometerSystem()
|
||||
this.data.kilometerSystem = Array(2).map(
|
||||
() => new graphicData.KilometerSystem()
|
||||
);
|
||||
}
|
||||
return this.data.kilometerSystem;
|
||||
|
Loading…
Reference in New Issue
Block a user