diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/ciclo/components/base-components/caricatore.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/ciclo/components/base-components/caricatore.ts index 62b56c2a..905ca82d 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/ciclo/components/base-components/caricatore.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/ciclo/components/base-components/caricatore.ts @@ -7,165 +7,8 @@ import ToggleButton from "@/components/toggleButton.vue"; @Component({ components: { ToggleButton, slider: Slider, svgcaricatore: SVGCaricatore, } }) export default class Caricatore extends Vue { -recipe:Recipe.IRecipe={ - cycle_loader_enable: { - range: { - min: 6, - max: 127 - }, - status: { - visible: true, - enabled: true, - hasError: false - }, - unitMeasure: "", - valueAct: 48 - }, - cycle_loader_lifter_lowerposition_delay: { - range: { - min: 5, - max: 133 - }, - status: { - visible: true, - enabled: true, - hasError: false - }, - unitMeasure: "", - valueAct: 38 - }, - cycle_loader_lifter_upperposition_delay: { - range: { - min: 6, - max: 172 - }, - status: { - visible: true, - enabled: true, - hasError: false - }, - unitMeasure: "", - valueAct: 16 - }, - cycle_loader_split_sheet_time: { - range: { - min: 1, - max: 111 - }, - status: { - visible: true, - enabled: true, - hasError: false - }, - unitMeasure: "", - valueAct: 50 - }, - cycle_loader_ejector_position: { - range: { - min: 3, - max: 199 - }, - status: { - visible: true, - enabled: true, - hasError: false - }, - unitMeasure: "", - valueAct: 47 - }, - cycle_loader_pallet_height: { - range: { - min: 1, - max: 149 - }, - status: { - visible: true, - enabled: true, - hasError: false - }, - unitMeasure: "", - valueAct: 116 - }, - cycle_loader_center_x: { - range: { - min: 6, - max: 167 - }, - status: { - visible: true, - enabled: true, - hasError: false - }, - unitMeasure: "", - valueAct: 142 - }, - cycle_loader_center_y: { - range: { - min: 7, - max: 109 - }, - status: { - visible: true, - enabled: true, - hasError: false - }, - unitMeasure: "", - valueAct: 58 - }, - cycle_loader_checktichness_enabled: { - range: { - min: 1, - max: 197 - }, - status: { - visible: true, - enabled: true, - hasError: false - }, - unitMeasure: "", - valueAct: 113 - }, - cycle_loader_suckers_vacuum: { - range: { - min: 9, - max: 105 - }, - status: { - visible: true, - enabled: true, - hasError: false - }, - unitMeasure: "", - valueAct: 20 - }, - cycle_loader_ionizer_enabled: { - range: { - min: 3, - max: 152 - }, - status: { - visible: true, - enabled: true, - hasError: false - }, - unitMeasure: "", - valueAct: 70 - }, - cycle_loader_manualunloading_enabled: { - range: { - min: 2, - max: 126 - }, - status: { - visible: true, - enabled: true, - hasError: false - }, - unitMeasure: "", - valueAct: 96 - } - -} - + + @Prop() + recipe:Recipe.IRecipe; } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/ciclo/components/show-ciclo-info.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/ciclo/components/show-ciclo-info.ts index 4794e634..245b0fb5 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/ciclo/components/show-ciclo-info.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/ciclo/components/show-ciclo-info.ts @@ -6,10 +6,13 @@ import { Modal, ModalHelper } from "@/components/modals"; import { Factory, messageService, awaiter } from "@/_base"; import CicloFormatura from "./base-components/ciclo-formatura.vue"; import Caricatore from "./base-components/caricatore.vue"; +import { recipeActions } from "@/store/recipe.store"; +import { store } from "@/store"; @Component({ components: { modal: Modal, stepfooter: StepFooter, caricatore: Caricatore, cicloformatura: CicloFormatura } }) export default class ShowCicloInfo extends Vue { + recipe:Recipe.IRecipe=this.$store.getters.getCurrent(); show: string = "caricatore"; annulla(name:string) { @@ -17,6 +20,7 @@ export default class ShowCicloInfo extends Vue { }; conferma(name:string) { + recipeActions.setCurrent(store, this.recipe); messageService.publishToChannel(name); }; diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/ciclo/components/show-ciclo-info.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/ciclo/components/show-ciclo-info.vue index ffa3cf84..d9eb2f08 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/ciclo/components/show-ciclo-info.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/ciclo/components/show-ciclo-info.vue @@ -10,7 +10,7 @@ - +