diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/components/numeric.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/components/numeric.ts index 5f5bde4a..a823197f 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/components/numeric.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/components/numeric.ts @@ -1,3 +1,4 @@ +import { TimeLineChartHeader } from "@/components/timeline-chart"; import { debounce } from "@/_base/debounce"; import Vue from "vue"; import Component from "vue-class-component"; @@ -103,6 +104,8 @@ export default class Numeric extends Vue { this.focused = false; this.value.setpointHMI = this.setPoint.setpointHMI; }) + + this.$emit("update", this.setPoint.setpointHMI); } } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/tables/outputTab/output-row-item.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/tables/outputTab/output-row-item.ts index 4c2a0116..9b0deb27 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/tables/outputTab/output-row-item.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/tables/outputTab/output-row-item.ts @@ -1,6 +1,7 @@ import Component from "vue-class-component"; import Vue from "vue"; -import { Prop } from "vue-property-decorator"; +import { Prop, Watch } from "vue-property-decorator"; +import { underTheHoodService } from "@/services/underTheHoodService"; @Component({}) export default class outputRow extends Vue { @@ -14,4 +15,19 @@ export default class outputRow extends Vue { @Prop() group: string; + + get forcedValue() { return { setpointHMI: this.item.forcedValue, range: { min: -32768, max: 32767 } }; } + + + forceValueChanged(n) { + this.force(n); + } + + async force(value: number) { + await underTheHoodService.forceChannel(this.group, this.item, value); + } + + async reset() { + await underTheHoodService.resetChannel(this.group, this.item); + } } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/tables/outputTab/output-row-item.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/tables/outputTab/output-row-item.vue index b0be6e31..da7ae59e 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/tables/outputTab/output-row-item.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/tables/outputTab/output-row-item.vue @@ -38,21 +38,29 @@ OFF - - {{item.value}} - - -
-
- - + +