更新任务工时
This commit is contained in:
parent
387666ea23
commit
591482ad16
|
@ -150,11 +150,11 @@ class ProjectTask extends ApiController
|
|||
} else {
|
||||
$this->apiError('删除失败');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function task_time() {
|
||||
if (request()->isAjax()) {
|
||||
$this->checkAuth();
|
||||
$this->uid = JWT_UID;
|
||||
$param = get_params();
|
||||
$tid = isset($param['tid']) ? $param['tid'] : 0;
|
||||
$where = [];
|
||||
|
@ -168,8 +168,8 @@ class ProjectTask extends ApiController
|
|||
} else {
|
||||
$where[] = ['a.admin_id', '=', $this->uid];
|
||||
}
|
||||
if (!empty($param['keywords'])) {
|
||||
$where[] = ['a.title', 'like', '%' . trim($param['keywords']) . '%'];
|
||||
if (!empty($param['keyword'])) {
|
||||
$where[] = ['a.title', 'like', '%' . trim($param['keyword']) . '%'];
|
||||
}
|
||||
//按时间检索
|
||||
if (!empty($param['diff_time'])) {
|
||||
|
@ -202,12 +202,9 @@ class ProjectTask extends ApiController
|
|||
$item->end_time_a = empty($item->end_time) ? '' : date('Y-m-d', $item->end_time);
|
||||
$item->end_time_b = empty($item->end_time) ? '' : date('H:i', $item->end_time);
|
||||
$item->start_time = empty($item->start_time) ? '' : date('Y-m-d H:i', $item->start_time);
|
||||
//$item->end_time = empty($item->end_time) ? '': date('Y-m-d H:i', $item->end_time);
|
||||
$item->end_time = empty($item->end_time) ? '' : date('H:i', $item->end_time);
|
||||
});
|
||||
return table_assign(0, '', $schedule);
|
||||
} else {
|
||||
return view();
|
||||
}
|
||||
$this->apiSuccess('删除成功', $schedule);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue