瀏覽代碼

修改注释

邹景立 3 年之前
父節點
當前提交
108df7abce
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      app/admin/controller/Base.php
  2. 1 1
      app/admin/controller/Menu.php
  3. 1 1
      app/admin/controller/Oplog.php

+ 1 - 1
app/admin/controller/Base.php

@@ -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');

+ 1 - 1
app/admin/controller/Menu.php

@@ -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);
     }
 

+ 1 - 1
app/admin/controller/Oplog.php

@@ -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) {