diff --git a/app/admin/controller/Menu.php b/app/admin/controller/Menu.php index 06c801c77..5bb0083e1 100644 --- a/app/admin/controller/Menu.php +++ b/app/admin/controller/Menu.php @@ -42,7 +42,7 @@ class Menu extends Controller { $this->title = '系统菜单管理'; $this->type = input('get.type', 'index'); - SystemMenu::mQuery()->order('sort desc,id asc')->page(false, true); + SystemMenu::mQuery()->order('sort desc,id asc')->layTable();//->page(false, true); } /** @@ -131,7 +131,6 @@ class Menu extends Controller */ public function state() { - $this->_applyFormToken(); SystemMenu::mSave($this->_vali([ 'status.in:0,1' => '状态值范围异常!', 'status.require' => '状态值不能为空!', @@ -144,7 +143,6 @@ class Menu extends Controller */ public function remove() { - $this->_applyFormToken(); SystemMenu::mDelete(); } } diff --git a/app/admin/view/menu/index.html b/app/admin/view/menu/index.html index 6bb65e5cd..04965df38 100644 --- a/app/admin/view/menu/index.html +++ b/app/admin/view/menu/index.html @@ -2,7 +2,7 @@ {block name="button"} - + @@ -25,78 +25,102 @@ {/if}{/foreach}
- - | -- - | -- | - - | - | |
---|---|---|---|---|---|
- - | -- - | -- | {$vo.spl|raw}{$vo.title} | - -{eq name='vo.status' value='0'}已禁用{else}已激活{/eq} | -- - {if isset($type) and $type eq 'index'} - - {if auth("add")} - - 添 加 - - 添 加 - - {/if} - - - 编 辑 - - - - 禁 用 - - - {else} - - - 激 活 - - - - 删 除 - - - - 删 除 - - - {/if} - | -