This commit is contained in:
Kseninia Mikhaylova 2024-07-24 10:10:51 +03:00
parent 8113c7b45d
commit c6c8b4bd82
1 changed files with 3 additions and 6 deletions

View File

@ -67,9 +67,6 @@ const changeParametres = () => {
}
}
if (!form_state.auto_length && (form_state.length > form_state.total_length_mm)) {
form_state.length = form_state.total_length_mm
}
form_state.total_length_mm = form_state.total_length * 1000
let { fence_length, total_length_mm, auto_length, length, full_sections } = form_state
@ -107,8 +104,8 @@ const changeParametres = () => {
}
form_state.full_sections = full_sections
form_state.length = length
form_state.fence_length = fence_length
form_state.length = typeof length == 'string' ? parseFloat(length) : length
form_state.fence_length = typeof fence_length == 'string' ? parseFloat(fence_length) : fence_length
copy_form_state = Object.assign({}, form_state)
@ -159,7 +156,7 @@ const goal = (target: string, params: object) => {
</div>
<div class="form-item w-full">
<label for="height">Высота забора, мм</label>
<input disabled :value="`${form_state.height.toFixed(0)} мм`" class="w-28" />
<input disabled :value="`${form_state.height} мм`" class="w-28" />
<input id="height" type="range" class="xl:w-full" v-bind="parametric.height"
v-model="form_state.height" :ref="form_refs.height" />
</div>