feature: 面板
This commit is contained in:
parent
3b3c95b5e0
commit
ed1a1163a4
|
|
@ -110,19 +110,24 @@ class Dashboard extends Backend
|
|||
public function task()
|
||||
{
|
||||
|
||||
$dateTime = \date('Y-m-d H:i:s');
|
||||
|
||||
$dayTasks = (new Task())
|
||||
->where('exec_admin_id','=',$this->auth->id)
|
||||
->where('type','=',1)
|
||||
->where('expire_end_time','>=', $dateTime)
|
||||
->select();
|
||||
|
||||
$weekTasks = (new Task())
|
||||
->where('exec_admin_id','=',$this->auth->id)
|
||||
->where('type','=',2)
|
||||
->where('expire_end_time','>=', $dateTime)
|
||||
->select();
|
||||
|
||||
$monthTasks = (new Task())
|
||||
->where('exec_admin_id','=',$this->auth->id)
|
||||
->where('type','=',3)
|
||||
->where('expire_end_time','>=', $dateTime)
|
||||
->select();
|
||||
|
||||
$this->view->assign('day', $dayTasks);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user