From 32510556d6a2ea476aa4e5ecc7e8b89559d84548 Mon Sep 17 00:00:00 2001 From: Alessio Date: Fri, 19 Jun 2020 15:20:46 +0200 Subject: [PATCH] add usage of prodService --- .../src/app_modules_thermo/dashboard/base-components/piece.ts | 3 +++ Thermo.Active/wwwroot/src/main.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/piece.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/piece.ts index c8450480..b7772e09 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/piece.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/piece.ts @@ -2,10 +2,13 @@ import Vue from 'vue'; import Component from 'vue-class-component'; import { Prop } from 'vue-property-decorator'; import PieceSubMenu from "./piece-sub-menu.vue"; +import { ProdActions } from '@/store/prod.store'; @Component({components:{submenu:PieceSubMenu}}) export default class Piece extends Vue{ + prod: Prod.IProd = this.$store.getters.getProd(); + @Prop({default:0}) number:number; @Prop({default:0}) diff --git a/Thermo.Active/wwwroot/src/main.ts b/Thermo.Active/wwwroot/src/main.ts index 72cb94af..b71e7660 100644 --- a/Thermo.Active/wwwroot/src/main.ts +++ b/Thermo.Active/wwwroot/src/main.ts @@ -30,6 +30,9 @@ import { warmersService } from "./services/warmersService"; warmersService.GetChannels(); warmersService.GetResistances(); +import { prodService } from "./services/prodService"; +prodService.GetProd(); + // import VueDragDrop from 'vue-drag-drop'; // Vue.use(VueDragDrop);