From 52dd88689adc4f7255d8e1aafe5c1caddae9ccc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Mon, 12 Apr 2021 11:59:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8F=9C=E5=8D=95=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/Menu.php | 6 +----- app/admin/view/menu/index.html | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) 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} - +