# HG changeset patch # User Markus Kottlaender # Date 1554452941 -7200 # Node ID 73f5373792034ce7b254caa8b2cee37746b3294f # Parent 78affd725ba528978e80da4fcce8a9e29daacafc client: importoverview: improved style diff -r 78affd725ba5 -r 73f537379203 client/src/components/importoverview/ApprovedGaugeMeasurementDetail.vue --- a/client/src/components/importoverview/ApprovedGaugeMeasurementDetail.vue Thu Apr 04 18:46:17 2019 +0200 +++ b/client/src/components/importoverview/ApprovedGaugeMeasurementDetail.vue Fri Apr 05 10:29:01 2019 +0200 @@ -7,74 +7,53 @@ }" >
-
-
- +
+
+
+ +
+
+ {{ result["fk-gauge-id"] }} + + (New) + +
-
- {{ result["fk-gauge-id"] }} ( New ) -
-
{{ result["fk-gauge-id"] }}
{{ result["measure-date"] | dateTime }}
+
+
+
+
+ Value +
+
+ Old +
+
+ New +
+
+
-
{{ result["measure-date"] | dateTime }}
-
-
-
-
-
- Value -
-
- Old -
-
- New -
+
+ {{ entry }} +
+
+ {{ result.versions[0][entry] }}
-
- {{ entry }} -
-
- {{ result.versions[0][entry] }} -
-
- {{ result.versions[1][entry] }} -
+ {{ result.versions[1][entry] }}
@@ -90,18 +69,21 @@ border-top: dashed 1px #dee2e6 &:first-child border-top: none - -.line:nth-child(odd) - background: #f8f8f8 - -.agmcode - width: 35% - -.agmdetailskeys - width: 33% - -.agmdetailsvalues - width: 33% + .compare-table + position: relative + overflow: hidden + &::after + content: '' + position: absolute + top: 0 + right: -5px + bottom: 0 + left: -5px + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4) + > div + font-size: 0.7rem + &:nth-child(odd) + background-color: #f8f9fa .split max-height: 35vh @@ -127,8 +109,6 @@ import { mapState } from "vuex"; export default { - name: "agmdetails", - props: ["entry"], data() { return { showDiff: 0 // open first item by default @@ -144,6 +124,18 @@ } else { this.showDiff = false; } + }, + isNew(result) { + return result && result.versions && result.versions.length === 1; + }, + isOld(result) { + return !this.isNew(result); + }, + isDifferent(result, entry) { + return ( + this.isOld(result) && + result.versions[0][entry] != result.versions[1][entry] + ); } } }; diff -r 78affd725ba5 -r 73f537379203 client/src/components/importoverview/BottleneckDetail.vue --- a/client/src/components/importoverview/BottleneckDetail.vue Thu Apr 04 18:46:17 2019 +0200 +++ b/client/src/components/importoverview/BottleneckDetail.vue Fri Apr 05 10:29:01 2019 +0200 @@ -6,12 +6,8 @@ split: showLogs }" > -
-
+
+
-
- +
+
- - + @@ -46,13 +41,6 @@
{{ info }} + {{ info }} {{ bottleneck.properties[info] }}