From 544807dc8ef9a12278d782fb5616f08c8c19bd68 Mon Sep 17 00:00:00 2001
From: Nils Brinckmann <nils.brinckmann@gfz-potsdam.de>
Date: Mon, 7 Aug 2023 15:34:05 +0200
Subject: [PATCH] Add offsets to submit overview & linking table

---
 .../configurations/tsmLinking/TsmLinkingOverviewTable.vue     | 4 ++++
 components/configurations/tsmLinking/TsmLinkingReview.vue     | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/components/configurations/tsmLinking/TsmLinkingOverviewTable.vue b/components/configurations/tsmLinking/TsmLinkingOverviewTable.vue
index 13910bc54..c7f8652dd 100644
--- a/components/configurations/tsmLinking/TsmLinkingOverviewTable.vue
+++ b/components/configurations/tsmLinking/TsmLinkingOverviewTable.vue
@@ -127,6 +127,9 @@ export default class TsmLinkingOverviewTable extends Vue {
     }, {
       text: 'Measured Quantity',
       value: 'measuredQuantity'
+    }, {
+      text: 'Offsets (X | Y | Z)',
+      value: 'offsets'
     }, {
       text: 'Start date',
       value: 'startDate'
@@ -162,6 +165,7 @@ export default class TsmLinkingOverviewTable extends Vue {
       return {
         id: linking.id,
         tsmdlEntityNames: this.generateTsmdlEntityNames(linking),
+        offsets: `(${linking?.deviceMountAction?.offsetX} | ${linking?.deviceMountAction?.offsetY} | ${linking?.deviceMountAction?.offsetZ})`,
         startDate: this.$root.$options.filters!.toUtcDateTimeStringHHMM(linking.startDate),
         endDate: this.$root.$options.filters!.toUtcDateTimeStringHHMM(linking.endDate),
         measuredQuantity: this.generatePropertyTitle(linking.deviceProperty),
diff --git a/components/configurations/tsmLinking/TsmLinkingReview.vue b/components/configurations/tsmLinking/TsmLinkingReview.vue
index 87a9c45c7..1345da7cb 100644
--- a/components/configurations/tsmLinking/TsmLinkingReview.vue
+++ b/components/configurations/tsmLinking/TsmLinkingReview.vue
@@ -40,6 +40,7 @@
               <tr>
                 <th>Device</th>
                 <th>Mount range</th>
+                <th>Offsets (X | Y | Z)</th>
                 <th>Measured Quantity</th>
                 <th>Datasource</th>
                 <th>Thing</th>
@@ -63,6 +64,9 @@
                     :to="formLinking.deviceMountAction.endDate"
                   />
                 </td>
+                <td>
+                  ({{ formLinking.deviceMountAction.offsetX }} | {{ formLinking.deviceMountAction.offsetY }} | {{ formLinking.deviceMountAction.offsetZ }})
+                </td>
                 <td>
                   {{ formLinking.deviceProperty | generatePropertyTitle }}
                 </td>
-- 
GitLab