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
15572039
Commit
15572039
authored
Oct 31, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
121e67e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
agent.html
application/index/view/broker/agent.html
+3
-3
agent.js
public/resource/js/agent.js
+7
-6
No files found.
application/index/view/broker/agent.html
View file @
15572039
...
...
@@ -100,7 +100,7 @@
</h4>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<form
class=
"form-horizontal
form-horizontal-add
"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
用户名:
</label>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"name_add"
placeholder=
"登录账户所用名称"
type=
"text"
value=
""
id=
"title_add"
>
...
...
@@ -189,7 +189,7 @@
</h4>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<form
class=
"form-horizontal
form-horizontal-edit
"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
用户名:
</label>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"name"
placeholder=
"登录账户所用名称"
type=
"text"
value=
""
id=
"title"
>
...
...
@@ -393,7 +393,7 @@
</h4>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<form
class=
"form-horizontal
form-horizontal-turn
"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
所属部门:
</label>
<select
name=
"district_id_business"
class=
"form-control btn6"
>
...
...
public/resource/js/agent.js
View file @
15572039
...
...
@@ -103,19 +103,18 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
$
(
document
).
delegate
(
".agent_business"
,
"click"
,
function
()
{
//点击 编辑 跨城市转勤
$
(
".form-horizontal-turn"
)[
0
].
reset
();
//重置表单
});
$
(
document
).
delegate
(
".agent_add"
,
"click"
,
function
()
{
//点击新增
$
(
".form-horizontal"
)[
0
].
reset
();
//重置表单
$
(
".form-horizontal
-add
"
)[
0
].
reset
();
//重置表单
agent
.
confirm_old
=
''
//是否转勤 置空
});
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
agent
.
confirm_old
=
''
//是否转勤 置空
$
(
".form-horizontal"
)[
1
].
reset
();
//重置表单
$
(
".form-horizontal-edit"
)[
0
].
reset
();
//重置表单
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
Edit
();
});
$
(
document
).
delegate
(
"#password"
,
"click"
,
function
()
{
$
(
this
).
val
(
''
).
attr
(
'type'
,
'password'
);
});
...
...
@@ -517,7 +516,9 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'提交成功'
);
$
(
"#modal-business"
).
modal
(
'hide'
);
$
(
"#modal-edit"
).
modal
(
'hide'
);
}
else
if
(
data
.
code
==
101
){
alert
(
data
.
msg
);
}
else
{
...
...
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