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
83aeadd4
Commit
83aeadd4
authored
Jan 25, 2018
by
zfc
Committed by
hujun
Mar 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑5
parent
7c4d7891
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
Auth.php
application/index/controller/Auth.php
+4
-0
auth_rule_box.js
public/resource/js/auth_rule_box.js
+20
-0
No files found.
application/index/controller/Auth.php
View file @
83aeadd4
...
...
@@ -233,8 +233,12 @@ class Auth extends Basic
$data
[
'title'
]
=
'权限分配'
;
// echo $group_id;
// exit;
<<<<<<<
HEAD
if
(
IS_POST
&&
$group_id
=
0
)
{
>>>>>>>
8e62
fd6
...
合并test
=======
if
(
IS_POST
&&
$group_id
==
0
)
{
>>>>>>>
cb14688
...
编辑5
//添加or修改
$data
[
'id'
]
=
$group_id
;
$menu_auth
=
input
(
'post.menu_auth/a'
,
''
);
//获取所有授权菜单id
...
...
public/resource/js/auth_rule_box.js
View file @
83aeadd4
...
...
@@ -64,6 +64,26 @@ define (['doT', 'text!temp/auth_rule_box_template_tpl.html', 'css!style/home.css
}
}
});
var
id
=
getUrlParam
(
'id'
);
$
.
ajax
({
url
:
'/index/updateAuthRule/group_id/'
+
id
,
type
:
'post'
,
async
:
true
,
dataType
:
'json'
,
success
:
function
(
data
)
{
$
(
"input[name = id]"
).
val
(
data
.
data
.
id
);
$
(
"input[name = title]"
).
val
(
data
.
data
.
title
);
$
(
"input[name = name]"
).
val
(
data
.
data
.
name
);
$
(
"input[name = sort]"
).
val
(
data
.
data
.
sort
);
$
(
"#pid"
).
val
(
data
.
data
.
pid
);
if
(
data
.
data
.
is_menu
==
0
){
$
(
"#is_menu2"
).
attr
(
'checked'
,
true
);
}
else
{
$
(
"#is_menu1"
).
attr
(
'checked'
,
true
);
}
}
})
}
...
...
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