Mercurial > gemma
annotate client/src/components/fairway/AvailableFairwayDepthDialogue.vue @ 3398:01f64ee0831f
removed console.log
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 23 May 2019 10:57:46 +0200 |
parents | 3675c60afd4f |
children | 7ea54c3b3fd6 |
rev | line source |
---|---|
3159
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1 <template> |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
2 <div |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
3 :class="[ |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
4 'box ui-element rounded bg-white text-nowrap', |
3231
2dab20bed284
show_statistics: refac to fairwayavailability
Thomas Junk <thomas.junk@intevation.de>
parents:
3214
diff
changeset
|
5 { expanded: showFairwayDepth } |
3159
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
6 ]" |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
7 > |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
8 <div style="width: 18rem"> |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
9 <UIBoxHeader icon="chart-line" :title="label" :closeCallback="close" /> |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
10 <div class="box-body"> |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
11 <UISpinnerOverlay v-if="loading" /> |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
12 <div class="mb-2 d-flex justify-content-between align-items-center"> |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
13 <div> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
14 <input :value="$options.BOTTLENECKS" type="radio" v-model="type" /> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
15 <small class="ml-1 text-muted"> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
16 <translate>Bottlenecks</translate> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
17 </small> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
18 </div> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
19 <div> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
20 <input :value="$options.STRETCHES" type="radio" v-model="type" /> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
21 <small class="ml-1 text-muted"> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
22 <translate>Stretches</translate> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
23 </small> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
24 </div> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
25 <div> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
26 <input :value="$options.SECTIONS" type="radio" v-model="type" /> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
27 <small class="ml-1 text-muted"> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
28 <translate>Sections</translate> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
29 </small> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
30 </div> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
31 </div> |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
32 <select |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
33 v-if="type === $options.BOTTLENECKS" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
34 @change="entrySelected" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
35 class="form-control font-weight-bold" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
36 v-model="selectedEntry" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
37 > |
3315
d61b88439c85
client: fairway availability: more appropriate property naming
Markus Kottlaender <markus@intevation.de>
parents:
3314
diff
changeset
|
38 <option :value="null">{{ placeholder }}</option> |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
39 <optgroup |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
40 v-for="(bottlenecksForCountry, cc) in orderedBottlenecks" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
41 :key="cc" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
42 :label="cc" |
3236
5914d615f703
available_fairway_depth: use the store luke
Thomas Junk <thomas.junk@intevation.de>
parents:
3233
diff
changeset
|
43 > |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
44 <option |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
45 v-for="bn in bottlenecksForCountry" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
46 :key="bn.properties.name" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
47 :value="bn" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
48 > |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
49 {{ bn.properties.name }} |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
50 </option> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
51 </optgroup> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
52 </select> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
53 <select |
3316
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
54 v-else-if="type === $options.STRETCHES" |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
55 @change="entrySelected" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
56 class="form-control font-weight-bold" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
57 v-model="selectedEntry" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
58 > |
3315
d61b88439c85
client: fairway availability: more appropriate property naming
Markus Kottlaender <markus@intevation.de>
parents:
3314
diff
changeset
|
59 <option :value="null">{{ placeholder }}</option> |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
60 <option |
3316
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
61 v-for="stretch in stretches" |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
62 :value="stretch" |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
63 :key="stretch.id" |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
64 > |
3316
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
65 {{ stretch.properties.name }} |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
66 </option> |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
67 </select> |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
68 <select |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
69 v-else-if="type === $options.SECTIONS" |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
70 @change="entrySelected" |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
71 class="form-control font-weight-bold" |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
72 v-model="selectedEntry" |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
73 > |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
74 <option :value="null">{{ placeholder }}</option> |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
75 <option |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
76 v-for="section in sections" |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
77 :value="section" |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
78 :key="section.id" |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
79 > |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
80 {{ section.properties.name }} |
c7b48272e11e
client: fairway availability: removed unnecessary computed property
Markus Kottlaender <markus@intevation.de>
parents:
3315
diff
changeset
|
81 </option> |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
82 </select> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
83 <div class="d-flex mt-2"> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
84 <div class="d-flex flex-column w-50 mr-1"> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
85 <small class="my-auto text-muted"> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
86 <translate>Type</translate> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
87 </small> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
88 <select |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
89 v-model="selectedFrequency" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
90 class="form-control form-control-sm" |
3236
5914d615f703
available_fairway_depth: use the store luke
Thomas Junk <thomas.junk@intevation.de>
parents:
3233
diff
changeset
|
91 > |
5914d615f703
available_fairway_depth: use the store luke
Thomas Junk <thomas.junk@intevation.de>
parents:
3233
diff
changeset
|
92 <option |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
93 v-for="(option, index) in $options.FREQUENCIES" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
94 :value="option" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
95 :key="index" |
3191
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
96 > |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
97 <translate>{{ option }}</translate> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
98 </option> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
99 </select> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
100 </div> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
101 <div class="d-flex flex-column w-50 ml-1"> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
102 <small class="my-auto text-muted"><translate>LOS</translate></small> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
103 <select v-model="los" class="form-control form-control-sm"> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
104 <option value="1">1</option> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
105 <option value="2">2</option> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
106 <option value="3">3</option> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
107 </select> |
3185
505414dfe3e7
available_fairway_depth: move statistic dialog to store
Thomas Junk <thomas.junk@intevation.de>
parents:
3184
diff
changeset
|
108 </div> |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
109 </div> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
110 <div class="d-flex mt-2"> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
111 <div class="d-flex flex-column w-50 mr-1"> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
112 <small for="from" class="my-auto text-muted"> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
113 <translate>Date from</translate> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
114 </small> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
115 <input |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
116 id="from" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
117 v-model="fromDate" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
118 class="form-control form-control-sm" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
119 type="date" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
120 /> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
121 </div> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
122 <div class="d-flex flex-column w-50 ml-1"> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
123 <small for="to" class="my-auto text-muted"> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
124 <translate>Date to</translate> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
125 </small> |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
126 <input |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
127 id="to" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
128 v-model="toDate" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
129 class="form-control form-control-sm" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
130 type="date" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
131 /> |
3185
505414dfe3e7
available_fairway_depth: move statistic dialog to store
Thomas Junk <thomas.junk@intevation.de>
parents:
3184
diff
changeset
|
132 </div> |
505414dfe3e7
available_fairway_depth: move statistic dialog to store
Thomas Junk <thomas.junk@intevation.de>
parents:
3184
diff
changeset
|
133 </div> |
3352
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
134 |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
135 <div class="d-flex mt-2"> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
136 <div class="d-flex flex-column w-50 mr-1"> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
137 <small for="from" class="my-auto text-muted"> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
138 <translate>Depthlimit 1 (in cm)</translate> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
139 </small> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
140 <input |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
141 :key="1" |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
142 id="depthlimit1" |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
143 v-model.number="depthLimit1" |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
144 class="form-control form-control-sm" |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
145 type="number" |
3354
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
146 min="0" |
3352
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
147 /> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
148 </div> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
149 <div class="d-flex flex-column w-50 ml-1"> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
150 <small for="to" class="my-auto text-muted"> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
151 <translate>Depthlimit 2 ( in cm)</translate> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
152 </small> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
153 <input |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
154 :key="2" |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
155 id="depthlimit2" |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
156 v-model.number="depthLimit2" |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
157 class="form-control form-control-sm" |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
158 type="number" |
3354
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
159 min="0" |
3352
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
160 /> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
161 </div> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
162 </div> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
163 <div class="d-flex mt-2"> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
164 <div class="d-flex flex-column w-50 mr-1"> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
165 <small for="from" class="my-auto text-muted"> |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
166 <translate>Widthlimit 1</translate> |
3352
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
167 </small> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
168 <input |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
169 :key="3" |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
170 id="widthLimit" |
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
171 v-model.number="widthLimit1" |
3352
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
172 class="form-control form-control-sm" |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
173 type="number" |
3354
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
174 min="0" |
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
175 /> |
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
176 </div> |
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
177 <div class="d-flex flex-column w-50 mr-1"> |
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
178 <small for="from" class="my-auto text-muted"> |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
179 <translate>Widthlimit 2</translate> |
3354
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
180 </small> |
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
181 <input |
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
182 :key="4" |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
183 id="widthLimit" |
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
184 v-model.number="widthLimit2" |
3354
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
185 class="form-control form-control-sm" |
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
186 type="number" |
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
187 min="0" |
3352
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
188 /> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
189 </div> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
190 </div> |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
191 |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
192 <div class="mt-3"> |
3173
1287b031424c
statistics: sprinkled fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3172
diff
changeset
|
193 <button |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
194 @click="openFairwaydepthDiagram" |
3315
d61b88439c85
client: fairway availability: more appropriate property naming
Markus Kottlaender <markus@intevation.de>
parents:
3314
diff
changeset
|
195 :disabled="!isComplete" |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
196 class="btn btn-info btn-sm d-block w-100" |
3173
1287b031424c
statistics: sprinkled fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3172
diff
changeset
|
197 > |
3296
fa7dc3f31ef3
available_fairwaydepth_vs_lnwl: POC etd.
Thomas Junk <thomas.junk@intevation.de>
parents:
3294
diff
changeset
|
198 <translate>Available fairway depth</translate> |
fa7dc3f31ef3
available_fairwaydepth_vs_lnwl: POC etd.
Thomas Junk <thomas.junk@intevation.de>
parents:
3294
diff
changeset
|
199 </button> |
fa7dc3f31ef3
available_fairwaydepth_vs_lnwl: POC etd.
Thomas Junk <thomas.junk@intevation.de>
parents:
3294
diff
changeset
|
200 <button |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
201 @click="openFairwaydepthLNWLDiagram" |
3315
d61b88439c85
client: fairway availability: more appropriate property naming
Markus Kottlaender <markus@intevation.de>
parents:
3314
diff
changeset
|
202 :disabled="!isComplete" |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
203 class="btn btn-info btn-sm d-block w-100 mt-2" |
3296
fa7dc3f31ef3
available_fairwaydepth_vs_lnwl: POC etd.
Thomas Junk <thomas.junk@intevation.de>
parents:
3294
diff
changeset
|
204 > |
fa7dc3f31ef3
available_fairwaydepth_vs_lnwl: POC etd.
Thomas Junk <thomas.junk@intevation.de>
parents:
3294
diff
changeset
|
205 <translate>Available fairway depth vs LNWL</translate> |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
206 </button> |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
207 </div> |
3159
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
208 </div> |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
209 </div> |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
210 </div> |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
211 </template> |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
212 |
3199
25a26f666ee8
statistics: layout
Thomas Junk <thomas.junk@intevation.de>
parents:
3198
diff
changeset
|
213 <style lang="scss" scoped> |
25a26f666ee8
statistics: layout
Thomas Junk <thomas.junk@intevation.de>
parents:
3198
diff
changeset
|
214 input, |
25a26f666ee8
statistics: layout
Thomas Junk <thomas.junk@intevation.de>
parents:
3198
diff
changeset
|
215 select { |
25a26f666ee8
statistics: layout
Thomas Junk <thomas.junk@intevation.de>
parents:
3198
diff
changeset
|
216 font-size: 0.8em; |
25a26f666ee8
statistics: layout
Thomas Junk <thomas.junk@intevation.de>
parents:
3198
diff
changeset
|
217 } |
25a26f666ee8
statistics: layout
Thomas Junk <thomas.junk@intevation.de>
parents:
3198
diff
changeset
|
218 </style> |
25a26f666ee8
statistics: layout
Thomas Junk <thomas.junk@intevation.de>
parents:
3198
diff
changeset
|
219 |
3159
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
220 <script> |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
221 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
222 * without warranty, see README.md and license for details. |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
223 * |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
224 * SPDX-License-Identifier: AGPL-3.0-or-later |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
225 * License-Filename: LICENSES/AGPL-3.0.txt |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
226 * |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
227 * Copyright (C) 2018 by via donau |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
228 * – Österreichische Wasserstraßen-Gesellschaft mbH |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
229 * Software engineering by Intevation GmbH |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
230 * |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
231 * Author(s): |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
232 * Markus Kottländer <markus.kottlaender@intevation.de> |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
233 * Thomas Junk <thomas.junk@intevation.de> |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
234 */ |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
235 |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
236 import app from "@/main"; |
3191
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
237 import { displayError } from "@/lib/errors"; |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
238 import { mapState, mapGetters } from "vuex"; |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
239 import { FREQUENCIES, LIMITINGFACTORS } from "@/store/fairwayavailability"; |
3159
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
240 |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
241 export default { |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
242 data() { |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
243 return { |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
244 loading: false |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
245 }; |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
246 }, |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
247 computed: { |
3231
2dab20bed284
show_statistics: refac to fairwayavailability
Thomas Junk <thomas.junk@intevation.de>
parents:
3214
diff
changeset
|
248 ...mapState("application", [ |
2dab20bed284
show_statistics: refac to fairwayavailability
Thomas Junk <thomas.junk@intevation.de>
parents:
3214
diff
changeset
|
249 "showFairwayDepth", |
2dab20bed284
show_statistics: refac to fairwayavailability
Thomas Junk <thomas.junk@intevation.de>
parents:
3214
diff
changeset
|
250 "paneSetup", |
2dab20bed284
show_statistics: refac to fairwayavailability
Thomas Junk <thomas.junk@intevation.de>
parents:
3214
diff
changeset
|
251 "showProfiles" |
2dab20bed284
show_statistics: refac to fairwayavailability
Thomas Junk <thomas.junk@intevation.de>
parents:
3214
diff
changeset
|
252 ]), |
3207
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
253 ...mapState("fairwayavailability", [ |
3191
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
254 "selectedFairwayAvailabilityFeature", |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
255 "from", |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
256 "to", |
3198
b0328646e34f
statistics: include los selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3191
diff
changeset
|
257 "frequency", |
3352
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
258 "LOS", |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
259 "depthlimit1", |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
260 "depthlimit2", |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
261 "widthlimit1", |
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
262 "widthlimit2" |
3191
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
263 ]), |
3309
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
264 ...mapState("imports", [ |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
265 "stretches", |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
266 "sections", |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
267 "selectedStretchId", |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
268 "selectedSectionId" |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
269 ]), |
3173
1287b031424c
statistics: sprinkled fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3172
diff
changeset
|
270 ...mapState("bottlenecks", ["bottlenecksList", "selectedBottleneck"]), |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
271 ...mapGetters("map", ["openLayersMap"]), |
3236
5914d615f703
available_fairway_depth: use the store luke
Thomas Junk <thomas.junk@intevation.de>
parents:
3233
diff
changeset
|
272 ...mapGetters("bottlenecks", ["orderedBottlenecks"]), |
3191
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
273 isComplete() { |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
274 return ( |
3315
d61b88439c85
client: fairway availability: more appropriate property naming
Markus Kottlaender <markus@intevation.de>
parents:
3314
diff
changeset
|
275 this.from !== null && |
d61b88439c85
client: fairway availability: more appropriate property naming
Markus Kottlaender <markus@intevation.de>
parents:
3314
diff
changeset
|
276 this.to !== null && |
d61b88439c85
client: fairway availability: more appropriate property naming
Markus Kottlaender <markus@intevation.de>
parents:
3314
diff
changeset
|
277 this.frequency !== null && |
d61b88439c85
client: fairway availability: more appropriate property naming
Markus Kottlaender <markus@intevation.de>
parents:
3314
diff
changeset
|
278 this.los !== null && |
d61b88439c85
client: fairway availability: more appropriate property naming
Markus Kottlaender <markus@intevation.de>
parents:
3314
diff
changeset
|
279 this.selectedFairwayAvailabilityFeature !== null |
3191
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
280 ); |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
281 }, |
3205
bf571429515f
client: fairway availability: moved component's type property to store to manipulate it from outside
Markus Kottlaender <markus@intevation.de>
parents:
3199
diff
changeset
|
282 type: { |
bf571429515f
client: fairway availability: moved component's type property to store to manipulate it from outside
Markus Kottlaender <markus@intevation.de>
parents:
3199
diff
changeset
|
283 get() { |
3207
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
284 return this.$store.state.fairwayavailability.type; |
3205
bf571429515f
client: fairway availability: moved component's type property to store to manipulate it from outside
Markus Kottlaender <markus@intevation.de>
parents:
3199
diff
changeset
|
285 }, |
bf571429515f
client: fairway availability: moved component's type property to store to manipulate it from outside
Markus Kottlaender <markus@intevation.de>
parents:
3199
diff
changeset
|
286 set(type) { |
3207
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
287 this.$store.commit("fairwayavailability/type", type); |
3205
bf571429515f
client: fairway availability: moved component's type property to store to manipulate it from outside
Markus Kottlaender <markus@intevation.de>
parents:
3199
diff
changeset
|
288 } |
bf571429515f
client: fairway availability: moved component's type property to store to manipulate it from outside
Markus Kottlaender <markus@intevation.de>
parents:
3199
diff
changeset
|
289 }, |
3198
b0328646e34f
statistics: include los selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3191
diff
changeset
|
290 los: { |
b0328646e34f
statistics: include los selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3191
diff
changeset
|
291 get() { |
b0328646e34f
statistics: include los selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3191
diff
changeset
|
292 return this.LOS; |
b0328646e34f
statistics: include los selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3191
diff
changeset
|
293 }, |
b0328646e34f
statistics: include los selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3191
diff
changeset
|
294 set(value) { |
3207
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
295 this.$store.commit("fairwayavailability/setLOS", value); |
3198
b0328646e34f
statistics: include los selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3191
diff
changeset
|
296 } |
b0328646e34f
statistics: include los selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3191
diff
changeset
|
297 }, |
3191
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
298 fromDate: { |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
299 get() { |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
300 return this.from; |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
301 }, |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
302 set(value) { |
3207
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
303 this.$store.commit("fairwayavailability/setFrom", value); |
3191
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
304 } |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
305 }, |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
306 toDate: { |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
307 get() { |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
308 return this.to; |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
309 }, |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
310 set(value) { |
3207
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
311 this.$store.commit("fairwayavailability/setTo", value); |
3191
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
312 } |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
313 }, |
3352
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
314 depthLimit1: { |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
315 get() { |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
316 return this.depthlimit1; |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
317 }, |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
318 set(value) { |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
319 this.$store.commit("fairwayavailability/setDepthlimit1", value); |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
320 } |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
321 }, |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
322 depthLimit2: { |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
323 get() { |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
324 return this.depthlimit2; |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
325 }, |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
326 set(value) { |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
327 this.$store.commit("fairwayavailability/setDepthlimit2", value); |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
328 } |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
329 }, |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
330 widthLimit1: { |
3352
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
331 get() { |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
332 return this.widthlimit1; |
3352
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
333 }, |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
334 set(value) { |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
335 this.$store.commit("fairwayavailability/setWidthlimit1", value); |
3354
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
336 } |
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
337 }, |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
338 widthLimit2: { |
3354
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
339 get() { |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
340 return this.widthlimit2; |
3354
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
341 }, |
e12e8bf044a6
available_fairway_dialogue: added 2nd breadthelement
Thomas Junk <thomas.junk@intevation.de>
parents:
3352
diff
changeset
|
342 set(value) { |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
343 this.$store.commit("fairwayavailability/setWidthlimit2", value); |
3352
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
344 } |
399a2eb496ee
available_fairway_depth_dialogue: adding limit fields. without transmission
Thomas Junk <thomas.junk@intevation.de>
parents:
3325
diff
changeset
|
345 }, |
3191
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
346 selectedFrequency: { |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
347 get() { |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
348 return this.frequency; |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
349 }, |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
350 set(value) { |
3207
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
351 this.$store.commit("fairwayavailability/setFrequency", value); |
3191
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
352 } |
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
353 }, |
3183
f64cc98746a1
statistics: put selected feature in fairwaystore
Thomas Junk <thomas.junk@intevation.de>
parents:
3178
diff
changeset
|
354 selectedEntry: { |
f64cc98746a1
statistics: put selected feature in fairwaystore
Thomas Junk <thomas.junk@intevation.de>
parents:
3178
diff
changeset
|
355 get() { |
f64cc98746a1
statistics: put selected feature in fairwaystore
Thomas Junk <thomas.junk@intevation.de>
parents:
3178
diff
changeset
|
356 return this.selectedFairwayAvailabilityFeature; |
f64cc98746a1
statistics: put selected feature in fairwaystore
Thomas Junk <thomas.junk@intevation.de>
parents:
3178
diff
changeset
|
357 }, |
f64cc98746a1
statistics: put selected feature in fairwaystore
Thomas Junk <thomas.junk@intevation.de>
parents:
3178
diff
changeset
|
358 set(feature) { |
3207
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
359 this.$store.commit( |
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
360 "fairwayavailability/setSelectedFairwayAvailability", |
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
361 feature |
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
362 ); |
3183
f64cc98746a1
statistics: put selected feature in fairwaystore
Thomas Junk <thomas.junk@intevation.de>
parents:
3178
diff
changeset
|
363 } |
f64cc98746a1
statistics: put selected feature in fairwaystore
Thomas Junk <thomas.junk@intevation.de>
parents:
3178
diff
changeset
|
364 }, |
3159
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
365 label() { |
3294
5f0c6e931e7f
Available_fairway_depth: label
Thomas Junk <thomas.junk@intevation.de>
parents:
3272
diff
changeset
|
366 return this.$gettext("Available fairway depth"); |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
367 }, |
3315
d61b88439c85
client: fairway availability: more appropriate property naming
Markus Kottlaender <markus@intevation.de>
parents:
3314
diff
changeset
|
368 placeholder() { |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
369 if (this.type === this.$options.BOTTLENECKS) |
3173
1287b031424c
statistics: sprinkled fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3172
diff
changeset
|
370 return this.$gettext("Select bottleneck"); |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
371 if (this.type === this.$options.STRETCHES) |
3238
94e966ebef35
available_fairway_depth: fix typo
Thomas Junk <thomas.junk@intevation.de>
parents:
3237
diff
changeset
|
372 return this.$gettext("Select stretch"); |
3173
1287b031424c
statistics: sprinkled fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3172
diff
changeset
|
373 return this.$gettext("Select section"); |
3159
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
374 } |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
375 }, |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
376 watch: { |
3173
1287b031424c
statistics: sprinkled fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3172
diff
changeset
|
377 selectedBottleneck() { |
3174
aeb9d6fc640a
statistics: sprinkled more fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3173
diff
changeset
|
378 this.type = this.$options.BOTTLENECKS; |
3173
1287b031424c
statistics: sprinkled fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3172
diff
changeset
|
379 this.setSelectedBottleneck(); |
1287b031424c
statistics: sprinkled fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3172
diff
changeset
|
380 }, |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
381 selectedStretchId() { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
382 this.type = this.$options.STRETCHES; |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
383 this.setSelectedStretch(); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
384 }, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
385 selectedSectionId() { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
386 this.type = this.$options.SECTIONS; |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
387 this.setSelectedSection(); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
388 }, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
389 type(type) { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
390 if (type === this.$options.BOTTLENECKS && this.selectedBottleneck) { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
391 this.openLayersMap() |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
392 .getLayer("BOTTLENECKS") |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
393 .setVisible(true); |
3173
1287b031424c
statistics: sprinkled fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3172
diff
changeset
|
394 this.setSelectedBottleneck(); |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
395 } else if (type === this.$options.STRETCHES && this.selectedStretchId) { |
3309
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
396 this.openLayersMap() |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
397 .getLayer("STRETCHES") |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
398 .setVisible(true); |
3272
a9d047ccf408
client: fairway availability: set stretch in dialog when selecting stretch from map/list
Markus Kottlaender <markus@intevation.de>
parents:
3238
diff
changeset
|
399 this.setSelectedStretch(); |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
400 } else if (type === this.$options.SECTIONS && this.selectedSectionId) { |
3309
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
401 this.openLayersMap() |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
402 .getLayer("SECTIONS") |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
403 .setVisible(true); |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
404 this.setSelectedSection(); |
3173
1287b031424c
statistics: sprinkled fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3172
diff
changeset
|
405 } else { |
3207
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
406 this.$store.commit( |
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
407 "fairwayavailability/setSelectedFairwayAvailability", |
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
408 null |
ba7bc3740fb3
client: renamed store modules to better reflect their context
Markus Kottlaender <markus@intevation.de>
parents:
3205
diff
changeset
|
409 ); |
3173
1287b031424c
statistics: sprinkled fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3172
diff
changeset
|
410 } |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
411 }, |
3237
86e108358216
available_fairway_depth: bug fix for loading bottlenecks and stretches
Thomas Junk <thomas.junk@intevation.de>
parents:
3236
diff
changeset
|
412 showFairwayDepth() { |
86e108358216
available_fairway_depth: bug fix for loading bottlenecks and stretches
Thomas Junk <thomas.junk@intevation.de>
parents:
3236
diff
changeset
|
413 if (this.showFairwayDepth) { |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
414 this.loading = true; |
3309
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
415 Promise.all([ |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
416 this.$store.dispatch("bottlenecks/loadBottlenecksList"), |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
417 this.$store.dispatch("imports/loadStretches"), |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
418 this.$store.dispatch("imports/loadSections") |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
419 ]) |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
420 .then(() => { |
3173
1287b031424c
statistics: sprinkled fairy dust on to bottleneck selection
Thomas Junk <thomas.junk@intevation.de>
parents:
3172
diff
changeset
|
421 if (this.selectedBottleneck) this.setSelectedBottleneck(); |
3309
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
422 }) |
80037790032d
client: fully implemented sections
Markus Kottlaender <markus@intevation.de>
parents:
3296
diff
changeset
|
423 .finally(() => (this.loading = false)); |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
424 } |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
425 } |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
426 }, |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
427 methods: { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
428 openFairwaydepthLNWLDiagram() { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
429 this.loading = true; |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
430 this.$store |
3368
70605404f37d
fa_lnwl: prototypical diagram added
Thomas Junk <thomas.junk@intevation.de>
parents:
3354
diff
changeset
|
431 .dispatch("fairwayavailability/loadAvailableFairwayDepthLNWLDiagram", { |
3314
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
432 feature: this.selectedFairwayAvailabilityFeature, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
433 from: this.from, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
434 to: this.to, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
435 frequency: this.frequency, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
436 LOS: this.los |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
437 }) |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
438 .then(() => { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
439 this.$store.commit( |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
440 "application/paneSetup", |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
441 "AVAILABLEFAIRWAYDEPTHLNWL" |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
442 ); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
443 }) |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
444 .catch(error => { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
445 const { status, data } = error.response; |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
446 displayError({ |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
447 title: this.$gettext("Backend Error"), |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
448 message: `${status}: ${data.message || data}` |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
449 }); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
450 }) |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
451 .finally(() => { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
452 this.loading = false; |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
453 }); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
454 }, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
455 openFairwaydepthDiagram() { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
456 this.loading = true; |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
457 this.$store |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
458 .dispatch("fairwayavailability/loadAvailableFairwayDepth", { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
459 feature: this.selectedFairwayAvailabilityFeature, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
460 from: this.from, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
461 to: this.to, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
462 frequency: this.frequency, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
463 LOS: this.los |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
464 }) |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
465 .then(() => { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
466 this.$store.commit("application/paneSetup", "AVAILABLEFAIRWAYDEPTH"); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
467 }) |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
468 .catch(error => { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
469 console.log(error); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
470 const { status, data } = error.response; |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
471 displayError({ |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
472 title: this.$gettext("Backend Error"), |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
473 message: `${status}: ${data.message || data}` |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
474 }); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
475 }) |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
476 .finally(() => { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
477 this.loading = false; |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
478 }); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
479 }, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
480 close() { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
481 this.$store.commit("application/showFairwayDepth", false); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
482 this.$store.commit("application/showFairwayDepthLNWL", false); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
483 }, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
484 entrySelected() { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
485 if (this.type === this.$options.BOTTLENECKS) { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
486 this.openLayersMap() |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
487 .getLayer("BOTTLENECKS") |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
488 .setVisible(true); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
489 if (this.showProfiles) { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
490 this.$store.dispatch( |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
491 "bottlenecks/setSelectedBottleneck", |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
492 this.selectedFairwayAvailabilityFeature.properties.name |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
493 ); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
494 } |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
495 } |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
496 if (this.type === this.$options.STRETCHES) { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
497 this.openLayersMap() |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
498 .getLayer("STRETCHES") |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
499 .setVisible(true); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
500 } |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
501 if (this.type === this.$options.SECTIONS) { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
502 this.openLayersMap() |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
503 .getLayer("SECTIONS") |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
504 .setVisible(true); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
505 } |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
506 if (this.selectedFairwayAvailabilityFeature) { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
507 this.$store.dispatch("map/moveToFeauture", { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
508 feature: this.selectedFairwayAvailabilityFeature, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
509 zoom: 17, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
510 preventZoomOut: true |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
511 }); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
512 } |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
513 }, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
514 setSelectedBottleneck() { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
515 const bn = this.bottlenecksList.filter( |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
516 x => x.properties.name === this.selectedBottleneck |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
517 )[0]; |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
518 this.$store.commit( |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
519 "fairwayavailability/setSelectedFairwayAvailability", |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
520 bn |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
521 ); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
522 }, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
523 setSelectedStretch() { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
524 const stretch = this.stretches.find(x => x.id === this.selectedStretchId); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
525 this.$store.commit( |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
526 "fairwayavailability/setSelectedFairwayAvailability", |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
527 stretch |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
528 ); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
529 }, |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
530 setSelectedSection() { |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
531 const section = this.sections.find(x => x.id === this.selectedSectionId); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
532 this.$store.commit( |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
533 "fairwayavailability/setSelectedFairwayAvailability", |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
534 section |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
535 ); |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
536 } |
70676557a66f
client: available fairway depth: cleanup component a bit
Markus Kottlaender <markus@intevation.de>
parents:
3309
diff
changeset
|
537 }, |
3172
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
538 BOTTLENECKS: "bottlenecks", |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
539 SECTIONS: "sections", |
975efa874acf
statistic: choice between bottlenecks and stretches implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
3159
diff
changeset
|
540 STRETCHES: "stretches", |
3191
c0cd5dfec153
statistics: persist fields to vuex
Thomas Junk <thomas.junk@intevation.de>
parents:
3185
diff
changeset
|
541 AVAILABLEFAIRWAYDEPTH: app.$gettext("Available Fairway Depth"), |
3397
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
542 FREQUENCIES: FREQUENCIES, |
3675c60afd4f
afd: breadth->width
Thomas Junk <thomas.junk@intevation.de>
parents:
3368
diff
changeset
|
543 LIMITINGFACTORS: LIMITINGFACTORS |
3159
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
544 }; |
4f4905b57fcf
toolbar: added statistics dialog component
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
545 </script> |