modal
This commit is contained in:
commit
ed6b4d8d6e
|
@ -62,7 +62,9 @@ const changeParametres = () => {
|
|||
form_state.total_length_mm = form_state.total_length * 1000
|
||||
if (auto_section_width.value) {
|
||||
let w = parametric.length.max
|
||||
while (((form_state.total_length_mm % w) > 0) && w > (parametric.length.min + parametric.length.step * 10)) {
|
||||
let tw_f = (form_state.total_length_mm - form_state.fence_length)
|
||||
let iw_f = (w - form_state.fence_length)
|
||||
while ((tw_f % iw_f) && w > (parametric.length.min + parametric.length.step * 10)) {
|
||||
w -= parametric.length.step
|
||||
}
|
||||
form_state.length = w
|
||||
|
@ -104,7 +106,11 @@ const setPillarColor = (color: ralTypes) => {
|
|||
pillar_color.value = color
|
||||
}
|
||||
const autoSectionWidth = () => {
|
||||
const v = auto_section_width.value
|
||||
auto_section_width.value = !auto_section_width.value
|
||||
if (!v == true) {
|
||||
changeParametres()
|
||||
}
|
||||
}
|
||||
|
||||
const predefLamelleColors = ['3009', '9003', '6027', '5024', '9001', '1012', '3007', '4007']
|
||||
|
@ -175,22 +181,24 @@ const plurals = {
|
|||
<div class="form-row">
|
||||
<div class="col-span-8 prose">
|
||||
<p>
|
||||
Забор общей длиной {{ form_state.total_length }}{{'\xa0'}}м,
|
||||
Забор общей длиной {{ form_state.total_length }}{{ '\xa0' }}м,
|
||||
{{ section_count }}
|
||||
<Plural :n="section_count" :forms="plurals.section" /> по
|
||||
{{ form_state.length }}{{'\xa0'}}мм<span class="contents" v-if="form_state.extra_section">
|
||||
и 1 дополнительная секция длиной {{ form_state.extra_section }}{{'\xa0'}}мм</span>.
|
||||
{{ form_state.length }}{{ '\xa0' }}мм<span class="contents" v-if="form_state.extra_section">
|
||||
и 1 дополнительная секция длиной {{ form_state.extra_section }}{{ '\xa0' }}мм</span>.
|
||||
</p>
|
||||
<p>
|
||||
Всего {{ section_count + ~~(!!form_state.extra_section) + 1 }}
|
||||
<Plural :forms="plurals.fence" :n="section_count + ~~(!!form_state.extra_section) + 1" />,
|
||||
{{ section_count * lamelles_count }}
|
||||
<Plural :n="section_count * lamelles_count" :forms="plurals.lamelle" />
|
||||
длиной {{ form_state.length }}{{'\xa0'}}мм
|
||||
длиной {{ form_state.length }}{{ '\xa0' }}мм
|
||||
<span class="contents" v-if="form_state.extra_section">
|
||||
и {{ ~~(!!form_state.extra_section) * lamelles_count }}
|
||||
<Plural :n="~~(!!form_state.extra_section) * lamelles_count" :forms="plurals.lamelle" /> длиной {{
|
||||
form_state.extra_section }}{{'\xa0'}}мм</span>.
|
||||
<Plural :n="~~(!!form_state.extra_section) * lamelles_count" :forms="plurals.lamelle" />
|
||||
длиной {{
|
||||
form_state.extra_section }}{{ '\xa0' }}мм
|
||||
</span>.
|
||||
</p>
|
||||
<p>
|
||||
Все элементы окрашиваются порошковым методом: <br />
|
||||
|
|
|
@ -110,13 +110,16 @@ const submit = (e: any) => {
|
|||
<div>
|
||||
Длина секции: {{ fence_section * 1000 }}
|
||||
</div>
|
||||
<div>
|
||||
Секций: {{ section_count }}
|
||||
</div>
|
||||
<div>
|
||||
общая длина: {{ total_length }}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
Секций: {{ section_count }}
|
||||
</div>
|
||||
<div>
|
||||
Секций: {{ total_length }}
|
||||
</div>
|
||||
<div>
|
||||
Цвет столба: {{ getColorNameFromRal(pillar_color) }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue