正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
@@ -26,16 +26,17 @@ class Relationmodel extends Backend | @@ -26,16 +26,17 @@ class Relationmodel extends Backend | ||
26 | */ | 26 | */ |
27 | public function index() | 27 | public function index() |
28 | { | 28 | { |
29 | + $this->relationSearch = true; | ||
29 | if ($this->request->isAjax()) | 30 | if ($this->request->isAjax()) |
30 | { | 31 | { |
31 | list($where, $sort, $order, $offset, $limit) = $this->buildparams(); | 32 | list($where, $sort, $order, $offset, $limit) = $this->buildparams(); |
32 | $total = $this->model | 33 | $total = $this->model |
33 | - ->with("Admin") | 34 | + ->with("admin") |
34 | ->where($where) | 35 | ->where($where) |
35 | ->order($sort, $order) | 36 | ->order($sort, $order) |
36 | ->count(); | 37 | ->count(); |
37 | $list = $this->model | 38 | $list = $this->model |
38 | - ->with("Admin") | 39 | + ->with("admin") |
39 | ->where($where) | 40 | ->where($where) |
40 | ->order($sort, $order) | 41 | ->order($sort, $order) |
41 | ->limit($offset, $limit) | 42 | ->limit($offset, $limit) |
-
请 注册 或 登录 后发表评论