annotate client/src/components/importoverview/ApprovedGaugeMeasurementDetail.vue @ 5338:f8e7f043d968 extented-report

Fixed example_conf.toml for new report-path.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 15 Jun 2021 22:00:20 +0200
parents da3fd4c3d1b5
children 84d01a536bec
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2602
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 <template>
2717
5b990f612420 import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents: 2708
diff changeset
2 <div
5b990f612420 import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents: 2708
diff changeset
3 :class="{
5b990f612420 import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents: 2708
diff changeset
4 diffs: true,
2880
c40540889b53 client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2732
diff changeset
5 full: !showLogs,
c40540889b53 client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2732
diff changeset
6 split: showLogs
2717
5b990f612420 import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents: 2708
diff changeset
7 }"
5b990f612420 import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents: 2708
diff changeset
8 >
5290
da3fd4c3d1b5 Client: adjust virtual-list properties to prevent truncating of the import logs
Fadi Abbud <fadi.abbud@intevation.de>
parents: 4454
diff changeset
9 <virtual-list
da3fd4c3d1b5 Client: adjust virtual-list properties to prevent truncating of the import logs
Fadi Abbud <fadi.abbud@intevation.de>
parents: 4454
diff changeset
10 :size="scrollistConfig.size"
da3fd4c3d1b5 Client: adjust virtual-list properties to prevent truncating of the import logs
Fadi Abbud <fadi.abbud@intevation.de>
parents: 4454
diff changeset
11 :remain="scrollistConfig.remain"
da3fd4c3d1b5 Client: adjust virtual-list properties to prevent truncating of the import logs
Fadi Abbud <fadi.abbud@intevation.de>
parents: 4454
diff changeset
12 :bench="scrollistConfig.bench"
da3fd4c3d1b5 Client: adjust virtual-list properties to prevent truncating of the import logs
Fadi Abbud <fadi.abbud@intevation.de>
parents: 4454
diff changeset
13 >
3766
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
14 <Item
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
15 class="d-flex flex-row px-2 border-top"
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
16 v-for="(item, index) in details.summary"
3767
fd6d62b08af7 review_agm: fixed open diff bug. Only selected diff is opened and stays open
Thomas Junk <thomas.junk@intevation.de>
parents: 3766
diff changeset
17 @openDiff="toggleDiff"
3766
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
18 :key="index"
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
19 :line="item"
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
20 :index="index"
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
21 :showDiff="showDiff"
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
22 />
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
23 </virtual-list>
2608
13377f2a5c42 overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
24 </div>
2602
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
25 </template>
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
26
2882
6538ee93df72 client: moved style blocks below template blocks
Markus Kottlaender <markus@intevation.de>
parents: 2880
diff changeset
27 <style lang="sass" scoped>
6538ee93df72 client: moved style blocks below template blocks
Markus Kottlaender <markus@intevation.de>
parents: 2880
diff changeset
28 .diffs
6538ee93df72 client: moved style blocks below template blocks
Markus Kottlaender <markus@intevation.de>
parents: 2880
diff changeset
29 width: 100%
6538ee93df72 client: moved style blocks below template blocks
Markus Kottlaender <markus@intevation.de>
parents: 2880
diff changeset
30 overflow-y: auto
2925
ce148a7fb896 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2914
diff changeset
31 > div
ce148a7fb896 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2914
diff changeset
32 border-top: dashed 1px #dee2e6
ce148a7fb896 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2914
diff changeset
33 &:first-child
ce148a7fb896 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2914
diff changeset
34 border-top: none
2944
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
35 .compare-table
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
36 position: relative
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
37 overflow: hidden
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
38 &::after
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
39 content: ''
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
40 position: absolute
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
41 top: 0
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
42 right: -5px
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
43 bottom: 0
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
44 left: -5px
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
45 box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4)
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
46 > div
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
47 font-size: 0.7rem
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
48 &:nth-child(odd)
73f537379203 client: importoverview: improved style
Markus Kottlaender <markus@intevation.de>
parents: 2936
diff changeset
49 background-color: #f8f9fa
2882
6538ee93df72 client: moved style blocks below template blocks
Markus Kottlaender <markus@intevation.de>
parents: 2880
diff changeset
50
6538ee93df72 client: moved style blocks below template blocks
Markus Kottlaender <markus@intevation.de>
parents: 2880
diff changeset
51 .split
6538ee93df72 client: moved style blocks below template blocks
Markus Kottlaender <markus@intevation.de>
parents: 2880
diff changeset
52 max-height: 35vh
6538ee93df72 client: moved style blocks below template blocks
Markus Kottlaender <markus@intevation.de>
parents: 2880
diff changeset
53
6538ee93df72 client: moved style blocks below template blocks
Markus Kottlaender <markus@intevation.de>
parents: 2880
diff changeset
54 .full
6538ee93df72 client: moved style blocks below template blocks
Markus Kottlaender <markus@intevation.de>
parents: 2880
diff changeset
55 max-height: 70vh
6538ee93df72 client: moved style blocks below template blocks
Markus Kottlaender <markus@intevation.de>
parents: 2880
diff changeset
56 </style>
6538ee93df72 client: moved style blocks below template blocks
Markus Kottlaender <markus@intevation.de>
parents: 2880
diff changeset
57
2602
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
58 <script>
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
59 /* This is Free Software under GNU Affero General Public License v >= 3.0
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
60 * without warranty, see README.md and license for details.
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
61 *
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
62 * SPDX-License-Identifier: AGPL-3.0-or-later
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
63 * License-Filename: LICENSES/AGPL-3.0.txt
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
64 *
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
65 * Copyright (C) 2018 by via donau
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
66 * – Österreichische Wasserstraßen-Gesellschaft mbH
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
67 * Software engineering by Intevation GmbH
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
68 *
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
69 * Author(s):
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
70 * Thomas Junk <thomas.junk@intevation.de>
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
71 */
2717
5b990f612420 import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents: 2708
diff changeset
72 import { mapState } from "vuex";
3766
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
73 import virtualList from "vue-virtual-scroll-list";
2608
13377f2a5c42 overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
74
2602
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
75 export default {
2608
13377f2a5c42 overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
76 data() {
13377f2a5c42 overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
77 return {
2914
84a40983bb9f client: importsoverview: improved opening mechanism for additional details
Markus Kottlaender <markus@intevation.de>
parents: 2902
diff changeset
78 showDiff: 0 // open first item by default
2608
13377f2a5c42 overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
79 };
13377f2a5c42 overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
80 },
3766
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
81 components: {
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
82 "virtual-list": virtualList,
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
83 Item: () => import("./AGMLogItem")
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
84 },
2717
5b990f612420 import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents: 2708
diff changeset
85 computed: {
3766
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
86 ...mapState("imports", ["showLogs", "details"]),
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
87 scrollistConfig() {
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
88 const smallLayout = {
5290
da3fd4c3d1b5 Client: adjust virtual-list properties to prevent truncating of the import logs
Fadi Abbud <fadi.abbud@intevation.de>
parents: 4454
diff changeset
89 size: 20,
da3fd4c3d1b5 Client: adjust virtual-list properties to prevent truncating of the import logs
Fadi Abbud <fadi.abbud@intevation.de>
parents: 4454
diff changeset
90 remain: 10,
da3fd4c3d1b5 Client: adjust virtual-list properties to prevent truncating of the import logs
Fadi Abbud <fadi.abbud@intevation.de>
parents: 4454
diff changeset
91 bench: 12
3766
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
92 };
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
93 const largeLayout = {
5290
da3fd4c3d1b5 Client: adjust virtual-list properties to prevent truncating of the import logs
Fadi Abbud <fadi.abbud@intevation.de>
parents: 4454
diff changeset
94 size: 22,
da3fd4c3d1b5 Client: adjust virtual-list properties to prevent truncating of the import logs
Fadi Abbud <fadi.abbud@intevation.de>
parents: 4454
diff changeset
95 remain: 12,
da3fd4c3d1b5 Client: adjust virtual-list properties to prevent truncating of the import logs
Fadi Abbud <fadi.abbud@intevation.de>
parents: 4454
diff changeset
96 bench: 14
3766
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
97 };
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
98 if (this.showAdditional) return smallLayout;
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
99 return largeLayout;
96ee62fb88fd agm_review: now with virtual scrolling
Thomas Junk <thomas.junk@intevation.de>
parents: 2944
diff changeset
100 }
2717
5b990f612420 import_review: rename overview to review. More space for logs
Thomas Junk <thomas.junk@intevation.de>
parents: 2708
diff changeset
101 },
2608
13377f2a5c42 overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
102 methods: {
13377f2a5c42 overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
103 toggleDiff(number) {
2880
c40540889b53 client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2732
diff changeset
104 if (this.showDiff !== number) {
2608
13377f2a5c42 overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
105 this.showDiff = number;
13377f2a5c42 overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
106 } else {
2880
c40540889b53 client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2732
diff changeset
107 this.showDiff = false;
2608
13377f2a5c42 overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
108 }
13377f2a5c42 overview2: agm details prototype implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
109 }
2880
c40540889b53 client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2732
diff changeset
110 }
2602
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
111 };
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
112 </script>