|
@ -54,7 +54,9 @@ class index extends publicBase { |
|
|
$user_info = $this->get_user_info(); |
|
|
$user_info = $this->get_user_info(); |
|
|
if (!$user_info['is_super_admin']) $this->ajax_json(false, '您还有此权限'); |
|
|
if (!$user_info['is_super_admin']) $this->ajax_json(false, '您还有此权限'); |
|
|
|
|
|
|
|
|
$condition = array('is_super_admin' => ADMIN_USER_NOT_SUPER); |
|
|
$condition = array('aid'=>$user_info['aid']); |
|
|
|
|
|
if ($user_info['aid'] == 0) $condition = array(); |
|
|
|
|
|
|
|
|
$cur_page = $this->post('currentPage') ? $this->post('currentPage') : 1; |
|
|
$cur_page = $this->post('currentPage') ? $this->post('currentPage') : 1; |
|
|
$page_size = $this->post('pageSize') ? $this->post('pageSize') : 20; |
|
|
$page_size = $this->post('pageSize') ? $this->post('pageSize') : 20; |
|
|
|
|
|
|
|
@ -68,6 +70,7 @@ class index extends publicBase { |
|
|
'last_page' => ceil($total / $page_size), |
|
|
'last_page' => ceil($total / $page_size), |
|
|
'cur_page' => $cur_page, |
|
|
'cur_page' => $cur_page, |
|
|
'list' => $user_list, |
|
|
'list' => $user_list, |
|
|
|
|
|
'aid' => $user_info['aid'], |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
$this->ajax_json(true, '获取成功', $rdata); |
|
|
$this->ajax_json(true, '获取成功', $rdata); |
|
|