Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
45e16670
Commit
45e16670
authored
Feb 01, 2018
by
zfc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
规则界面显示隐藏项
parent
2e848cae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Auth.php
application/index/controller/Auth.php
+1
-1
route.php
application/route.php
+1
-1
No files found.
application/index/controller/Auth.php
View file @
45e16670
...
@@ -313,7 +313,7 @@ class Auth extends Basic
...
@@ -313,7 +313,7 @@ class Auth extends Basic
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$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"
;
$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'
];
$search
=
$params
[
'search'
];
if
(
!
empty
(
$search
)){
if
(
!
empty
(
$search
)){
$where
.=
" and a.id='
$search
' or a.name like '%
$search
%' "
;
$where
.=
" and a.id='
$search
' or a.name like '%
$search
%' "
;
...
...
application/route.php
View file @
45e16670
...
@@ -96,7 +96,7 @@ Route::group('index', [
...
@@ -96,7 +96,7 @@ Route::group('index', [
'updateAuthRule'
=>
[
'index/auth/updateAuthRule'
,
[
'method'
=>
'get|post'
]],
//--编辑规则接口
'updateAuthRule'
=>
[
'index/auth/updateAuthRule'
,
[
'method'
=>
'get|post'
]],
//--编辑规则接口
'authClass'
=>
[
'index/auth/authClass'
,
[
'method'
=>
'get'
]],
//--规则分类列表
'authClass'
=>
[
'index/auth/authClass'
,
[
'method'
=>
'get'
]],
//--规则分类列表
'navigation'
=>
[
'index/Basic/navigation'
,
[
'method'
=>
'get'
]],
//--规则分类列表
'navigation'
=>
[
'index/Basic/navigation'
,
[
'method'
=>
'get'
]],
//--规则分类列表
'updateRoleStatus'
=>
[
'index/auth/updateRoleStatus'
,
[
'method'
=>
'
ge
t'
]],
//--规则编辑【接口】
'updateRoleStatus'
=>
[
'index/auth/updateRoleStatus'
,
[
'method'
=>
'
pos
t'
]],
//--规则编辑【接口】
'agent'
=>
[
'index/agent/agent'
,
[
'method'
=>
'get'
]],
//首页列表界面
'agent'
=>
[
'index/agent/agent'
,
[
'method'
=>
'get'
]],
//首页列表界面
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment