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
ee1ceba8
Commit
ee1ceba8
authored
Mar 07, 2018
by
刘丹
Committed by
hujun
Mar 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交清空form
parent
10b3b2db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
auth_rule_index.html
application/index/view/auth/auth_rule_index.html
+1
-1
auth_rule_index.js
public/resource/js/auth_rule_index.js
+3
-0
No files found.
application/index/view/auth/auth_rule_index.html
View file @
ee1ceba8
...
...
@@ -81,7 +81,7 @@
</h4>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<form
class=
"form-horizontal"
id=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
标题:
</label>
<input
type=
"text"
value=
""
name=
"title"
class=
"form-control btn6"
placeholder=
"用于后台显示的配置标题"
>
...
...
public/resource/js/auth_rule_index.js
View file @
ee1ceba8
...
...
@@ -22,6 +22,7 @@ authRule={
authRule
.
getList
();
});
$
(
document
).
delegate
(
".edit_add"
,
"click"
,
function
()
{
//新增
document
.
getElementById
(
"form-horizontal"
).
reset
();
authRule
.
Edid_add
();
});
$
(
document
).
delegate
(
".is_show"
,
"click"
,
function
()
{
//点击禁用
...
...
@@ -65,6 +66,7 @@ authRule={
url
:
'/index/classList/type/1'
,
//获取后台菜单
type
:
'GET'
,
async
:
true
,
cache
:
false
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'auth_class_tpl'
).
innerHTML
;
...
...
@@ -78,6 +80,7 @@ authRule={
'type'
:
'GET'
,
'url'
:
'/index/updateAuthRule'
,
//获取编辑数据
data
:
{
"id"
:
authRule
.
house_id
},
cache
:
false
,
dataType
:
"json"
,
success
:
function
(
data
)
{
$
(
"input[name = id]"
).
val
(
data
.
data
.
id
);
...
...
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