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
7d0e40df
Commit
7d0e40df
authored
Jul 30, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
规则管理
parent
4a172131
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
auth_rule_index.js
public/resource/js/auth_rule_index.js
+9
-1
No files found.
public/resource/js/auth_rule_index.js
View file @
7d0e40df
...
...
@@ -2,6 +2,7 @@ define (['doT', 'text!temp/auth_rule_index_template_tpl.html', 'css!style/home.c
authRule
=
{
pageNo
:
1
,
pageSize
:
15
,
isAdd
:
0
,
//默认编辑
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
...
...
@@ -14,6 +15,7 @@ authRule={
});
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
authRule
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
authRule
.
isAdd
=
0
;
//编辑
authRule
.
Edid_add
(
function
(){
authRule
.
Edit
();
});
...
...
@@ -25,6 +27,7 @@ authRule={
$
(
document
).
delegate
(
".edit_add"
,
"click"
,
function
()
{
//新增
document
.
getElementById
(
"form-horizontal"
).
reset
();
authRule
.
Edid_add
();
authRule
.
isAdd
=
1
;
//新增
});
$
(
document
).
delegate
(
".is_show"
,
"click"
,
function
()
{
//点击禁用
if
(
!
confirm
(
'是否继续?'
))
{
...
...
@@ -102,8 +105,13 @@ authRule={
},
Submit_edit
:
function
(){
//提交编辑的信息
var
par
=
{}
var
par
=
{};
if
(
authRule
.
isAdd
==
1
){
}
else
{
par
.
id
=
authRule
.
house_id
;
}
par
.
title
=
$
(
"input[name = title]"
).
val
();
par
.
name
=
$
(
"input[name = name]"
).
val
();
par
.
sort
=
$
(
"input[name = sort]"
).
val
();
...
...
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