mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
修改注释
This commit is contained in:
parent
62a20e23d3
commit
108df7abce
@ -40,7 +40,7 @@ class Base extends Controller
|
||||
SystemBase::mQuery()->layTable(function () {
|
||||
$this->title = '数据字典管理';
|
||||
$this->types = SystemBase::mk()->types();
|
||||
$this->type = input('get.type') ?: ($this->types[0] ?? '-');
|
||||
$this->type = input('get.type', $this->types[0] ?? '-');
|
||||
}, function (QueryHelper $query) {
|
||||
$query->where(['deleted' => 0])->equal('type');
|
||||
$query->like('code,name,status')->dateBetween('create_at');
|
||||
|
@ -41,7 +41,7 @@ class Menu extends Controller
|
||||
public function index()
|
||||
{
|
||||
$this->title = '系统菜单管理';
|
||||
$this->type = input('type', 'index');
|
||||
$this->type = input('get.type', 'index');
|
||||
SystemMenu::mQuery()->order('sort desc,id asc')->page(false, true);
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ class Oplog extends Controller
|
||||
{
|
||||
SystemOplog::mQuery()->layTable(function () {
|
||||
$this->title = '系统日志管理';
|
||||
$columns = SystemOplog::mk()->column('username,action', 'id');
|
||||
$columns = SystemOplog::mk()->column('action,username', 'id');
|
||||
$this->users = array_unique(array_column($columns, 'username'));
|
||||
$this->actions = array_unique(array_column($columns, 'action'));
|
||||
}, function (QueryHelper $query) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user