fix
This commit is contained in:
parent
8113c7b45d
commit
c6c8b4bd82
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue