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
049e5859
Commit
049e5859
authored
Jun 08, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户列表修改
parent
01a1c286
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
9 deletions
+14
-9
auth_rule_index.html
application/index/view/auth/auth_rule_index.html
+2
-2
users_list.html
application/index/view/member/users_list.html
+1
-1
auth_rule_index.js
public/resource/js/auth_rule_index.js
+10
-5
auth_rule_index_template_tpl.html
public/resource/template/auth_rule_index_template_tpl.html
+1
-1
No files found.
application/index/view/auth/auth_rule_index.html
View file @
049e5859
...
...
@@ -8,7 +8,7 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li><a
href=
"#"
>
权限管理
</a></li>
<li
class=
"active"
>
新增
66
</li>
<li
class=
"active"
>
新增
</li>
<div
class=
"pull-right"
>
<ul
class=
"bread_btn"
>
<li>
...
...
@@ -88,7 +88,7 @@
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
上级菜单:
</label>
<select
class=
"form-control btn6"
name=
"pid"
id=
"pid"
>
<select
class=
"form-control btn6"
name=
"pid
2
"
id=
"pid"
>
</select>
</div>
...
...
application/index/view/member/users_list.html
View file @
049e5859
...
...
@@ -276,7 +276,7 @@
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
性别:
</label>
<div
class=
"col-sm-9"
>
<select
class=
"form-control btn6"
id=
"user_sex"
>
<option
value=
"0"
class=
"successModel"
>
性别
</option>
<option
value=
"0"
class=
"successModel"
>
请选择
</option>
<option
value=
"1"
>
男
</option>
<option
value=
"2"
>
女
</option>
</select>
...
...
public/resource/js/auth_rule_index.js
View file @
049e5859
...
...
@@ -14,8 +14,9 @@ authRule={
});
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
authRule
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
authRule
.
Edid_add
();
authRule
.
Edit
();
authRule
.
Edid_add
(
function
(){
authRule
.
Edit
();
});
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交编辑
authRule
.
Submit_edit
();
...
...
@@ -61,7 +62,8 @@ authRule={
});
},
Edid_add
:
function
(){
Edid_add
:
function
(
fn
){
$
.
ajax
({
url
:
'/index/classList/type/1'
,
//获取后台菜单
type
:
'GET'
,
...
...
@@ -72,9 +74,11 @@ authRule={
var
temp
=
document
.
getElementById
(
'auth_class_tpl'
).
innerHTML
;
var
doTempl
=
doT
.
template
(
temp
);
$
(
"#pid"
).
html
(
doTempl
(
data
.
data
));
//赋值
fn
&&
fn
();
//加载完模板 在修改dom
}
});
},
Edit
:
function
(){
//获取
$
.
ajax
({
'type'
:
'GET'
,
...
...
@@ -84,10 +88,10 @@ authRule={
dataType
:
"json"
,
success
:
function
(
data
)
{
$
(
"input[name = id]"
).
val
(
data
.
data
.
id
);
$
(
"input[name = title]"
).
val
(
data
.
data
.
title
2
);
$
(
"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
);
$
(
"
select[name = pid2]"
).
val
(
data
.
data
.
pid
)
if
(
data
.
data
.
is_menu
==
0
){
$
(
"#is_menu2"
).
attr
(
'checked'
,
true
);
}
else
{
...
...
@@ -96,6 +100,7 @@ authRule={
}
});
},
Submit_edit
:
function
(){
//提交编辑的信息
var
par
=
{}
par
.
id
=
authRule
.
house_id
;
...
...
public/resource/template/auth_rule_index_template_tpl.html
View file @
049e5859
...
...
@@ -33,7 +33,7 @@
</script>
<!--权限管理模板-->
<script
id=
"auth_class_tpl"
type=
"text/template"
>
<
option
selected
=
""
value
=
"0"
>
顶级菜单
<
/option
>
<
option
value
=
"0"
>
顶级菜单
<
/option
>
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
...
...
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