diff --git a/app/admin/controller/Menu.php b/app/admin/controller/Menu.php
index 3fd09c8c1..2652d64cd 100644
--- a/app/admin/controller/Menu.php
+++ b/app/admin/controller/Menu.php
@@ -46,7 +46,12 @@ class Menu extends Controller
public function index()
{
$this->title = '系统菜单管理';
- $this->_page($this->table, false);
+ $query = $this->_query($this->table);
+ // 状态选项卡处理
+ $this->type = input('type', 'index');
+ if ($this->type === 'index') $query->where(['status' => 1]);
+ // 数据查询与分页
+ $query->page(false, true);
}
/**
diff --git a/app/admin/view/menu/index.html b/app/admin/view/menu/index.html
index 6cc42552d..3b3019f4e 100644
--- a/app/admin/view/menu/index.html
+++ b/app/admin/view/menu/index.html
@@ -11,63 +11,73 @@
{/block}
{block name="content"}
-
- {empty name='list'}
-
没 有 记 录 哦!
- {else}
-
- {/empty}
+
+
+ {foreach ['index'=>'当前菜单','recycle'=>'回 收 站'] as $k=>$v}
+ {if isset($type) and $type eq $k}
+ - {$v}
+ {else}
+ - {$v}
+ {/if}{/foreach}
+
+
+ {empty name='list'}
+
没 有 记 录 哦!
+ {else}
+
+ {/empty}
+
{/block}