调整燃尽图基线计算方式
Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
parent
8062998e33
commit
1b3e336072
@ -51,12 +51,12 @@ class ProjectReport extends CommonModel
|
||||
}
|
||||
}
|
||||
if ($max) {
|
||||
$each = ceil($max / ($day - 1));
|
||||
$each = round($max / ($day - 1), 1);
|
||||
$current = $max;
|
||||
for ($i = 1; $i <= $day; $i++) {
|
||||
($current < 0 || $day == $i) && $current = 0;
|
||||
$baseLineList[] = $current;
|
||||
$current -= $each;
|
||||
$current < 0 && $current = 0;
|
||||
}
|
||||
}
|
||||
return ['date' => $dateList, 'task' => $taskList, 'undoneTask' => $undoneTaskList, 'baseLineList' => $baseLineList];
|
||||
|
Loading…
x
Reference in New Issue
Block a user