Mercurial > gemma
annotate client/src/components/importoverview/AdditionalDetail.vue @ 2894:95e40c87a943
client: applied component name change where it is used
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 02 Apr 2019 12:17:52 +0200 |
parents | 0ab7985ef008 |
children | 399b03e59411 |
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" |
2685
39a05f8c34e6
import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents:
2647
diff
changeset
|
5 :details="details" |
2605
11fd7ee37f10
overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents:
2602
diff
changeset
|
6 v-if="isFairwayDimension" |
11fd7ee37f10
overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents:
2602
diff
changeset
|
7 ></FairwayDimensionDetail> |
2602
5d0e5159190f
overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
2601
diff
changeset
|
8 <ApprovedGaugeMeasurementDetail |
2605
11fd7ee37f10
overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents:
2602
diff
changeset
|
9 :entry="entry" |
2685
39a05f8c34e6
import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents:
2647
diff
changeset
|
10 :details="details" |
2602
5d0e5159190f
overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
2601
diff
changeset
|
11 v-if="isApprovedGaugeMeasurement" |
5d0e5159190f
overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
2601
diff
changeset
|
12 ></ApprovedGaugeMeasurementDetail> |
2685
39a05f8c34e6
import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents:
2647
diff
changeset
|
13 <BottleneckDetail |
39a05f8c34e6
import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents:
2647
diff
changeset
|
14 :details="details" |
39a05f8c34e6
import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents:
2647
diff
changeset
|
15 :entry="entry" |
39a05f8c34e6
import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents:
2647
diff
changeset
|
16 v-if="isBottleneck" |
39a05f8c34e6
import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents:
2647
diff
changeset
|
17 ></BottleneckDetail> |
2594 | 18 </div> |
19 </template> | |
20 | |
21 <script> | |
22 /* This is Free Software under GNU Affero General Public License v >= 3.0 | |
23 * without warranty, see README.md and license for details. | |
24 * | |
25 * SPDX-License-Identifier: AGPL-3.0-or-later | |
26 * License-Filename: LICENSES/AGPL-3.0.txt | |
27 * | |
28 * Copyright (C) 2018 by via donau | |
29 * – Österreichische Wasserstraßen-Gesellschaft mbH | |
30 * Software engineering by Intevation GmbH | |
31 * | |
32 * Author(s): | |
33 * Thomas Junk <thomas.junk@intevation.de> | |
34 */ | |
2732
0ab7985ef008
import_review: fixed flakey display of logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2685
diff
changeset
|
35 import { mapState } from "vuex"; |
2594 | 36 |
37 export default { | |
38 name: "additionaldetail", | |
2732
0ab7985ef008
import_review: fixed flakey display of logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2685
diff
changeset
|
39 props: ["entry"], |
2602
5d0e5159190f
overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
2601
diff
changeset
|
40 components: { |
5d0e5159190f
overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
2601
diff
changeset
|
41 BottleneckDetail: () => import("./BottleneckDetail.vue"), |
5d0e5159190f
overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
2601
diff
changeset
|
42 ApprovedGaugeMeasurementDetail: () => |
5d0e5159190f
overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
2601
diff
changeset
|
43 import("./ApprovedGaugeMeasurementDetail.vue"), |
5d0e5159190f
overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
2601
diff
changeset
|
44 FairwayDimensionDetail: () => import("./FairwayDimension.vue") |
5d0e5159190f
overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
2601
diff
changeset
|
45 }, |
2601 | 46 computed: { |
2732
0ab7985ef008
import_review: fixed flakey display of logs
Thomas Junk <thomas.junk@intevation.de>
parents:
2685
diff
changeset
|
47 ...mapState("imports", ["showLogs", "details"]), |
2601 | 48 kind() { |
49 return this.entry.kind.toUpperCase(); | |
50 }, | |
51 isFairwayDimension() { | |
52 return this.kind === "FD"; | |
53 }, | |
54 isApprovedGaugeMeasurement() { | |
55 return this.kind === "AGM"; | |
56 }, | |
57 isBottleneck() { | |
58 return this.kind === "BN" || this.kind === "UBN"; | |
59 } | |
60 } | |
2594 | 61 }; |
62 </script> | |
63 | |
2647
c52bf6f994c0
overview2: bottleneckview added
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
64 <style lang="scss" scoped></style> |