|
|
|
@ -128,12 +128,16 @@ function getProgressLine() {
|
|
|
|
|
realDurations = cumulativeRealDurations; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
if (Math.floor(maxReal) > 100 || Math.floor(maxPlan) > 100) { |
|
|
|
|
if (Math.floor(maxReal) > 110 || Math.floor(maxPlan) > 110) { |
|
|
|
|
plannedDurations = plannedDurations.map((item) => { |
|
|
|
|
return item / maxPlan * 100; |
|
|
|
|
}) |
|
|
|
|
realDurations = realDurations.map((item) => { |
|
|
|
|
if (maxPlan >= 200) { |
|
|
|
|
return item / maxPlan * 100; |
|
|
|
|
} else { |
|
|
|
|
return item / maxReal * 100; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|