diff --git a/components/calcValues.vue b/components/calcValues.vue
index 24612e6..6b4bc8b 100644
--- a/components/calcValues.vue
+++ b/components/calcValues.vue
@@ -50,6 +50,9 @@ const form_refs = {
}
const changeParametres = () => {
+ if(form_state.total_length * 1000 < parametric.length.min) {
+ return
+ }
const lamelles = Math.floor(form_state.height / parametric.height.step)
for (const key in form_state) {
@@ -99,12 +102,6 @@ const changeParametres = () => {
if (form_state.extra_section && form_state.extra_section < parametric.length.min) {
form_refs.total_length.value.setCustomValidity('Расчет невозможен')
}
- setTimeout(() => {
- if (form_state.total_length < parametric.total_length.min) {
- form_state.total_length = parametric.total_length.min
- form_state.length = parametric.length.min
- }
- }, 600)
total_length.value = form_state.total_length
lamelles_count.value = lamelles
@@ -200,9 +197,10 @@ const plurals = {
{{ section_count }}
+
Всего
{{ section_count + ~~(!!form_state.extra_section) + 1 }}