From 60e8f3da34d7dcc6aa14352e62e5bf63a5528863 Mon Sep 17 00:00:00 2001 From: Alessio Date: Tue, 5 May 2020 16:15:01 +0200 Subject: [PATCH] add computed for opzioni modal --- .../components/base-components/inputTermo.ts | 16 +++++++++++----- .../components/base-components/inputTermo.vue | 2 +- .../setup/opzioni/show-opzioni-info.ts | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/opzioni/components/base-components/inputTermo.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/opzioni/components/base-components/inputTermo.ts index 9e303d40..6a7366ee 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/opzioni/components/base-components/inputTermo.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/opzioni/components/base-components/inputTermo.ts @@ -5,7 +5,6 @@ import Slider from "@/app_modules_thermo/components/slider.vue"; import ToggleButton from "@/components/toggleButton.vue"; @Component({name:"input-termo", components:{slider:Slider, ToggleButton}}) - export default class inputTermo extends Vue{ @Prop({default:0}) @@ -16,7 +15,6 @@ export default class inputTermo extends Vue{ max:number; @Prop({default:""}) unitMeasure:string; - @Prop({default:false}) visible_abilitazione: boolean; @Prop({default:false}) @@ -24,7 +22,15 @@ export default class inputTermo extends Vue{ @Prop({default:false}) hasError_abilitazione: boolean; - abilit:boolean=false; - debugger - mockSet:number=this.setpoint; + abilit:boolean=this.enabled_abilitazione; + // mockSet:number=this.setpoint; + + get mockSet() { + return this.setpoint; + }; + + set mockSet(v: number) { + this.$emit('input', v); + }; + } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/opzioni/components/base-components/inputTermo.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/opzioni/components/base-components/inputTermo.vue index 6f072bb4..c62939cf 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/opzioni/components/base-components/inputTermo.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/opzioni/components/base-components/inputTermo.vue @@ -2,7 +2,7 @@
- +
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/opzioni/show-opzioni-info.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/opzioni/show-opzioni-info.ts index af68e837..ef52de5b 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/opzioni/show-opzioni-info.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/opzioni/show-opzioni-info.ts @@ -14,7 +14,7 @@ import Termoregolatori from "./components/termoregolatori.vue"; stepfooter: StepFooter } }) -export default class ShowQuoteVelocitaInfo extends Vue { +export default class ShowOpzioniInfo extends Vue { showOpzioni: string = "TR";