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
42f783ad
Commit
42f783ad
authored
Nov 12, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
职称列表 修改
parent
feb0a56b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
425 additions
and
0 deletions
+425
-0
ProfessionalList.php
application/index/controller/ProfessionalList.php
+23
-0
professionalListCon.html
...tion/index/view/professionalList/professionalListCon.html
+169
-0
route.php
application/route.php
+1
-0
professionalList.js
public/resource/js/professionalList.js
+193
-0
professional_list_template_tpl.html
public/resource/template/professional_list_template_tpl.html
+39
-0
No files found.
application/index/controller/ProfessionalList.php
0 → 100644
View file @
42f783ad
<?php
namespace
app\index\controller
;
/**
* Created by PhpStorm.
* User: liu yin ping
* Date: 2018/11/12
* Time: 15:48
*/
use
app\index\extend\Basic
;
class
ProfessionalList
extends
Basic
{
public
function
ProfessionalListCon
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'professionalList/professionalListCon'
);
}
}
}
\ No newline at end of file
application/index/view/professionalList/professionalListCon.html
0 → 100644
View file @
42f783ad
{layout name="global/frame_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"professionalList"
/>
<style
type=
"text/css"
>
.left
{
float
:
left
;
}
/*经纪人 搜索 下拉式*/
.left-phone
{
margin-left
:
10px
;
float
:
left
;
margin-top
:
-5px
;
width
:
230px
;
position
:
relative
;
}
.user-ul-agent
{
width
:
223px
;
height
:
auto
;
float
:
left
;
position
:
absolute
;
background
:
#fff
;
border
:
.5px
solid
#ccc
;
border-top
:
none
;
left
:
4px
;
z-index
:
999
;
}
.user-ul-agent
li
{
list-style
:
none
;
line-height
:
30px
;
margin-left
:
-28px
;
}
/*新增 职称人员*/
.user-ul-agent-add
{
width
:
223px
;
height
:
auto
;
float
:
left
;
position
:
absolute
;
background
:
#fff
;
border
:
.5px
solid
#ccc
;
border-top
:
none
;
left
:
4px
;
z-index
:
999
;
}
.user-ul-agent-add
li
{
list-style
:
none
;
line-height
:
30px
;
margin-left
:
-28px
;
}
/*加载图标*/
#main_loading_pic
{
position
:
fixed
;
top
:
50%
;
left
:
50%
;
width
:
100px
;
height
:
100px
;
margin-left
:
50px
;
margin-top
:
-100px
;
overflow
:
hidden
;
display
:
none
;
}
.btn-tab-60
{
width
:
90px
;
margin-right
:
30px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<a>
职称列表
</a>
</li>
<div
class=
"pull-right"
>
<ul
class=
"bread_btn"
>
<li>
<a
href=
"#modal_add_professional"
data-toggle=
"modal"
class=
"btn btn-default"
>
新增职称人员
</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"
class=
"maintable-top-sub-tr"
>
<a
class=
"btn btn-info btn-tab-60"
>
全 部
</a>
<a
class=
"btn btn-default btn-tab-60"
>
店 长
</a>
<a
class=
"btn btn-default btn-tab-60"
>
经 理
</a>
<a
class=
"btn btn-default btn-tab-60"
>
主 任
</a>
<a
class=
"btn btn-default btn-tab-60"
>
顾 问
</a>
<a
class=
"btn btn-default btn-tab-60"
>
新 人
</a>
</td>
</tr>
<!--职称列表 搜索-->
<tr>
<td
colspan=
"11"
>
<form
id=
"maintable_form_search"
>
<div
class=
"left-phone"
>
<input
class=
"form-control margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_agent_name"
placeholder=
"经纪人姓名"
type=
"text"
value=
""
>
<ul
class=
"user-ul-agent"
></ul>
</div>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_agent_phone"
name=
""
type=
"text"
placeholder=
"经纪人手机号码"
>
<span
class=
"btn btn-primary btn3 search left"
id=
"maintable_search"
>
搜索
</span>
<span
class=
"btn btn-primary btn3 left"
id=
"maintable_reset"
>
重置
</span>
</form>
</td>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list"
>
</tbody>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 新增职称 人员 -->
<div
class=
"modal fade"
id=
"modal_add_professional"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-w"
>
<div
class=
"modal-content modal-body-width-h"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
新增职称人员
</h4>
</div>
<div
class=
"modal-body"
style=
"height: 500px;"
>
<form
class=
"form-horizontal"
id=
"form_reset"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
职称:
</label>
<select
name=
"district_id"
class=
"form-control btn6"
>
<option
value=
"-1"
>
选择职称
</option>
<option
value=
"1"
>
店长
</option>
<option
value=
"2"
>
经理
</option>
<option
value=
"3"
>
主任
</option>
<option
value=
"4"
>
顾问
</option>
<option
value=
"0"
>
新人
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
经纪人:
</label>
<div
class=
"left-phone"
>
<input
class=
"form-control"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_agent_name_add"
placeholder=
"经纪人姓名"
type=
"text"
value=
""
>
<ul
class=
"user-ul-agent-add"
></ul>
</div>
</div>
</form>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--加载图标-->
<div
id=
"main_loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
>
</div>
application/route.php
View file @
42f783ad
...
...
@@ -301,6 +301,7 @@ Route::group('index', [
'performancesubsidiaryList'
=>
[
'index/PerformanceSubsidiary/performancesubsidiaryList'
,
[
'method'
=>
'POST|GET'
]],
//业绩明细liu
'pkList'
=>
[
'index/PkList/pkList'
,
[
'method'
=>
'POST|GET'
]],
//pk榜 liu
'professionalList'
=>
[
'index/ProfessionalList/ProfessionalListCon'
,
[
'method'
=>
'POST|GET'
]],
//职称列表 liu
'myCollectionUserList'
=>
[
'index/myCollectionUser/myCollectionUserList'
,
[
'method'
=>
'POST|GET'
]],
//我收藏的客户liu
'myCollectionShopList'
=>
[
'index/myCollectionShop/myCollectionShopList'
,
[
'method'
=>
'POST|GET'
]],
//我收藏的客户liu
'dayAchievementsReport'
=>
[
'index/PerformanceReport/dayAchievementsReportList'
,
[
'method'
=>
'POST|GET'
]],
//日报liu
...
...
public/resource/js/professionalList.js
0 → 100644
View file @
42f783ad
define
([
'doT'
,
'text!temp/professional_list_template_tpl.html'
,
'text!temp/reportList_no_edit_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
professional
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
20
,
/*每页显示多少条*/
mainTabIndex
:
0
,
agent_id_choose
:
''
,
agent_id_choose_add
:
''
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
//初始化 站点城市筛选
professional
.
event
();
professional
.
getList
(
1
);
},
event
:
function
()
{
var
_doc
=
$
(
document
);
_doc
.
on
(
"input"
,
"#user_agent_name"
,
function
()
{
//客户列表 客方员工姓名 下拉式搜索
if
(
$
(
"#user_agent_name"
).
val
()
==
''
)
{
professional
.
agent_id_choose
=
''
;
$
(
".user-ul-agent"
).
html
(
''
);
}
else
{
professional
.
search_phone_agent
();
}
});
_doc
.
on
(
"input"
,
"#user_agent_name_add"
,
function
()
{
//客户列表 客方员工姓名 下拉式搜索(新增)
if
(
$
(
"#user_agent_name_add"
).
val
()
==
''
)
{
professional
.
agent_id_choose_add
=
''
;
$
(
".user-ul-agent-add"
).
html
(
''
);
}
else
{
professional
.
search_phone_agent_add
();
}
});
_doc
.
delegate
(
".addphone-agent"
,
"click"
,
function
()
{
//客户列表 客户员工 下拉式 搜索 点击li事件 获取id ul消失
professional
.
addphoneAgent
(
this
);
});
_doc
.
delegate
(
".addphone-agent-add"
,
"click"
,
function
()
{
//客户列表 客户员工 下拉式 搜索 点击li事件 获取id ul消失(新增)
professional
.
addphoneAgentAdd
(
this
);
});
//主页面 6个tab的点击事件
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
if
(
_this
.
index
()
==
0
){
professional
.
mainTabIndex
=
''
;
}
if
(
_this
.
index
()
==
1
){
professional
.
mainTabIndex
=
1
;
}
if
(
_this
.
index
()
==
2
){
professional
.
mainTabIndex
=
2
;
}
if
(
_this
.
index
()
==
3
){
professional
.
mainTabIndex
=
3
;
}
if
(
_this
.
index
()
==
4
){
professional
.
mainTabIndex
=
4
;
}
if
(
_this
.
index
()
==
5
){
professional
.
mainTabIndex
=
0
;
}
professional
.
getList
(
1
);
});
//搜索按钮的事件
_doc
.
on
(
'click'
,
'#maintable_search'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
professional
.
getList
(
1
);
//一级审核搜索
});
//搜索的重置
$
(
"#maintable_reset"
).
click
(
function
()
{
document
.
getElementById
(
"maintable_form_search"
).
reset
();
professional
.
agent_id_choose
=
''
;
});
},
//获取不同职位的列表
getList
:
function
(
pageNo
){
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
params
=
{
'pageNo'
:
pageNo
,
'pageSize'
:
professional
.
pageSize
,
'name'
:
professional
.
agent_id_choose
,
'phone'
:
$
(
'#realtime_city_choose'
).
val
(),
'position'
:
professional
.
order_ranking
,
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/agentPositionList'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{
$
(
'#main_loading_pic'
).
show
();
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
// var tpl=professional.switchTpl();
var
tpl
=
'professional_list_tpl'
;
console
.
log
(
tpl
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
tpl
).
innerHTML
);
$
(
"#maintable_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
add_page
(
data
.
data
.
total
,
pageNo
,
professional
.
pageSize
,
professional
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
$
(
'#main_loading_pic'
).
hide
();
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
search_phone_agent
:
function
()
{
//客户列表 客方员工 姓名的下拉式搜索
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#user_agent_name"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="addphone-agent" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul-agent"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
addphoneAgent
:
function
(
obj
)
{
//客户列表 客方姓名 搜索 input赋值
var
user_ht
=
$
(
obj
).
html
();
$
(
"#user_agent_name"
).
val
(
user_ht
);
$
(
".user-ul-agent"
).
html
(
''
);
professional
.
agent_id_choose
=
$
(
obj
).
attr
(
"data-id"
);
},
search_phone_agent_add
:
function
()
{
//客户列表 客方员工 姓名的下拉式搜索(新增)
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#user_agent_name_add"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="addphone-agent-add" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul-agent-add"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
addphoneAgentAdd
:
function
(
obj
)
{
//客户列表 客方姓名 搜索 input赋值(新增)
var
user_ht
=
$
(
obj
).
html
();
$
(
"#user_agent_name_add"
).
val
(
user_ht
);
$
(
".user-ul-agent_add"
).
html
(
''
);
professional
.
agent_id_choose_add
=
$
(
obj
).
attr
(
"data-id"
);
},
};
return
professional
;
});
\ No newline at end of file
public/resource/template/professional_list_template_tpl.html
0 → 100644
View file @
42f783ad
<!--职称列表-->
<script
id=
"professional_list_tpl"
type=
"text/template"
>
[
%
var
sw
=
function
(
s
){
switch
(
Number
(
s
)){
case
2
:
return
"btn-info"
;
case
1
:
return
"btn-default"
}};
%
]
[
%
if
(
it
&&
it
.
length
&&
it
.
length
>
0
)
{
%
]
<
tr
class
=
"maintable-tr-bar"
>
<
th
class
=
"text-center"
>
用户
ID
<
/th
>
<
th
class
=
"text-center"
>
账号类型
<
/th
>
<
th
class
=
"text-center"
>
职称
<
/th
>
<
th
class
=
"text-center"
>
所属门店
<
/th
>
<
th
class
=
"text-center"
>
经纪人
<
/th
>
<
th
class
=
"text-center"
>
手机号码
<
/th
>
<
th
class
=
"text-center"
>
操作
<
/th
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
id
=
"[%= it[item]['district_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
a
class
=
"btn1 is_show [%= sw(it[item]['is_collect']) %]"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
cid
=
'[%= it[item]["is_collect"] %]'
data
-
baohu
=
'[%= it[item]["is_outstrip_twenty_four_hours"] %]'
data
-
agent
=
'[%= it[item]["agent_id"] %]'
>
[
%
if
(
it
[
item
][
"is_collect"
]
==
2
)
{
%
]
收藏
[
%
}
else
if
(
it
[
item
][
"is_collect"
]
==
1
)
{
%
]
取消收藏
[
%
}
%
]
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
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