Mercurial > gemma
annotate client/src/components/importconfiguration/ImportDetails.vue @ 5448:25d0d3159376 uiimprovements
Esc/click to stop operation.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 13 Jul 2021 15:22:37 +0200 |
parents | 60bba8e6322b |
children | 84d01a536bec |
rev | line source |
---|---|
2972
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1 <template> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
2 <div class="text-left"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
3 <div> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
4 <div class="p-2 pb-3 border-bottom"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
5 <small class="text-muted"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
6 <translate>Import type</translate> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
7 </small> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
8 <select |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
9 v-model="Import" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
10 class="custom-select custom-select-sm" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
11 id="importtype" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
12 > |
4903
69cc3d3047ab
moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents:
4900
diff
changeset
|
13 <optgroup :label="onetimeLabel"> |
69cc3d3047ab
moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents:
4900
diff
changeset
|
14 <option :value="$options.IMPORTTYPES.SOUNDINGRESULTS"> |
69cc3d3047ab
moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents:
4900
diff
changeset
|
15 <translate>Soundingresults</translate> |
69cc3d3047ab
moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents:
4900
diff
changeset
|
16 </option> |
69cc3d3047ab
moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents:
4900
diff
changeset
|
17 <option :value="$options.IMPORTTYPES.APPROVEDGAUGEMEASUREMENTS"> |
69cc3d3047ab
moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents:
4900
diff
changeset
|
18 <translate>Approved Gaugemeasurements</translate> |
69cc3d3047ab
moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents:
4900
diff
changeset
|
19 </option> |
69cc3d3047ab
moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents:
4900
diff
changeset
|
20 <option :value="$options.IMPORTTYPES.WATERWAYPROFILES"> |
69cc3d3047ab
moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents:
4900
diff
changeset
|
21 <translate>Waterway Profiles</translate> |
69cc3d3047ab
moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents:
4900
diff
changeset
|
22 </option> |
69cc3d3047ab
moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents:
4900
diff
changeset
|
23 </optgroup> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
24 <optgroup :label="regularLabel"> |
3417
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
25 <option :value="$options.IMPORTTYPES.WATERWAYAREA"> |
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
26 <translate>Waterway area</translate> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
27 </option> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
28 <option :value="$options.IMPORTTYPES.WATERWAYAXIS"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
29 <translate>Waterway axis</translate> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
30 </option> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
31 <option :value="$options.IMPORTTYPES.FAIRWAYDIMENSION"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
32 <translate>Fairway dimension</translate> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
33 </option> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
34 <option :value="$options.IMPORTTYPES.DISTANCEMARKSVIRTUAL"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
35 <translate>Distance marks virtual</translate> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
36 </option> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
37 <option :value="$options.IMPORTTYPES.DISTANCEMARKSASHORE"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
38 <translate>Distance marks ashore</translate> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
39 </option> |
3417
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
40 <option :value="$options.IMPORTTYPES.WATERWAYGAUGES"> |
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
41 <translate>Waterway gauges</translate> |
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
42 </option> |
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
43 <option :value="$options.IMPORTTYPES.BOTTLENECK"> |
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
44 <translate>Bottlenecks</translate> |
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
45 </option> |
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
46 <option :value="$options.IMPORTTYPES.FAIRWAYAVAILABILITY"> |
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
47 <translate>Available fairway depths</translate> |
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
48 </option> |
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
49 <option :value="$options.IMPORTTYPES.GAUGEMEASUREMENT"> |
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
50 <translate>Gauge measurement</translate> |
604ce439e1fd
Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents:
3281
diff
changeset
|
51 </option> |
4900
bbcea42bba87
Backed out changeset d5790fcb8df6
Thomas Junk <thomas.junk@intevation.de>
parents:
4887
diff
changeset
|
52 <option :value="$options.IMPORTTYPES.FAIRWAYMARKS"> |
bbcea42bba87
Backed out changeset d5790fcb8df6
Thomas Junk <thomas.junk@intevation.de>
parents:
4887
diff
changeset
|
53 <translate>Fairwaymarks</translate> |
bbcea42bba87
Backed out changeset d5790fcb8df6
Thomas Junk <thomas.junk@intevation.de>
parents:
4887
diff
changeset
|
54 </option> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
55 </optgroup> |
5367
1695e17c5a83
Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents:
4903
diff
changeset
|
56 <optgroup :label="reportslabel" v-if="isSysAdmin"> |
1695e17c5a83
Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents:
4903
diff
changeset
|
57 <option :value="$options.IMPORTTYPES.REPORT"> |
1695e17c5a83
Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents:
4903
diff
changeset
|
58 <translate>Data Quality Report</translate> |
1695e17c5a83
Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents:
4903
diff
changeset
|
59 </option> |
5388
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5367
diff
changeset
|
60 <option :value="$options.IMPORTTYPES.STATSUPDATE"> |
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5367
diff
changeset
|
61 <translate>Update Stats</translate> |
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5367
diff
changeset
|
62 </option> |
5367
1695e17c5a83
Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents:
4903
diff
changeset
|
63 </optgroup> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
64 </select> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
65 </div> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
66 <ApprovedGaugeMeasurement |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
67 v-if="Import === $options.IMPORTTYPES.APPROVEDGAUGEMEASUREMENTS" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
68 class="mt-1" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
69 /> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
70 <WaterwayProfiles |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
71 class="mt-1" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
72 v-if="Import === $options.IMPORTTYPES.WATERWAYPROFILES" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
73 /> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
74 <SoundingResults |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
75 class="mt-1" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
76 v-if="Import === $options.IMPORTTYPES.SOUNDINGRESULTS" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
77 /> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
78 <ScheduledImports |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
79 class="mt-1" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
80 v-if="Import && !isOnetime" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
81 ></ScheduledImports> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
82 </div> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
83 <div v-if="!Import" class="p-2"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2998
diff
changeset
|
84 <button :key="1" @click="back()" class="btn btn-sm btn-warning"> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
85 Back |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
86 </button> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
87 </div> |
2972
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
88 </div> |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
89 </template> |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
90 |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
91 <style lang="scss" scoped></style> |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
92 |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
93 <script> |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
94 /* 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
|
95 * without warranty, see README.md and license for details. |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
96 * |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
97 * SPDX-License-Identifier: AGPL-3.0-or-later |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
98 * License-Filename: LICENSES/AGPL-3.0.txt |
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 * Copyright (C) 2018, 2019 by via donau |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
101 * – Österreichische Wasserstraßen-Gesellschaft mbH |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
102 * Software engineering by Intevation GmbH |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
103 * |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
104 * Author(s): |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
105 * Thomas Junk <thomas.junk@intevation.de> |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
106 * Tom Gottfried <tom.gottfried@intevation.de> |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
107 */ |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
108 import { IMPORTTYPES } from "@/store/importschedule"; |
5367
1695e17c5a83
Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents:
4903
diff
changeset
|
109 import { mapState, mapGetters } from "vuex"; |
2972
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
110 export default { |
2974
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
111 components: { |
2985
1b8bb4f89227
client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents:
2979
diff
changeset
|
112 ApprovedGaugeMeasurement: () => import("./types/ApprovedGaugeMeasurement"), |
2978
d6dd158b8071
unified_import: reorganizing files
Thomas Junk <thomas.junk@intevation.de>
parents:
2977
diff
changeset
|
113 WaterwayProfiles: () => import("./types/WaterwayProfiles"), |
2985
1b8bb4f89227
client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents:
2979
diff
changeset
|
114 SoundingResults: () => import("./types/Soundingresults"), |
2993
ec3196e2d579
imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents:
2985
diff
changeset
|
115 ScheduledImports: () => import("./ScheduledImports") |
2974
e161e1ffb6b5
unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents:
2972
diff
changeset
|
116 }, |
2972
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
117 data() { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
118 return {}; |
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 computed: { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
121 ...mapState("importschedule", ["currentSchedule"]), |
5367
1695e17c5a83
Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents:
4903
diff
changeset
|
122 ...mapGetters("user", ["isSysAdmin"]), |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
123 isOnetime() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
124 for (let kind of [ |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
125 this.$options.IMPORTTYPES.SOUNDINGRESULTS, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
126 this.$options.IMPORTTYPES.APPROVEDGAUGEMEASUREMENTS, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
127 this.$options.IMPORTTYPES.WATERWAYPROFILES |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
128 ]) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
129 if (kind === this.currentSchedule.importType) return true; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
130 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
131 return false; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
132 }, |
2972
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
133 Import: { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
134 get() { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
135 return this.currentSchedule.importType; |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
136 }, |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
137 set(value) { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
138 this.$store.commit("importschedule/setImportType", value); |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
139 } |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
140 }, |
5367
1695e17c5a83
Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents:
4903
diff
changeset
|
141 reportslabel() { |
1695e17c5a83
Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents:
4903
diff
changeset
|
142 return this.$gettext("Reports"); |
1695e17c5a83
Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents:
4903
diff
changeset
|
143 }, |
2972
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
144 onetimeLabel() { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
145 return this.$gettext("Onetime Imports"); |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
146 }, |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
147 regularLabel() { |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
148 return this.$gettext("Regular Imports"); |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
149 } |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
150 }, |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
151 methods: { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
152 back() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
153 this.$store.commit("importschedule/setListMode"); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
154 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
2978
diff
changeset
|
155 }, |
2972
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
156 IMPORTTYPES: IMPORTTYPES |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
157 }; |
6f351e00e579
unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
158 </script> |