mirror of https://gitee.com/karson/fastadmin.git
pull/323483/MERGE
parent
8da2b007bd
commit
ee866c0c97
|
|
@ -26,16 +26,17 @@ class Relationmodel extends Backend
|
|||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->relationSearch = true;
|
||||
if ($this->request->isAjax())
|
||||
{
|
||||
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
|
||||
$total = $this->model
|
||||
->with("Admin")
|
||||
->with("admin")
|
||||
->where($where)
|
||||
->order($sort, $order)
|
||||
->count();
|
||||
$list = $this->model
|
||||
->with("Admin")
|
||||
->with("admin")
|
||||
->where($where)
|
||||
->order($sort, $order)
|
||||
->limit($offset, $limit)
|
||||
|
|
|
|||
Loading…
Reference in New Issue