pull/323483/MERGE
Karson 2017-05-30 21:02:00 +08:00
parent 8da2b007bd
commit ee866c0c97
1 changed files with 3 additions and 2 deletions

View File

@ -26,16 +26,17 @@ class Relationmodel extends Backend
*/ */
public function index() public function index()
{ {
$this->relationSearch = true;
if ($this->request->isAjax()) if ($this->request->isAjax())
{ {
list($where, $sort, $order, $offset, $limit) = $this->buildparams(); list($where, $sort, $order, $offset, $limit) = $this->buildparams();
$total = $this->model $total = $this->model
->with("Admin") ->with("admin")
->where($where) ->where($where)
->order($sort, $order) ->order($sort, $order)
->count(); ->count();
$list = $this->model $list = $this->model
->with("Admin") ->with("admin")
->where($where) ->where($where)
->order($sort, $order) ->order($sort, $order)
->limit($offset, $limit) ->limit($offset, $limit)