Commit 45e16670 authored by zfc's avatar zfc

规则界面显示隐藏项

parent 2e848cae
......@@ -313,7 +313,7 @@ class Auth extends Basic
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
//条件
$field="a.id,a.name,a.title,a.depend_flag,a.type,a.pid,a.icon,a.sort,if(a.is_menu,'是','否')is_menu,a.status,ifnull(b.title,'顶级') as title2";
$where='a.status=1';
$where='a.status in(0,1)';
$search=$params['search'];
if(!empty($search)){
$where.=" and a.id='$search' or a.name like '%$search%' ";
......
......@@ -96,7 +96,7 @@ Route::group('index', [
'updateAuthRule'=>['index/auth/updateAuthRule', ['method' => 'get|post']], //--编辑规则接口
'authClass'=>['index/auth/authClass', ['method' => 'get']], //--规则分类列表
'navigation'=>['index/Basic/navigation', ['method' => 'get']], //--规则分类列表
'updateRoleStatus'=>['index/auth/updateRoleStatus', ['method' => 'get']], //--规则编辑【接口】
'updateRoleStatus'=>['index/auth/updateRoleStatus', ['method' => 'post']], //--规则编辑【接口】
'agent'=>['index/agent/agent', ['method' => 'get']], //首页列表界面
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment