SystemLog.php 954 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace app\admin\controller\system;
  3. use app\admin\controller\AuthController;
  4. use app\admin\model\system\SystemAdmin;
  5. use app\admin\model\system\SystemLog as LogModel;
  6. use crmeb\services\UtilService as Util;
  7. /**
  8. * 管理员操作记录表控制器
  9. * Class SystemLog
  10. * @package app\admin\controller\system
  11. */
  12. class SystemLog extends AuthController
  13. {
  14. /**
  15. * 显示操作记录
  16. */
  17. public function index()
  18. {
  19. LogModel::deleteLog();
  20. $where = Util::getMore([
  21. ['pages', ''],
  22. ['path', ''],
  23. ['ip', ''],
  24. ['admin_id', ''],
  25. ['data', ''],
  26. ], $this->request);
  27. $where['level'] = $this->adminInfo['level'];
  28. $this->assign('where', $where);
  29. $this->assign('admin', SystemAdmin::getOrdAdmin('id,real_name', $this->adminInfo['level']));
  30. $this->assign(LogModel::systemPage($where));
  31. return $this->fetch();
  32. }
  33. }