From b0684fa03fdbe98b86b85b0fbedb3ea3cfabe8bb Mon Sep 17 00:00:00 2001 From: = Date: Thu, 25 Jun 2020 16:44:32 +0200 Subject: [PATCH] algoritmo di posizionamento verticale gantt con ottimizzazione delle posizioni in riga. --- .../components/gantt/gantt-component.ts | 8 ++- .../components/gantt/gantt-component.vue | 22 ++++++- .../processo/components/gantt/gantt-row.ts | 63 +++++++++++++------ .../processo/components/gantt/gantt.css | 18 ++++-- .../processo/components/gantt/gantt.less | 18 ++++-- .../processo/components/gantt/gantt.ts | 10 +-- .../processo/components/gantt/gantt.vue | 6 +- 7 files changed, 105 insertions(+), 40 deletions(-) diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-component.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-component.ts index 615a2de0..11c19d8c 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-component.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-component.ts @@ -45,7 +45,11 @@ export default class GanttComponent extends Vue { return this.value.showDelay ? Math.max(this.value.estimatedDelay / 1000, this.ganttOptions.block_delay_minDuration) : 0; } - mounted() { - this.value.showDelay = true; + get statusDuration() { + return this.showStatus ? this.ganttOptions.block_status_minDuration : 0; } + + // mounted() { + // this.value.showDelay = true; + // } } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-component.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-component.vue index 9c4605b5..492c8ae7 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-component.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-component.vue @@ -2,7 +2,7 @@ @@ -34,8 +34,26 @@ + + + + +
{{value.label | localize(value.label)}}
+
+ + +
-