From d479d9fbcb37f8b861031c94a83d0e37761210c5 Mon Sep 17 00:00:00 2001 From: colly_wyx <wangyixiong_007@163.com> Date: Tue, 29 May 2018 09:07:03 +0800 Subject: [PATCH] 修改bug --- application/modules/Role/controllers/Role.php | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/application/modules/Role/controllers/Role.php b/application/modules/Role/controllers/Role.php index bcc4cb8..24298b3 100644 --- a/application/modules/Role/controllers/Role.php +++ b/application/modules/Role/controllers/Role.php @@ -18,9 +18,11 @@ if($this->getRequest()->isXmlHttpRequest()){ $total = $this->role_service->getRoleListTotal(); $data['draw'] = !empty($_REQUEST['draw'])?$_REQUEST['draw']:1; + $data['start'] = !empty($_REQUEST['start'])?$_REQUEST['start']:0; + $data['length'] = !empty($_REQUEST['length'])?$_REQUEST['length']:10; $data['recordsTotal'] = $total; $data['recordsFiltered'] = $total; - $data['data'] = $this->role_service->getRoleList(); + $data['data'] = $this->role_service->getRoleList(array(), array(), array(), $data['length'], $data['start']); exit($this->sendToDataTable($data)); } } -- Gitblit v1.8.0