Mercurial > gemma
annotate client/src/components/importconfiguration/ImportDetails.vue @ 2978:d6dd158b8071 unified_import
unified_import: reorganizing files
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 09 Apr 2019 13:42:44 +0200 |
parents | ab26fb7a76f6 |
children | 8f266dc8b4e3 |
rev | line source |
---|---|
2972
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1 <template> |
2978
d6dd158b8071
unified_import: reorganizing files
Thomas Junk <thomas.junk@intevation.de>
parents:
2977
diff
changeset
|
2 <div class="mt-3 mb-3 mr-3 ml-3 text-left"> |
2977
ab26fb7a76f6
unified_imports: soundingresults moved to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2975
diff
changeset
|
3 <small class="text-muted"> |
2978
d6dd158b8071
unified_import: reorganizing files
Thomas Junk <thomas.junk@intevation.de>
parents:
2977
diff
changeset
|
4 <translate>Import type</translate> |
2977
ab26fb7a76f6
unified_imports: soundingresults moved to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2975
diff
changeset
|
5 </small> |
2974
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
6 <select v-model="Import" class="custom-select" id="importtype"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
7 <optgroup :label="regularLabel"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
8 <option :value="$options.IMPORTTYPES.BOTTLENECK"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
9 <translate>Bottlenecks</translate> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
10 </option> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
11 <option :value="$options.IMPORTTYPES.WATERWAYAXIS"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
12 <translate>Waterway axis</translate> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
13 </option> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
14 <option :value="$options.IMPORTTYPES.GAUGEMEASUREMENT"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
15 <translate>Gauge measurement</translate> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
16 </option> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
17 <option :value="$options.IMPORTTYPES.FAIRWAYAVAILABILITY"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
18 <translate>Available fairway depths</translate> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
19 </option> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
20 <option :value="$options.IMPORTTYPES.WATERWAYAREA"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
21 <translate>Waterway area</translate> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
22 </option> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
23 <option :value="$options.IMPORTTYPES.FAIRWAYDIMENSION"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
24 <translate>Fairway dimension</translate> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
25 </option> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
26 <option :value="$options.IMPORTTYPES.WATERWAYGAUGES"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
27 <translate>Waterway gauges</translate> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
28 </option> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
29 <option :value="$options.IMPORTTYPES.DISTANCEMARKSVIRTUAL"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
30 <translate>Distance marks virtual</translate> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
31 </option> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
32 <option :value="$options.IMPORTTYPES.DISTANCEMARKSASHORE"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
33 <translate>Distance marks ashore</translate> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
34 </option> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
35 </optgroup> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
36 <optgroup :label="onetimeLabel"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
37 <option :value="$options.IMPORTTYPES.SOUNDINGRESULTS"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
38 <translate>Soundingresults</translate> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
39 </option> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
40 <option :value="$options.IMPORTTYPES.APPROVEDGAUGEMEASUREMENTS"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
41 <translate>Approved Gaugemeasurements</translate> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
42 </option> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
43 <option :value="$options.IMPORTTYPES.WATERWAYPROFILES"> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
44 <translate>Waterway Profiles</translate> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
45 </option> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
46 </optgroup> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
47 </select> |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
48 <ApprovedGaugeMeasurement |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
49 v-if="Import === $options.IMPORTTYPES.APPROVEDGAUGEMEASUREMENTS" |
2977
ab26fb7a76f6
unified_imports: soundingresults moved to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2975
diff
changeset
|
50 class="mt-3" |
2974
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
51 /> |
2977
ab26fb7a76f6
unified_imports: soundingresults moved to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2975
diff
changeset
|
52 <WaterwayProfiles |
ab26fb7a76f6
unified_imports: soundingresults moved to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2975
diff
changeset
|
53 class="mt-3" |
ab26fb7a76f6
unified_imports: soundingresults moved to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2975
diff
changeset
|
54 v-if="Import === $options.IMPORTTYPES.WATERWAYPROFILES" |
ab26fb7a76f6
unified_imports: soundingresults moved to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2975
diff
changeset
|
55 /> |
ab26fb7a76f6
unified_imports: soundingresults moved to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2975
diff
changeset
|
56 <SoundingResults |
ab26fb7a76f6
unified_imports: soundingresults moved to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2975
diff
changeset
|
57 class="mt-3" |
ab26fb7a76f6
unified_imports: soundingresults moved to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2975
diff
changeset
|
58 v-if="Import === $options.IMPORTTYPES.SOUNDINGRESULTS" |
ab26fb7a76f6
unified_imports: soundingresults moved to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2975
diff
changeset
|
59 /> |
2972
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
60 </div> |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
61 </template> |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
62 |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
63 <style lang="scss" scoped></style> |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
64 |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
65 <script> |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
66 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
67 * without warranty, see README.md and license for details. |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
68 * |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
69 * SPDX-License-Identifier: AGPL-3.0-or-later |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
70 * License-Filename: LICENSES/AGPL-3.0.txt |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
71 * |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
72 * Copyright (C) 2018, 2019 by via donau |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
73 * – Österreichische Wasserstraßen-Gesellschaft mbH |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
74 * Software engineering by Intevation GmbH |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
75 * |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
76 * Author(s): |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
77 * Thomas Junk <thomas.junk@intevation.de> |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
78 * Tom Gottfried <tom.gottfried@intevation.de> |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
79 */ |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
80 import { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
81 IMPORTTYPES |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
82 // IMPORTTYPEKIND, |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
83 // initializeCurrentSchedule |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
84 } from "@/store/importschedule"; |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
85 import { mapState } from "vuex"; |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
86 // import { displayInfo, displayError } from "@/lib/errors.js"; |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
87 // import app from "@/main.js"; |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
88 // import { HTTP } from "@/lib/http"; |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
89 |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
90 export default { |
2974
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
91 components: { |
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
92 ApprovedGaugeMeasurement: () => |
2978
d6dd158b8071
unified_import: reorganizing files
Thomas Junk <thomas.junk@intevation.de>
parents:
2977
diff
changeset
|
93 import("./types/ApprovedGaugeMeasurement.vue"), |
d6dd158b8071
unified_import: reorganizing files
Thomas Junk <thomas.junk@intevation.de>
parents:
2977
diff
changeset
|
94 WaterwayProfiles: () => import("./types/WaterwayProfiles"), |
d6dd158b8071
unified_import: reorganizing files
Thomas Junk <thomas.junk@intevation.de>
parents:
2977
diff
changeset
|
95 SoundingResults: () => import("./types/Soundingresults.vue") |
2974
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
96 }, |
2972
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
97 data() { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
98 return {}; |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
99 }, |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
100 computed: { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
101 ...mapState("importschedule", ["currentSchedule"]), |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
102 Import: { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
103 get() { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
104 return this.currentSchedule.importType; |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
105 }, |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
106 set(value) { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
107 this.$store.commit("importschedule/setImportType", value); |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
108 } |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
109 }, |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
110 onetimeLabel() { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
111 return this.$gettext("Onetime Imports"); |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
112 }, |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
113 regularLabel() { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
114 return this.$gettext("Regular Imports"); |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
115 } |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
116 }, |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
117 methods: {}, |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
118 IMPORTTYPES: IMPORTTYPES |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
119 }; |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
120 </script> |