diff --git a/app/admin/controller/Menu.php b/app/admin/controller/Menu.php index 2652d64cd..0d01ae7f0 100644 --- a/app/admin/controller/Menu.php +++ b/app/admin/controller/Menu.php @@ -46,12 +46,8 @@ class Menu extends Controller public function index() { $this->title = '系统菜单管理'; - $query = $this->_query($this->table); - // 状态选项卡处理 $this->type = input('type', 'index'); - if ($this->type === 'index') $query->where(['status' => 1]); - // 数据查询与分页 - $query->page(false, true); + $this->_query($this->table)->page(false, true); } /** diff --git a/app/admin/view/menu/index.html b/app/admin/view/menu/index.html index 3b3019f4e..b855c2bd7 100644 --- a/app/admin/view/menu/index.html +++ b/app/admin/view/menu/index.html @@ -41,7 +41,7 @@
{foreach $list as $key=>$vo} -