diff --git a/Step/wwwroot/src/app.routes.js b/Step/wwwroot/src/app.routes.js index 6701b094..69aba130 100644 --- a/Step/wwwroot/src/app.routes.js +++ b/Step/wwwroot/src/app.routes.js @@ -20,9 +20,10 @@ import { export let routes = [ { path: "", component: Home, name: "home", meta: { title: "Step - Dashboard" } }, { path: "/production", meta: { title: "Step - Production", area: "production" } }, - { path: "/tooling", component: Tooling, meta: { title: "Step - Tools", area: "tooling" } }, - { path: "/depot", component: Depot, meta: { title: "Step - Depot", area: "depot" } }, + { path: "/tooling", component: Tooling, meta: { title: "Step - Tools", area: "tooling" } }, + { name: "depot", path: "/depot/:id", component: Depot, meta: { title: "Step - Depot", area: "depot" } }, + { path: "/summary-depot", component: SummaryDepot, meta: { title: "Step - Summary-Depot", area: "summary-depot" } }, { path: "/assisted-tooling", component: AssistedTooling, meta: { title: "Step - Assisted-Tooling", area: "assisted-tooling" } }, { path: "/tooling-equipment", component: ToolingEquipment, meta: { title: "Step - Tooling-Equipment", area: "tooling-equipment" } }, diff --git a/Step/wwwroot/src/components/depot.ts b/Step/wwwroot/src/components/depot.ts new file mode 100644 index 00000000..5614b60f --- /dev/null +++ b/Step/wwwroot/src/components/depot.ts @@ -0,0 +1,24 @@ +import Vue from "vue"; +import Component from "vue-class-component"; +import { tool, detailCard } from "src/modules/base-components/cards" + +@Component({ components: { tool, detailCard } }) +export default class depot extends Vue { + + $route: any; + + depotId: number = 0; + + editable: boolean = false; + + mounted() { + this.depotId = this.$route.params.id; + } + + toggleEdit(){ + this.editable = !this.editable; + } + + + +} diff --git a/Step/wwwroot/src/components/depot.vue b/Step/wwwroot/src/components/depot.vue index bca86325..35b2ae1e 100644 --- a/Step/wwwroot/src/components/depot.vue +++ b/Step/wwwroot/src/components/depot.vue @@ -3,14 +3,17 @@