annotate client/src/components/importoverview/AdditionalDetail.vue @ 2601:b9523d876d01

overview2 WIP
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 12 Mar 2019 14:47:14 +0100
parents ecec6d5aae00
children 5d0e5159190f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2594
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 <template>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
2 <div>
2601
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
3 <div v-if="isFairwayDimension">Fairwaydimension</div>
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
4 <div v-if="isApprovedGaugeMeasurement">AGM</div>
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
5 <div v-if="isBottleneck">Bottlenecks</div>
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
6 <div v-if="isStretch">Stretch</div>
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
7 <div v-if="isSoundingResult">SoundingResult</div>
2594
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
8 </div>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
9 </template>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
10
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
11 <script>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
12 /* This is Free Software under GNU Affero General Public License v >= 3.0
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
13 * without warranty, see README.md and license for details.
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
14 *
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
15 * SPDX-License-Identifier: AGPL-3.0-or-later
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
16 * License-Filename: LICENSES/AGPL-3.0.txt
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
17 *
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
18 * Copyright (C) 2018 by via donau
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
19 * – Österreichische Wasserstraßen-Gesellschaft mbH
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
20 * Software engineering by Intevation GmbH
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
21 *
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
22 * Author(s):
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
23 * Thomas Junk <thomas.junk@intevation.de>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
24 */
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
25
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
26 export default {
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
27 name: "additionaldetail",
2601
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
28 props: ["entry"],
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
29 computed: {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
30 kind() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
31 return this.entry.kind.toUpperCase();
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
32 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
33 isFairwayDimension() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
34 return this.kind === "FD";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
35 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
36 isApprovedGaugeMeasurement() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
37 return this.kind === "AGM";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
38 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
39 isBottleneck() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
40 return this.kind === "BN" || this.kind === "UBN";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
41 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
42 isStretch() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
43 return this.kind === "ST";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
44 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
45 isSoundingResult() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
46 return this.kind === "SR";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
47 }
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
48 }
2594
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
49 };
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
50 </script>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
51
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
52 <style></style>