4.0日常更新

This commit is contained in:
2019-10-08 16:34:17 +08:00
parent 07faf60918
commit e8795716ec
16 changed files with 177 additions and 211 deletions

View File

@@ -18,19 +18,16 @@ class Seo extends Admin{
* @title 系统首页
*/
public function index(SeoRule $seo){
//读取规则列表
$map = array('status' => array('=', 0));
if($this->request->isAjax()){
//读取规则列表
$map = array('status' => array('=', 0));
$list = $seo->where($map)->order('sort asc')->paginate(10, false, array(
'query' => $this->request->param()
));
$res = $seo->where($map)->order('sort asc')->paginate($this->request->pageConfig);
$this->data['data'] = array(
'list' => $list,
'page' => $list->render()
);
return $this->data;
$this->data['data'] = $res->toArray();
return $this->data;
}
}
/**