正在显示
1 个修改的文件
包含
8 行增加
和
1 行删除
@@ -54,8 +54,15 @@ class AdminEquipmentController extends AdminBaseController{ | @@ -54,8 +54,15 @@ class AdminEquipmentController extends AdminBaseController{ | ||
54 | $where['create_time']=['between',[strtotime($param['start_time']),strtotime($param['end_time'])]]; | 54 | $where['create_time']=['between',[strtotime($param['start_time']),strtotime($param['end_time'])]]; |
55 | } | 55 | } |
56 | $Equipment=new EquipmentModel(); | 56 | $Equipment=new EquipmentModel(); |
57 | - $data=$Equipment->paginate(10); | 57 | + $data=$Equipment->where($where)->paginate(10,false,['query'=>$param]); |
58 | $this->assign('data',$data); | 58 | $this->assign('data',$data); |
59 | + $this->assign('name', isset($param['name']) ? $param['name'] : ''); | ||
60 | + $this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : ''); | ||
61 | + $this->assign('note', isset($param['note']) ? $param['note'] : ''); | ||
62 | + $this->assign('start_number', isset($param['start_number']) ? $param['start_number'] : ''); | ||
63 | + $this->assign('end_number', isset($param['end_number']) ? $param['end_number'] : ''); | ||
64 | + $this->assign('start_time', isset($param['start_time']) ? $param['start_time'] : ''); | ||
65 | + $this->assign('end_time', isset($param['end_time']) ? $param['end_time'] : ''); | ||
59 | return $this->fetch(); | 66 | return $this->fetch(); |
60 | } | 67 | } |
61 | 68 |
-
请 注册 或 登录 后发表评论