From 1b3c7f2d5ba58f670e53ffdda1ee602f2f52df2f Mon Sep 17 00:00:00 2001 From: Alessandro Francia Date: Thu, 10 May 2018 14:36:10 +0200 Subject: [PATCH] fix --- Step/wwwroot/src/components/tooling-magpos.ts | 5 +- .../wwwroot/src/components/tooling-magpos.vue | 112 +---------- Step/wwwroot/src/components/tooling-shanks.ts | 43 ++--- .../wwwroot/src/components/tooling-shanks.vue | 176 +----------------- Step/wwwroot/src/services/toolingService.ts | 8 +- Step/wwwroot/src/store/tooling.store.ts | 24 +-- 6 files changed, 35 insertions(+), 333 deletions(-) diff --git a/Step/wwwroot/src/components/tooling-magpos.ts b/Step/wwwroot/src/components/tooling-magpos.ts index 88974b2d..4cc66da9 100644 --- a/Step/wwwroot/src/components/tooling-magpos.ts +++ b/Step/wwwroot/src/components/tooling-magpos.ts @@ -27,10 +27,9 @@ export default class toolingMagPos extends Vue { public cancel = function (path:string) { this.$router.push({ path: path}); } + async modify(model) { - async modify(item){ - await new ToolingService().UpdateMagPos(item).then(response => { - this.selectedTool = response; + new ToolingService().UpdateMagPos(model).then(response => { this.magposConfiguration = (this.$store.state as AppModel).tooling.magazinePosConfiguration; }); } diff --git a/Step/wwwroot/src/components/tooling-magpos.vue b/Step/wwwroot/src/components/tooling-magpos.vue index 82fd18cf..fe4ccd03 100644 --- a/Step/wwwroot/src/components/tooling-magpos.vue +++ b/Step/wwwroot/src/components/tooling-magpos.vue @@ -21,7 +21,7 @@
@@ -36,121 +36,13 @@ - - - -
- +
{{'tooling_shanks_boxright_header_modify' | localize("Modifica di Codolo")}} {{selectedTool.id}}
@@ -53,63 +53,7 @@ :title="s.name | localize(s.name)" :type="s.type"> - -
-
@@ -127,126 +71,10 @@
- - - - - -