增加设置开始时间任务动态

Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
vilson 2019-06-16 06:02:44 +08:00
parent c8c90b007e
commit c966ffba9d
2 changed files with 14 additions and 0 deletions

View File

@ -110,6 +110,12 @@ class Task extends CommonModel
if (isset($data['pri'])) {
$type = 'pri';
}
if (isset($data['begin_time'])) {
$type = 'setBeginTime';
if (!$data['begin_time']) {
$type = 'clearBeginTime';
}
}
if (isset($data['end_time'])) {
$type = 'setEndTime';
if (!$data['end_time']) {

View File

@ -114,6 +114,14 @@ class Task
$icon = 'user-delete';
$remark = '移除了参与者 ' . $toMember['name'];
break;
case 'setBeginTime':
$icon = 'calendar';
$remark = '更新开始时间为 ' . date('m月d日 H:i', strtotime($task['begin_time']));
break;
case 'clearBeginTime':
$icon = 'calendar';
$remark = '清除了开始时间 ';
break;
case 'setEndTime':
$icon = 'calendar';
$remark = '更新截止时间为 ' . date('m月d日 H:i', strtotime($task['end_time']));