diff --git a/Thermo.Active/wwwroot/assets/styles/base/riscaldi.less b/Thermo.Active/wwwroot/assets/styles/base/riscaldi.less index 76e81711..17b0594f 100644 --- a/Thermo.Active/wwwroot/assets/styles/base/riscaldi.less +++ b/Thermo.Active/wwwroot/assets/styles/base/riscaldi.less @@ -15,6 +15,10 @@ stroke: 1px solid blue; } + .thermoImage { + pointer-events: none; + } + .resistance { width: calc(100% - 4px); height: calc(100% - 4px); diff --git a/Thermo.Active/wwwroot/assets/styles/style.css b/Thermo.Active/wwwroot/assets/styles/style.css index 1d240ab9..3d18afa6 100644 --- a/Thermo.Active/wwwroot/assets/styles/style.css +++ b/Thermo.Active/wwwroot/assets/styles/style.css @@ -4799,6 +4799,9 @@ article .box .body { fill: none; stroke: 1px solid blue; } +.warmers svg .thermoImage { + pointer-events: none; +} .warmers svg .resistance { width: calc(100% - 4px); height: calc(100% - 4px); diff --git a/Thermo.Active/wwwroot/src/App.vue b/Thermo.Active/wwwroot/src/App.vue index 9730b272..23ec556a 100644 --- a/Thermo.Active/wwwroot/src/App.vue +++ b/Thermo.Active/wwwroot/src/App.vue @@ -31,6 +31,7 @@ + diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/resistance.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/resistance.ts index 6df9d8cf..dadb9ad4 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/resistance.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/resistance.ts @@ -39,7 +39,11 @@ export default class Resistance extends Vue { @Prop({ default: 0 }) mode: number; + @Prop({ default: false }) + isThermoProphet: boolean; + click() { + console.log('click') if (this.editable) this.$emit('click'); } @@ -90,21 +94,24 @@ export default class Resistance extends Vue { } get currentColor() { - if (this.selected) return this.currentSelectedColor; - return this.currentStandardColor; - } - - get currentColorTemp() { - if (this.selected) return this.currentSelectedTempColor; - return this.currentStandardTempColor; + if(!this.isThermoProphet) + { + if (this.selected) return this.currentSelectedColor; + return this.currentStandardColor; + } + else + { + if (this.selected) return this.currentSelectedTempColor; + return this.currentStandardTempColor; + } } getBoard(id) { - return Math.floor((id - 1) / 16); + return Math.floor((id - 1) / 16) + 1; } getOutput(id) { - return Math.floor((id - 1) % 16); + return Math.floor((id - 1) % 16) + 1; } get currentSelectedColor() { diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/resistance.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/resistance.vue index 1244e901..05e66274 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/resistance.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/resistance.vue @@ -15,6 +15,14 @@ v-on:touchend="click" :style="{backgroundColor:`rgb(${currentColor})`}" >{{channel.tCamTempSet}} °C +
{{channel.actualCurrent}} W
ID: {{getOutput(channel.idChannel)}} Bo: {{getBoard(channel.idChannel)}} diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-inferiori.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-inferiori.ts index dd97c96f..0991c3d2 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-inferiori.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-inferiori.ts @@ -17,8 +17,9 @@ export default class RiscaldiInferiori extends Vue { selectedChannelIds: number[] = []; uniformChannelValue = 0; + resistanceMode = 1; - beforeMount(){ + beforeMount() { this.uniformChannelValue = -1; } @@ -28,8 +29,8 @@ export default class RiscaldiInferiori extends Vue { selectionMethod = "none"; - changedSelectValue(v){ - if(this.uniformChannelValue>=0) + changedSelectValue(v) { + if (this.uniformChannelValue >= 0) for (const c of this.selectedChannels) c.setpointHMI = this.uniformChannelValue; this.$emit("warmersChanged"); } @@ -45,7 +46,7 @@ export default class RiscaldiInferiori extends Vue { (this.$refs.warmers as any).zoomReset(); } - autocomposite(){ + autocomposite() { (this.$refs.warmers as any).automate(); this.$emit("warmersChanged"); } @@ -56,7 +57,7 @@ export default class RiscaldiInferiori extends Vue { } remove5() { - for (const c of this.selectedChannels) c.setpointHMI = Math.min(Math.max(parseFloat(c.setpointHMI.toString()) - 5, 0), 100); + for (const c of this.selectedChannels) c.setpointHMI = Math.min(Math.max(parseFloat(c.setpointHMI.toString()) - 5, 0), 100); this.$emit("warmersChanged"); } diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-inferiori.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-inferiori.vue index 09bad49b..7ab7619b 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-inferiori.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-inferiori.vue @@ -98,20 +98,39 @@ -
- - - +
+
+ + + +
+ +
+ + + +
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-superiori.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-superiori.ts index de2c6ccb..a6098955 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-superiori.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-superiori.ts @@ -16,8 +16,9 @@ export default class RiscaldiSuperiori extends Vue { selectedChannelIds: number[] = []; uniformChannelValue: number = -1; + resistanceMode = 1; - beforeMount(){ + beforeMount() { this.uniformChannelValue = -1; } @@ -25,20 +26,20 @@ export default class RiscaldiSuperiori extends Vue { get selectedChannels(): Warmers.IChannel[] { return store.state.warmers.channels.filter(i => this.selectedChannelIds.indexOf(i.idChannel) >= 0); } - + get thermoCamModeEnabled(): boolean { return store.state.warmers.tCamStatus.thermoCamMode; } selectionMethod = "none" - changedSelectValue(v){ - if(this.uniformChannelValue>=0) + changedSelectValue(v) { + if (this.uniformChannelValue >= 0) for (const c of this.selectedChannels) c.setpointHMI = this.uniformChannelValue; this.$emit("warmersChanged"); } - + zoomIn() { (this.$refs.warmers as any).zoomIn(); } @@ -50,7 +51,7 @@ export default class RiscaldiSuperiori extends Vue { (this.$refs.warmers as any).zoomReset(); } - autocomposite(){ + autocomposite() { (this.$refs.warmers as any).automate(); this.$emit("warmersChanged"); } diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-superiori.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-superiori.vue index bb5d42ad..4ce4d590 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-superiori.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/riscaldi-superiori.vue @@ -1,7 +1,7 @@