annotate client/src/components/importoverview/AdditionalDetail.vue @ 2608:13377f2a5c42

overview2: agm details prototype implemented
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 13 Mar 2019 09:45:29 +0100
parents 11fd7ee37f10
children c52bf6f994c0
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>
2605
11fd7ee37f10 overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
3 <FairwayDimensionDetail
11fd7ee37f10 overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
4 :entry="entry"
11fd7ee37f10 overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
5 v-if="isFairwayDimension"
11fd7ee37f10 overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
6 ></FairwayDimensionDetail>
2602
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
7 <ApprovedGaugeMeasurementDetail
2605
11fd7ee37f10 overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
8 :entry="entry"
2602
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
9 v-if="isApprovedGaugeMeasurement"
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
10 ></ApprovedGaugeMeasurementDetail>
2605
11fd7ee37f10 overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
11 <BottleneckDetail :entry="entry" v-if="isBottleneck"></BottleneckDetail>
2594
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
12 </div>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
13 </template>
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 <script>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
16 /* 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
17 * without warranty, see README.md and license for details.
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
18 *
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
19 * SPDX-License-Identifier: AGPL-3.0-or-later
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
20 * License-Filename: LICENSES/AGPL-3.0.txt
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 * Copyright (C) 2018 by via donau
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
23 * – Österreichische Wasserstraßen-Gesellschaft mbH
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
24 * Software engineering by Intevation GmbH
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 * Author(s):
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
27 * Thomas Junk <thomas.junk@intevation.de>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
28 */
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
29
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
30 export default {
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
31 name: "additionaldetail",
2601
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
32 props: ["entry"],
2602
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
33 components: {
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
34 BottleneckDetail: () => import("./BottleneckDetail.vue"),
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
35 ApprovedGaugeMeasurementDetail: () =>
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
36 import("./ApprovedGaugeMeasurementDetail.vue"),
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
37 FairwayDimensionDetail: () => import("./FairwayDimension.vue")
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
38 },
2601
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
39 computed: {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
40 kind() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
41 return this.entry.kind.toUpperCase();
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
42 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
43 isFairwayDimension() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
44 return this.kind === "FD";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
45 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
46 isApprovedGaugeMeasurement() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
47 return this.kind === "AGM";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
48 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
49 isBottleneck() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
50 return this.kind === "BN" || this.kind === "UBN";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
51 }
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
52 }
2594
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
53 };
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
54 </script>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
55
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
56 <style></style>