Mercurial > gemma
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 |
rev | line source |
---|---|
2594 | 1 <template> |
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 | 12 </div> |
13 </template> | |
14 | |
15 <script> | |
16 /* This is Free Software under GNU Affero General Public License v >= 3.0 | |
17 * without warranty, see README.md and license for details. | |
18 * | |
19 * SPDX-License-Identifier: AGPL-3.0-or-later | |
20 * License-Filename: LICENSES/AGPL-3.0.txt | |
21 * | |
22 * Copyright (C) 2018 by via donau | |
23 * – Österreichische Wasserstraßen-Gesellschaft mbH | |
24 * Software engineering by Intevation GmbH | |
25 * | |
26 * Author(s): | |
27 * Thomas Junk <thomas.junk@intevation.de> | |
28 */ | |
29 | |
30 export default { | |
31 name: "additionaldetail", | |
2601 | 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 | 39 computed: { |
40 kind() { | |
41 return this.entry.kind.toUpperCase(); | |
42 }, | |
43 isFairwayDimension() { | |
44 return this.kind === "FD"; | |
45 }, | |
46 isApprovedGaugeMeasurement() { | |
47 return this.kind === "AGM"; | |
48 }, | |
49 isBottleneck() { | |
50 return this.kind === "BN" || this.kind === "UBN"; | |
51 } | |
52 } | |
2594 | 53 }; |
54 </script> | |
55 | |
56 <style></style> |