Merge branch 'develop' of https://bitbucket.org/ncarminati/cms_thermo_active into feature/recipe
This commit is contained in:
+2
-2
@@ -34,7 +34,7 @@ export default class GanttComponent extends Vue {
|
||||
case 5: value = this.ganttOptions.block_body_Cooling_minDuration;
|
||||
case 6: value = this.ganttOptions.block_body_Extraction_minDuration;
|
||||
}
|
||||
return Math.max(value, this.value.estimatedDuration / 1000);
|
||||
return Math.max(value, this.value.estimatedDuration);
|
||||
}
|
||||
|
||||
get showStatus() {
|
||||
@@ -42,7 +42,7 @@ export default class GanttComponent extends Vue {
|
||||
}
|
||||
|
||||
get delayDuration() {
|
||||
return this.value.showDelay ? Math.max(this.value.estimatedDelay / 1000, this.ganttOptions.block_delay_minDuration) : 0;
|
||||
return this.value.showDelay ? Math.max(this.value.estimatedDelay, this.ganttOptions.block_delay_minDuration) : 0;
|
||||
}
|
||||
|
||||
get actualDelay() {
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
</foreignObject>
|
||||
<foreignObject :width="delayDuration * ganttOptions.secondSize" height="26" x="0" y="44">
|
||||
<div class="delay-footer">{{(value.estimatedDelay / 1000) | round(1)}}s</div>
|
||||
<div class="delay-footer">{{(value.estimatedDelay ) | round(1)}}s</div>
|
||||
</foreignObject>
|
||||
<line
|
||||
class="vertical-line"
|
||||
@@ -34,7 +34,7 @@
|
||||
<div class="body-header">{{value.label | localize(value.label)}}</div>
|
||||
</foreignObject>
|
||||
<foreignObject :width="duration * ganttOptions.secondSize" height="26" x="0" y="44">
|
||||
<div class="body-footer">{{(value.estimatedDuration / 1000) | round(1)}}s</div>
|
||||
<div class="body-footer">{{(value.estimatedDuration ) | round(1)}}s</div>
|
||||
</foreignObject>
|
||||
<line
|
||||
v-if="showStatus"
|
||||
|
||||
@@ -81,7 +81,7 @@ function blockEndPosition(block: server.Modblock, blocks: server.Modblock[], opt
|
||||
function blockDuration(block: server.Modblock, options: IGanttOptions, includeDelay: boolean) {
|
||||
let duration = 0;
|
||||
if (block.showDelay)
|
||||
duration += Math.max(block.estimatedDelay / 1000, includeDelay ? options.block_delay_minDuration : 0);
|
||||
duration += Math.max(block.estimatedDelay, includeDelay ? options.block_delay_minDuration : 0);
|
||||
|
||||
// check della durata del blocco in base al tipo
|
||||
var minduration = 0;
|
||||
@@ -94,7 +94,7 @@ function blockDuration(block: server.Modblock, options: IGanttOptions, includeDe
|
||||
case 5: minduration = options.block_body_Cooling_minDuration;
|
||||
case 6: minduration = options.block_body_Extraction_minDuration;
|
||||
}
|
||||
duration += Math.max(minduration, block.estimatedDuration / 1000);
|
||||
duration += Math.max(minduration, block.estimatedDuration);
|
||||
|
||||
|
||||
if (block.idParam > 0 && includeDelay)
|
||||
|
||||
Reference in New Issue
Block a user