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
6e824da8
Commit
6e824da8
authored
Mar 07, 2018
by
clone
Committed by
hujun
Mar 08, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
10b3b2db
952c358e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
79 additions
and
69 deletions
+79
-69
Remark.php
application/index/controller/Remark.php
+55
-0
auth_rule_index.html
application/index/view/auth/auth_rule_index.html
+1
-1
UPhoneFollowPp.php
application/model/UPhoneFollowPp.php
+18
-0
route.php
application/route.php
+2
-0
agentIndex.js
public/resource/js/agentIndex.js
+0
-68
auth_rule_index.js
public/resource/js/auth_rule_index.js
+3
-0
No files found.
application/index/controller/Remark.php
View file @
6e824da8
...
@@ -207,5 +207,59 @@ class Remark extends Basic
...
@@ -207,5 +207,59 @@ class Remark extends Basic
}
}
/**
* 电话跟进列表
*/
public
function
phone_up_list
()
{
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
// if (!isset($params['user_id'])) {
// return $this->response("300", "参数不全", [ 'remote_groupid' => '' ]);
// }
$searchdate
=
$params
[
'searchdate'
];
$pagenum
=
isset
(
$params
[
'pagenum'
])
?
$params
[
'pagenum'
]
:
1
;
$pagesize
=
15
;
$user_id
=
$params
[
'user_id'
];
$UPhoneFollowPp
=
new
UPhoneFollowPp
();
// 查询电话跟进数据
$UPhoneFollowPp_res
=
$UPhoneFollowPp
->
phone_up_list
(
$pagesize
,
$pagenum
);
//dump($UPhoneFollowPp_res);
/*dump($total);
var_dump($user_res);
exit;*/
//dump($UPhoneFollowPp_res);
/*foreach($UPhoneFollowPp_res as $k=>$v){
$table= new Agents();
$Agents_res =$table->Agents_res($v['agent_id']);
//dump($Agents_res);
$UPhoneFollowPp_res[$k]['agentinfo']=$Agents_res?$Agents_res['agentshopname'].'-'.$Agents_res['realname']:'未知';
$UPhoneFollowPp_res[$k]['user_pic']=ADMIN_URL_TL.'user_header/'.$Agents_res['head_portrait'];
$UPhoneFollowPp_res[$k]['label']='';
//dump($v['labels_id']);
//电话跟进标签
if($v['labels_id']){
$table= new ULabels();
$table_res =$table->get_labelsname($v['labels_id']);
//dump($table_res);
//exit;
$UPhoneFollowPp_res[$k]['label']=$table_res[0]['name'];
}
}*/
$UPhoneFollowPp
=
new
UPhoneFollowPp
();
$total
=
$UPhoneFollowPp
->
phone_up_list_count
();
//dump($total);
$total
=
intval
(
$total
/
$pagesize
)
+
((
$total
%
$pagesize
==
0
)
?
0
:
1
);
//dump($total);
return
$this
->
response
(
"200"
,
"success!"
,
[
'user_date'
=>
$UPhoneFollowPp_res
,
'pagenum'
=>
$pagenum
,
'total'
=>
$total
]);
}
}
}
\ No newline at end of file
application/index/view/auth/auth_rule_index.html
View file @
6e824da8
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
</h4>
</h4>
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<form
class=
"form-horizontal"
id=
"form-horizontal"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
标题:
</label>
<label
class=
"col-sm-3 control-label"
>
标题:
</label>
<input
type=
"text"
value=
""
name=
"title"
class=
"form-control btn6"
placeholder=
"用于后台显示的配置标题"
>
<input
type=
"text"
value=
""
name=
"title"
class=
"form-control btn6"
placeholder=
"用于后台显示的配置标题"
>
...
...
application/model/UPhoneFollowPp.php
View file @
6e824da8
...
@@ -105,4 +105,22 @@ class UPhoneFollowPp extends BaseModel
...
@@ -105,4 +105,22 @@ class UPhoneFollowPp extends BaseModel
return
$UPhoneFollowPp_res
;
return
$UPhoneFollowPp_res
;
}
}
public
function
phone_up_list
(
$pagesize
,
$pagenum
)
{
$UPhoneFollowPp_res
=
db
(
'u_phone_follow_up'
)
->
order
(
'create_time'
,
'desc'
)
->
limit
(
$pagesize
)
->
page
(
$pagenum
)
->
select
();
return
$UPhoneFollowPp_res
;
}
public
function
phone_up_list_count
()
{
$UPhoneFollowPp_res
=
db
(
'u_phone_follow_up'
)
->
count
();
return
$UPhoneFollowPp_res
;
}
}
}
application/route.php
View file @
6e824da8
...
@@ -163,6 +163,8 @@ Route::group('index', [
...
@@ -163,6 +163,8 @@ Route::group('index', [
'select_by_phone'
=>
[
'index/remark/select_by_phone'
,
[
'method'
=>
'get|post'
]
],
//后台客户详情--客方搜索
'select_by_phone'
=>
[
'index/remark/select_by_phone'
,
[
'method'
=>
'get|post'
]
],
//后台客户详情--客方搜索
'setting_index'
=>
[
'index/Setting/index'
,
[
'method'
=>
'get'
]
],
//全局参数设置页面
'setting_index'
=>
[
'index/Setting/index'
,
[
'method'
=>
'get'
]
],
//全局参数设置页面
'getSetting'
=>
[
'index/Setting/getSetting'
,
[
'method'
=>
'get|post'
]
],
//新增和修改全局参数设置
'getSetting'
=>
[
'index/Setting/getSetting'
,
[
'method'
=>
'get|post'
]
],
//新增和修改全局参数设置
'phone_up_list'
=>
[
'index/remark/phone_up_list'
,
[
'method'
=>
'get|post'
]
],
//电话跟进列表
]);
]);
...
...
public/resource/js/agentIndex.js
deleted
100644 → 0
View file @
10b3b2db
/**
* Created by 刘丹 on 2018/3/1.
*/
define
([
'doT'
,
'text!temp/agentIndex_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
agentIndex
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
id
:
''
,
house_id
:
''
,
type
:
''
,
valueCurrent
:
''
,
ajaxObj
:
''
,
stopstatus
:
true
,
boxphoto
:
''
,
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
agentIndex
.
getList
();
agentIndex
.
event
();
},
event
:
function
()
{
$
(
"#search"
).
click
(
function
()
{
agentIndex
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
},
getList
:
function
(
pageNo
)
{
agentIndex
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
agentIndex
.
pageNo
;
params
.
pageSize
=
agentIndex
.
pageSize
;
params
.
agents_name
=
$
(
'#industry_type'
)
.
val
();
//经纪人姓名
params
.
phone
=
$
(
'#dish'
)
.
val
();
//经纪人手机号
params
.
start_date
=
$
(
'#start_date'
)
.
val
();
//时间1
params
.
end_date
=
$
(
'#end_date'
)
.
val
();
//时间2
$
.
ajax
({
url
:
'/index/callCollectList'
,
//获取列表
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'agentIndex_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#agentIndex_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
$
(
"#pagediv"
).
pagination
({
length
:
data
.
data
.
total
,
current
:
pageNo
,
every
:
agentIndex
.
pageSize
,
onClick
:
function
(
el
)
{
agentIndex
.
getList
(
el
.
num
.
current
);
}
});
}
});
}
};
return
agentIndex
;
});
\ No newline at end of file
public/resource/js/auth_rule_index.js
View file @
6e824da8
...
@@ -22,6 +22,7 @@ authRule={
...
@@ -22,6 +22,7 @@ authRule={
authRule
.
getList
();
authRule
.
getList
();
});
});
$
(
document
).
delegate
(
".edit_add"
,
"click"
,
function
()
{
//新增
$
(
document
).
delegate
(
".edit_add"
,
"click"
,
function
()
{
//新增
document
.
getElementById
(
"form-horizontal"
).
reset
();
authRule
.
Edid_add
();
authRule
.
Edid_add
();
});
});
$
(
document
).
delegate
(
".is_show"
,
"click"
,
function
()
{
//点击禁用
$
(
document
).
delegate
(
".is_show"
,
"click"
,
function
()
{
//点击禁用
...
@@ -65,6 +66,7 @@ authRule={
...
@@ -65,6 +66,7 @@ authRule={
url
:
'/index/classList/type/1'
,
//获取后台菜单
url
:
'/index/classList/type/1'
,
//获取后台菜单
type
:
'GET'
,
type
:
'GET'
,
async
:
true
,
async
:
true
,
cache
:
false
,
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'auth_class_tpl'
).
innerHTML
;
var
temp
=
document
.
getElementById
(
'auth_class_tpl'
).
innerHTML
;
...
@@ -78,6 +80,7 @@ authRule={
...
@@ -78,6 +80,7 @@ authRule={
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/updateAuthRule'
,
//获取编辑数据
'url'
:
'/index/updateAuthRule'
,
//获取编辑数据
data
:
{
"id"
:
authRule
.
house_id
},
data
:
{
"id"
:
authRule
.
house_id
},
cache
:
false
,
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"input[name = id]"
).
val
(
data
.
data
.
id
);
$
(
"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