bx-1146-more_calc #44
|
@ -66,8 +66,8 @@ const changeParametres = () => {
|
||||||
const key_p = key as keyof typeof parametric
|
const key_p = key as keyof typeof parametric
|
||||||
const key_s = key as keyof typeof form_state
|
const key_s = key as keyof typeof form_state
|
||||||
if (parametric[key_p].max) {
|
if (parametric[key_p].max) {
|
||||||
if (form_state[key_s] > parametric[key_p].max) {
|
if ((form_state[key_s] as number) > parametric[key_p].max) {
|
||||||
form_state[key_s] = parametric[key_p].max
|
(form_state[key_s] as number) = parametric[key_p].max
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ const changeParametres = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (((full_sections * length) + (full_sections * fence_length) + fence_length) < total_length_mm) {
|
if (((full_sections * length) + (full_sections * fence_length) + fence_length) < total_length_mm) {
|
||||||
form_state.extra_section = Math.floor((total_length_mm - fence_length) % length)
|
form_state.extra_section = total_length_mm - ((full_sections * length) + (full_sections * fence_length) + fence_length + fence_length)
|
||||||
} else {
|
} else {
|
||||||
form_state.extra_section = 0
|
form_state.extra_section = 0
|
||||||
}
|
}
|
||||||
|
@ -140,7 +140,7 @@ const toggleModal = () => {
|
||||||
const goal = (target: string, params: object) => {
|
const goal = (target: string, params: object) => {
|
||||||
const nuxtApp = useNuxtApp()
|
const nuxtApp = useNuxtApp()
|
||||||
if (nuxtApp.$metrika) {
|
if (nuxtApp.$metrika) {
|
||||||
nuxtApp.$metrika.reachGoal(target, params || {})
|
(nuxtApp.$metrika as any).reachGoal(target, params || {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue