|
9 | 9 | <b-input-group>
|
10 | 10 | <b-form-input v-model.number.trim="filters.mag_min" placeholder="2.5" :state="modelState('mag_min')"
|
11 | 11 | @input.native="onFiltersChange($event, 'mag_min')" autocomplete="off"
|
12 |
| - :disabled="disabled" /> |
| 12 | + :disabled="disabled" name="mag_min" /> |
13 | 13 | </b-input-group>
|
14 | 14 | </b-col>
|
15 | 15 | <b-col class="text-center middle-col"><i class="fa fa-arrows-h" aria-hidden="true"></i></b-col>
|
16 | 16 | <b-col cols="5">
|
17 | 17 | <b-input-group>
|
18 | 18 | <b-form-input v-model.number.trim="filters.mag_max" placeholder="10.0" :state="modelState('mag_max')"
|
19 | 19 | @input.native="onFiltersChange($event, 'mag_max')" autocomplete="off"
|
20 |
| - :disabled="disabled"/> |
| 20 | + :disabled="disabled" name="mag_max"/> |
21 | 21 | </b-input-group>
|
22 | 22 | </b-col>
|
23 | 23 | </b-row>
|
|
33 | 33 | <b-input-group>
|
34 | 34 | <b-form-input v-model.number.trim="filters.lat_min" placeholder="51.1" :state="modelState('lat_min')"
|
35 | 35 | @input.native="onFiltersChange($event, 'lat_min')" autocomplete="off"
|
36 |
| - :disabled="disabled"/> |
| 36 | + :disabled="disabled" name="lat_min"/> |
37 | 37 | </b-input-group>
|
38 | 38 | </b-col>
|
39 | 39 | <b-col class="text-center middle-col"><i class="fa fa-arrows-h" aria-hidden="true"></i></b-col>
|
40 | 40 | <b-col cols="5">
|
41 | 41 | <b-input-group>
|
42 | 42 | <b-form-input v-model.number.trim="filters.lat_max" placeholder="70.1" :state="modelState('lat_max')"
|
43 | 43 | @input.native="onFiltersChange($event, 'lat_max')" autocomplete="off"
|
44 |
| - :disabled="disabled"/> |
| 44 | + :disabled="disabled" name="lat_max"/> |
45 | 45 | </b-input-group>
|
46 | 46 | </b-col>
|
47 | 47 | </b-row>
|
|
57 | 57 | <b-input-group>
|
58 | 58 | <b-form-input v-model.number.trim="filters.lon_min" placeholder="130.0" :state="modelState('lon_min')"
|
59 | 59 | @input.native="onFiltersChange($event, 'lon_min')" autocomplete="off"
|
60 |
| - :disabled="disabled"/> |
| 60 | + :disabled="disabled" name="lon_min"/> |
61 | 61 | </b-input-group>
|
62 | 62 | </b-col>
|
63 | 63 | <b-col class="text-center middle-col"><i class="fa fa-arrows-h" aria-hidden="true"></i></b-col>
|
64 | 64 | <b-col cols="5">
|
65 | 65 | <b-input-group>
|
66 | 66 | <b-form-input v-model.number.trim="filters.lon_max" placeholder="160.9" :state="modelState('lon_max')"
|
67 | 67 | @input.native="onFiltersChange($event, 'lon_max')" autocomplete="off"
|
68 |
| - :disabled="disabled"/> |
| 68 | + :disabled="disabled" name="lon_max"/> |
69 | 69 | </b-input-group>
|
70 | 70 | </b-col>
|
71 | 71 | </b-row>
|
|
81 | 81 | <b-input-group prepend="Минимум">
|
82 | 82 | <b-form-input v-model.number.trim="filters.sta_num_min" placeholder="1" :state="modelState('sta_num_min')"
|
83 | 83 | @input.native="onFiltersChange($event, 'sta_num_min')" autocomplete="off"
|
84 |
| - :disabled="disabled"/> |
| 84 | + :disabled="disabled" name="sta_num_min"/> |
85 | 85 | </b-input-group>
|
86 | 86 | </b-col>
|
87 | 87 | </b-row>
|
|
96 | 96 | <b-input-group>
|
97 | 97 | <b-form-input v-model.number.trim="filters.depth_min" placeholder="0" :state="modelState('depth_min')"
|
98 | 98 | @input.native="onFiltersChange($event, 'depth_min')" autocomplete="off"
|
99 |
| - :disabled="disabled"/> |
| 99 | + :disabled="disabled" name="depth_min"/> |
100 | 100 | </b-input-group>
|
101 | 101 | </b-col>
|
102 | 102 | <b-col class="text-center middle-col"><i class="fa fa-arrows-h" aria-hidden="true"></i></b-col>
|
103 | 103 | <b-col cols="5">
|
104 | 104 | <b-input-group>
|
105 | 105 | <b-form-input v-model.number.trim="filters.depth_max" placeholder="10" :state="modelState('depth_max')"
|
106 | 106 | @input.native="onFiltersChange($event, 'depth_max')" autocomplete="off"
|
107 |
| - :disabled="disabled"/> |
| 107 | + :disabled="disabled" name="depth_max"/> |
108 | 108 | </b-input-group>
|
109 | 109 | </b-col>
|
110 | 110 | </b-row>
|
|
130 | 130 | @input.native="onFiltersChange($event, 'datetime_min')"
|
131 | 131 | :state="modelState('datetime_min')"
|
132 | 132 | :disabled="disabled"
|
| 133 | + name="datetime_min" |
133 | 134 | />
|
134 | 135 | </b-input-group>
|
135 | 136 | </b-col>
|
|
146 | 147 | @input.native="onFiltersChange($event, 'datetime_max')"
|
147 | 148 | :state="modelState('datetime_max')"
|
148 | 149 | :disabled="disabled"
|
| 150 | + name="datetime_max" |
149 | 151 | />
|
150 | 152 | </b-input-group>
|
151 | 153 | </b-col>
|
|
160 | 162 | <b-row no-gutters class="filter-inputs" align-v="center">
|
161 | 163 | <b-col>
|
162 | 164 | <b-input-group prepend="Максимум">
|
163 |
| - <b-form-input v-model.number.trim="filters.rms_max" placeholder="0.9" :state="modelState('rms_max')" /> |
| 165 | + <b-form-input v-model.number.trim="filters.rms_max" placeholder="0.9" |
| 166 | + :state="modelState('rms_max')" name="rms_max" /> |
164 | 167 | </b-input-group>
|
165 | 168 | </b-col>
|
166 | 169 | </b-row>
|
|
171 | 174 | <b-col>
|
172 | 175 | <b-row no-gutters class="filter-inputs">
|
173 | 176 | <b-col>
|
174 |
| - <b-form-checkbox |
175 |
| - @change.native="onFiltersChange($event)" |
| 177 | + <b-form-checkbox name="has_mt" @change.native="onFiltersChange($event)" |
176 | 178 | v-model="filters.has_mt" :disabled="disabled">Только с тензором момента</b-form-checkbox>
|
177 | 179 | </b-col>
|
178 | 180 | </b-row>
|
|
366 | 368 | if (prop in this.filters) {
|
367 | 369 | this.errorMessages[prop] = `<p>${errorList.join('</p><p>')}</p>`
|
368 | 370 | } else {
|
369 |
| - otherErrors.push(`${prop}: ${errorList.join(', ')}`) |
| 371 | + otherErrors.push(`${prop}:\n\t${errorList.join(', ')}`) |
370 | 372 | }
|
371 | 373 |
|
372 | 374 | })
|
| 375 | +
|
| 376 | + if (otherErrors.length > 0) { |
| 377 | + window.alert(otherErrors.join('\n\n')) |
| 378 | + } |
373 | 379 | },
|
374 | 380 |
|
375 | 381 | filtersUpdated: function(delay = 500)
|
|
0 commit comments