add
This commit is contained in:
parent
88da95ee13
commit
e401393ad3
|
@ -131,9 +131,9 @@ class UserController extends BaseAdminController
|
||||||
public function villageInfoList()
|
public function villageInfoList()
|
||||||
{
|
{
|
||||||
//分页
|
//分页
|
||||||
$pageNo = $this->request->get('page_no',1);
|
$page_no = $this->request->get('page_no',1);
|
||||||
$pageSize = $this->request->get('page_size', 25);
|
$page_size = $this->request->get('page_size', 25);
|
||||||
$query = VillagerInformation::page($pageNo,$pageSize);
|
$query = VillagerInformation::page($page_no,$page_size);
|
||||||
$name = $this->request->get('name', '');
|
$name = $this->request->get('name', '');
|
||||||
$contact = $this->request->get('contact', '');
|
$contact = $this->request->get('contact', '');
|
||||||
if ($name) {
|
if ($name) {
|
||||||
|
@ -142,7 +142,9 @@ class UserController extends BaseAdminController
|
||||||
if ($contact) {
|
if ($contact) {
|
||||||
$query->where('contact', '=', $contact);
|
$query->where('contact', '=', $contact);
|
||||||
}
|
}
|
||||||
|
|
||||||
$list = $query->select()->toArray();
|
$list = $query->select()->toArray();
|
||||||
return $this->success('成功', compact('list'));
|
$count = VillagerInformation::count();
|
||||||
|
return $this->success('成功', compact('list','count','page_no','page_size'));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue