mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 11:13:26 +00:00
perf: 工作包括周报模板添加下周拟定计划项
This commit is contained in:
parent
9a9d19e16c
commit
81817fbfaf
@ -340,14 +340,19 @@ class ReportController extends AbstractController
|
|||||||
} else {
|
} else {
|
||||||
$title = $user->nickname . "的日报[" . $start_time->format("Y/m/d") . "]";
|
$title = $user->nickname . "的日报[" . $start_time->format("Y/m/d") . "]";
|
||||||
}
|
}
|
||||||
|
// 生成内容
|
||||||
|
$content = '<h2>' . Base::Lang('已完成工作') . '</h2><ol>' .
|
||||||
|
$completeContent . '</ol><h2>' .
|
||||||
|
Base::Lang('未完成的工作') . '</h2><ol>' .
|
||||||
|
$unfinishedContent . '</ol>';
|
||||||
|
if ($type === Report::WEEKLY) {
|
||||||
|
$content .= "<h2>" . Base::Lang("下周拟定计划") . "[" . $start_time->addWeek()->format("m/d") . "-" . $end_time->addWeek()->format("m/d") . "]</h2><ol><li> </li></ol>";
|
||||||
|
}
|
||||||
$data = [
|
$data = [
|
||||||
"time" => $start_time->toDateTimeString(),
|
"time" => $start_time->toDateTimeString(),
|
||||||
"sign" => $sign,
|
"sign" => $sign,
|
||||||
"title" => $title,
|
"title" => $title,
|
||||||
"content" => '<h2>' . Base::Lang('已完成工作') . '</h2><ol>' .
|
"content" => $content,
|
||||||
$completeContent . '</ol><h2>' .
|
|
||||||
Base::Lang('未完成的工作') . '</h2><ol>' .
|
|
||||||
$unfinishedContent . '</ol>',
|
|
||||||
"complete_task" => $complete_task,
|
"complete_task" => $complete_task,
|
||||||
"unfinished_task" => $unfinished_task,
|
"unfinished_task" => $unfinished_task,
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user