| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace app\admin\controller\system;
- use app\admin\logic\SystemLogLogic;
- use app\common\model\SystemLog;
- use app\common\controller\AdminController;
- use EasyAdmin\annotation\ControllerAnnotation;
- use EasyAdmin\annotation\NodeAnotation;
- use think\App;
- /**
- * @ControllerAnnotation(title="操作日志管理")
- * Class Auth
- * @package app\admin\controller\system
- */
- class Log extends AdminController
- {
- public function __construct(App $app)
- {
- parent::__construct($app);
- $this->model = new SystemLog();
- }
- /**
- * @NodeAnotation(title="列表")
- */
- public function index()
- {
- if ($this->request->isAjax()) {
- if (input('selectFields')) {
- return $this->selectList();
- }
- [$page, $limit, $where, $excludeFields] = $this->buildTableParames(['month']);
- list($count, $list) = SystemLogLogic::getList($page, $limit, $where, $excludeFields, $this->sort);
- $data = [
- 'code' => 0,
- 'msg' => '',
- 'count' => $count,
- 'data' => $list,
- ];
- return json($data);
- }
- return $this->fetch();
- }
- }
|