SystemLog.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\admin\controller\system;
  12. use app\admin\controller\AuthController;
  13. use app\admin\model\system\SystemAdmin;
  14. use app\admin\model\system\SystemLog as LogModel;
  15. /**
  16. * 管理员操作记录表控制器
  17. * Class SystemLog
  18. * @package app\admin\controller\system
  19. */
  20. class SystemLog extends AuthController
  21. {
  22. /**
  23. * 显示操作记录
  24. */
  25. public function index()
  26. {
  27. LogModel::deleteLog();
  28. $where = parent::getMore([
  29. ['pages', ''],
  30. ['admin_id', ''],
  31. ['data', ''],
  32. ], $this->request);
  33. $where['level'] = $this->adminInfo['level'];
  34. $this->assign('where', $where);
  35. $this->assign('admin', SystemAdmin::getOrdAdmin('id,real_name', $this->adminInfo['level']));
  36. $this->assign(LogModel::systemPage($where));
  37. return $this->fetch();
  38. }
  39. }