增加设置开始时间任务动态
Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
parent
c8c90b007e
commit
c966ffba9d
@ -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']) {
|
||||
|
@ -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']));
|
||||
|
Loading…
x
Reference in New Issue
Block a user