log 展示
This commit is contained in:
@@ -9,7 +9,7 @@ abstract class Base extends Controller
|
||||
{
|
||||
use ControllerTrait;
|
||||
|
||||
protected $limit = 20;
|
||||
protected $limit = 10;
|
||||
|
||||
protected $page = 1;
|
||||
|
||||
@@ -32,7 +32,6 @@ abstract class Base extends Controller
|
||||
unset($params[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
$this->start = $this->start();
|
||||
}
|
||||
|
||||
|
30
application/admin/controller/Log.php
Normal file
30
application/admin/controller/Log.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Administrator
|
||||
* Date: 2019/1/18
|
||||
* Time: 9:01
|
||||
*/
|
||||
namespace app\admin\controller;
|
||||
|
||||
use app\model\LogRecordModel;
|
||||
|
||||
class Log extends Base
|
||||
{
|
||||
/**
|
||||
* 日志列表
|
||||
*
|
||||
* @time at 2019年01月18日
|
||||
* @param LogRecordModel $logRecordModel
|
||||
* @return mixed
|
||||
*/
|
||||
public function index(LogRecordModel $logRecordModel)
|
||||
{
|
||||
$params = $this->request->param();
|
||||
$this->checkParams($params);
|
||||
|
||||
$this->list = $logRecordModel->getAll($params, $this->limit);
|
||||
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user