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);