diff --git a/frontend/src/pages/Cache.vue b/frontend/src/pages/Cache.vue index ef3f49a..db80dbb 100644 --- a/frontend/src/pages/Cache.vue +++ b/frontend/src/pages/Cache.vue @@ -147,14 +147,15 @@ methods: { editEndStation() { console.log("editEndStation()"); - const station = this.cache.endStation; + const station = this.endStation; console.log(station); if (station.hasOwnProperty('id')) { //this.$router.push({ path: '/station/'+station.id}); } else { // TODO Stationen bearbeitbar machen bevor sie abgeschickt werden. Am besten Station Objekt als Übergabe Parameter bei Router this.$store.commit('cacheCollector/SET_TEMPSTATION', station); - this.$router.push({path: `/tempstation/${index}`}); // add parameter + //this.$router.push({path: `/tempendstation/${index}`}); // add parameter + this.$router.push({path: `/tempendstation/`}); // add parameter } }, diff --git a/frontend/src/pages/CacheStart.vue b/frontend/src/pages/CacheStart.vue index 4619554..2cc51de 100644 --- a/frontend/src/pages/CacheStart.vue +++ b/frontend/src/pages/CacheStart.vue @@ -94,8 +94,8 @@ setParams() { console.log("setParams: "); let params = {}; - params.cacheID = this.code.split('/')[0]; - params.stationID = this.code.split('/')[1]; + params.cacheID = this.result.split('/')[0]; + params.stationID = this.result.split('/')[1]; params.durchgefuehrterCacheID = this.cacheID; console.log(params.cacheID + " und " + params.stationID); if (localStorage.getItem('userToken')) { diff --git a/frontend/src/pages/StationEdit.vue b/frontend/src/pages/StationEdit.vue index 78b29a4..3e1a6e8 100644 --- a/frontend/src/pages/StationEdit.vue +++ b/frontend/src/pages/StationEdit.vue @@ -27,8 +27,8 @@ -

Lösung

- + +
diff --git a/frontend/src/pages/StationEndEdit.vue b/frontend/src/pages/StationEndEdit.vue new file mode 100644 index 0000000..1f37fc5 --- /dev/null +++ b/frontend/src/pages/StationEndEdit.vue @@ -0,0 +1,97 @@ + + + + + diff --git a/frontend/src/router/routes.js b/frontend/src/router/routes.js index d2e6391..1a1e7ff 100644 --- a/frontend/src/router/routes.js +++ b/frontend/src/router/routes.js @@ -30,11 +30,21 @@ const routes = [ component: () => import("layouts/MyLayout.vue"), children: [{ path: "", component: () => import("pages/StationEdit.vue") }] }, + { + path: "/endstation/", + component: () => import("layouts/MyLayout.vue"), + children: [{ path: "", component: () => import("pages/StationEndEdit.vue") }] + }, { path: "/tempstation/:pos", component: () => import("layouts/MyLayout.vue"), children: [{path: "", component: () => import("pages/StationEdit.vue")}] }, + { + path: "/tempendstation/", + component: () => import("layouts/MyLayout.vue"), + children: [{path: "", component: () => import("pages/StationEndEdit.vue")}] + }, { path: "/station/:cache/:id", component: () => import("layouts/MyLayout.vue"),