mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-19 22:58:13 +00:00
后台管理日志添加搜索
This commit is contained in:
parent
f3495a422e
commit
39f0c4a41f
@ -1 +1,42 @@
|
|||||||
<?php
namespace app\admin\controller\system;
use app\admin\controller\AuthController;
use app\admin\model\system\SystemAdmin;
use app\admin\model\system\SystemLog as LogModel;
use service\UtilService as Util;
/**
* 管理员操作记录表控制器
* Class SystemLog
* @package app\admin\controller\system
*/
class SystemLog extends AuthController
{
/**
* 显示操作记录
*/
public function index(){
LogModel::deleteLog();
$where = Util::getMore([
['pages',''],
['path',''],
['ip',''],
['admin_id',''],
['data',''],
],$this->request);
$where['level'] = $this->adminInfo['level'];
$this->assign('where',$where);
$this->assign('admin',SystemAdmin::getOrdAdmin('id,real_name',$this->adminInfo['level']));
$this->assign(LogModel::systemPage($where));
return $this->fetch();
}
}
|
<?php
|
||||||
|
|
||||||
|
namespace app\admin\controller\system;
|
||||||
|
|
||||||
|
use app\admin\controller\AuthController;
|
||||||
|
use app\admin\model\system\SystemAdmin;
|
||||||
|
use app\admin\model\system\SystemLog as LogModel;
|
||||||
|
use service\UtilService as Util;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 管理员操作记录表控制器
|
||||||
|
* Class SystemLog
|
||||||
|
* @package app\admin\controller\system
|
||||||
|
*/
|
||||||
|
class SystemLog extends AuthController
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 显示操作记录
|
||||||
|
*/
|
||||||
|
public function index(){
|
||||||
|
LogModel::deleteLog();
|
||||||
|
$where = Util::getMore([
|
||||||
|
['pages',''],
|
||||||
|
['path',''],
|
||||||
|
['ip',''],
|
||||||
|
['admin_id',''],
|
||||||
|
['data',''],
|
||||||
|
],$this->request);
|
||||||
|
$where['level'] = $this->adminInfo['level'];
|
||||||
|
$this->assign('where',$where);
|
||||||
|
$this->assign('admin',SystemAdmin::getOrdAdmin('id,real_name',$this->adminInfo['level']));
|
||||||
|
$this->assign(LogModel::systemPage($where));
|
||||||
|
return $this->fetch();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user