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
04b43c48
Commit
04b43c48
authored
Jun 29, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人搜索二级联动
parent
472738ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
187 additions
and
184 deletions
+187
-184
agent.html
application/index/view/agent/agent.html
+181
-178
agent.js
public/resource/js/agent.js
+6
-6
No files found.
application/index/view/agent/agent.html
View file @
04b43c48
...
...
@@ -2,240 +2,242 @@
<input
type=
"hidden"
class=
"page-load"
id=
"agent"
/>
<!--关联经纪人列表liudanjs文件-->
<style>
.J_preview
{
.J_preview
{
width
:
30px
;
height
:
30px
;
border-radius
:
15px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<a
href=
"#"
>
经纪人管理
</a>
</li>
<li
class=
"active"
>
经纪人列表
</li>
<div
class=
"pull-right"
>
<ul
class=
"bread_btn"
>
<li>
<a
href=
"#modal-edit"
data-toggle=
"modal"
class=
"btn btn-default agent_add"
>
<i
class=
"icon-plus"
></i>
新增
</a>
</li>
</ul>
</div>
</div>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<a
href=
"#"
>
经纪人管理
</a>
</li>
<li
class=
"active"
>
经纪人列表
</li>
<div
class=
"pull-right"
>
<ul
class=
"bread_btn"
>
<li>
<a
href=
"#modal-edit"
data-toggle=
"modal"
class=
"btn btn-default agent_add"
>
<i
class=
"icon-plus"
></i>
新增
</a>
</li>
</ul>
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<td
colspan=
"11"
>
<form
id=
"form_search"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"industry_type"
placeholder=
"角色"
type=
"text"
value=
""
name=
"groupname"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"dish"
placeholder=
"门店"
type=
"text"
value=
""
name=
"store_name
"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"id"
placeholder=
"姓名/手机号"
name=
"search"
type=
"text"
value=
""
>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<td
colspan=
"11"
>
<form
id=
"form_search"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"industry_type"
placeholder=
"角色"
type=
"text"
value=
""
name=
"groupname"
>
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="dish" placeholder="门店"
type="text" value="" name="store_name">-->
<select
class=
"form-control btn2 input ld-Marheight"
name=
""
id=
"district_id
"
>
<option
value=
""
>
客方所属部门
</option>
</select
>
<span
class=
"btn btn-default btn3 ld-Marheight"
id=
"search"
>
搜索
</span
>
<span
class=
"btn btn-default btn3 ld-Marheight"
id=
"reset"
>
重置
</span
>
<!--变更角色--
>
<select
class=
"form-control btn2 input ld-Marheight"
name=
""
id=
"guest_stores"
>
</select
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"id"
placeholder=
"姓名/手机号"
name=
"search"
type=
"text"
value=
""
>
</form>
</td>
</tr>
<tr>
<th>
注册时间
</th>
<th>
用户ID
</th>
<th>
用户头像
</th>
<th>
姓名
</th>
<th>
手机号
</th>
<th>
角色
</th>
<!--2.2版本 -->
<!--<th>评价次数</th>
<span
class=
"btn btn-default btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-default btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
<!--变更角色-->
</form>
</td>
</tr>
<tr>
<th>
注册时间
</th>
<th>
用户ID
</th>
<th>
用户头像
</th>
<th>
姓名
</th>
<th>
手机号
</th>
<th>
角色
</th>
<!--2.2版本 -->
<!--<th>评价次数</th>
<th>分数</th>-->
<th>
操作
</th>
</tr>
</thead>
<tbody
id=
"agentlist"
>
</tbody>
</table>
<!-- 列表底部按钮 -->
<div
class=
"paginations text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<th>
操作
</th>
</tr>
</thead>
<tbody
id=
"agentlist"
>
</tbody>
</table>
<!-- 列表底部按钮 -->
<div
class=
"paginations text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--编辑-->
<div
class=
"modal fade"
id=
"modal-edit"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
id=
"title"
>
<h4
class=
"modal-title"
id=
"title"
>
经纪人编辑
</h4>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
用户名:
</label>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"name"
placeholder=
"登录账户所用名称"
type=
"text"
value=
""
id=
"title"
>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
电话(登录账号):
</label>
<input
type=
"number"
class=
"form-control btn6"
name=
"phone"
value=
""
placeholder=
"填写手机号"
>
</div>
<div
class=
"form-group hide"
>
<label
class=
"col-sm-3 control-label"
>
密码:
</label>
<input
type=
"text"
class=
"form-control btn6"
name=
"password"
id=
"password"
value=
"44444"
placeholder=
"填写密码"
>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
所属部门:
</label>
<select
name=
"district_id"
class=
"form-control btn6"
>
<option
value=
""
>
选择所属部门
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
所属门店:
</label>
<select
name=
"store_id"
class=
"form-control btn6"
>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
性别:
</label>
<div
class=
"radio radio-primary btn4 mr-10"
>
<label
for=
"sex0"
class=
"radio-label1"
>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
用户名:
</label>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"name"
placeholder=
"登录账户所用名称"
type=
"text"
value=
""
id=
"title"
>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
电话(登录账号):
</label>
<input
type=
"number"
class=
"form-control btn6"
name=
"phone"
value=
""
placeholder=
"填写手机号"
>
</div>
<div
class=
"form-group hide"
>
<label
class=
"col-sm-3 control-label"
>
密码:
</label>
<input
type=
"text"
class=
"form-control btn6"
name=
"password"
id=
"password"
value=
"44444"
placeholder=
"填写密码"
>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
所属部门:
</label>
<select
name=
"district_id"
class=
"form-control btn6"
>
<option
value=
""
>
选择所属部门
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
所属门店:
</label>
<select
name=
"store_id"
class=
"form-control btn6"
>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
性别:
</label>
<div
class=
"radio radio-primary btn4 mr-10"
>
<label
for=
"sex0"
class=
"radio-label1"
>
<div
class=
"iradio_minimal-blue"
aria-checked=
"false"
aria-disabled=
"false"
style=
""
>
<input
type=
"radio"
name=
"sex"
id=
"sex0"
value=
"0"
checked=
""
>
</div>
保密
</label>
</div>
</div>
<div
class=
"radio radio-primary btn4 mr-10"
>
<label
for=
"sex0"
class=
"radio-label1"
>
<div
class=
"radio radio-primary btn4 mr-10"
>
<label
for=
"sex0"
class=
"radio-label1"
>
<div
class=
"iradio_minimal-blue"
aria-checked=
"false"
aria-disabled=
"false"
style=
""
>
<input
type=
"radio"
name=
"sex"
id=
"sex1"
value=
"1"
>
</div>
男
</label>
</div>
</div>
<div
class=
"radio radio-primary btn4 mr-10"
>
<label
for=
"sex0"
class=
"radio-label1"
>
<div
class=
"radio radio-primary btn4 mr-10"
>
<label
for=
"sex0"
class=
"radio-label1"
>
<div
class=
"iradio_minimal-blue"
aria-checked=
"false"
aria-disabled=
"false"
style=
""
>
<input
type=
"radio"
name=
"sex"
id=
"sex2"
value=
"2"
>
</div>
女
</label>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
是否允许访问后台:
</label>
<select
name=
"admin_off"
id=
"admin_off"
class=
"form-control btn6"
>
<option
value=
"0"
>
允许
</option>
<option
value=
"1"
>
不允许
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
个人说明:
</label>
<textarea
name=
"remarks"
id=
"remarks"
class=
"form-control btn6"
length=
"120"
rows=
"5"
placeholder=
"请填写个人说明"
></textarea>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
是否允许访问后台:
</label>
<select
name=
"admin_off"
id=
"admin_off"
class=
"form-control btn6"
>
<option
value=
"0"
>
允许
</option>
<option
value=
"1"
>
不允许
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
个人说明:
</label>
<textarea
name=
"remarks"
id=
"remarks"
class=
"form-control btn6"
length=
"120"
rows=
"5"
placeholder=
"请填写个人说明"
></textarea>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--变更角色-->
<div
class=
"modal fade"
id=
"modal-user"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<h4
class=
"modal-title"
>
角色设置
</h4>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
权限角色:
</label>
<select
name=
"status"
class=
"form-control btn6"
id=
"edit_role"
>
</select>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
权限角色:
</label>
<select
name=
"status"
class=
"form-control btn6"
id=
"edit_role"
>
</select>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary submit_user"
data-dismiss=
"modal"
>
<button
type=
"button"
class=
"btn btn-primary submit_user"
data-dismiss=
"modal"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--绑定手机 2.2版本-->
<div
class=
"modal fade"
id=
"modal-unbundling"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"modal-unbundling"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<h4
class=
"modal-title"
>
角色设置
</h4>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
绑定手机
<!--<label class="col-sm-3 control-label">权限角色:</label>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
绑定手机
<!--<label class="col-sm-3 control-label">权限角色:</label>
<select name="status" class="form-control btn6" id="edit_role">
</select>-->
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<!--<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<!--<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" class="btn btn-primary submit_user" data-dismiss="modal">
提交
</button>-->
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
public/resource/js/agent.js
View file @
04b43c48
...
...
@@ -12,11 +12,10 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin
event
:
function
()
{
var
_doc
=
$
(
document
);
agent
.
getDistrict
(
function
(){
_doc
.
on
(
'input'
,
'
[name=district_id]
'
,
function
(){
_doc
.
on
(
'input'
,
'
#district_id
'
,
function
(){
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
var
_objTemp
=
_this
.
parent
().
next
().
find
(
'select'
);
_objTemp
.
html
(
''
);
//先清空
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
){
agent
.
getDistrictStoreList
(
_id
,
function
(
_data
){
// var _str = '';
...
...
@@ -24,12 +23,12 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_objTemp
.
html
(
_str
);
_this
.
next
().
html
(
_str
);
//先清空
});
}
else
{
};
});
})
})
;
$
(
'#search'
).
click
(
function
(
pageNo
)
{
agent
.
getList
(
1
);
});
...
...
@@ -245,6 +244,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin
params
.
search
=
$
(
"input[name='search']"
).
val
();
params
.
groupname
=
$
(
"input[name='groupname']"
).
val
();
params
.
store_name
=
$
(
"input[name='store_name']"
).
val
();
//后端加入两个字段搜索
$
.
ajax
({
url
:
'/index/AgentList'
,
type
:
'GET'
,
...
...
@@ -298,7 +298,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
$
(
'
[name=district_id]
'
).
append
(
str
);
$
(
'
#district_id
'
).
append
(
str
);
fn
&&
fn
();
}
}
...
...
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