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
978641bf
Commit
978641bf
authored
Apr 23, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拨打电话修改
parent
ed190d7e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
98 deletions
+68
-98
CellPhone.php
application/index/controller/CellPhone.php
+66
-73
agentIndex.html
application/index/view/cell_phone/agentIndex.html
+2
-23
route.php
application/route.php
+0
-2
No files found.
application/index/controller/CellPhone.php
View file @
978641bf
...
...
@@ -22,24 +22,6 @@ class CellPhone extends Basic
protected
$data
=
[];
protected
$msg
=
""
;
/**
* 总记录列表
*
* @return \think\response\View
*/
public
function
index
()
{
return
view
(
'cell_phone/index'
);
}
/**
* 经纪人通话列表
*
* @return \think\response\View
*/
public
function
agentIndex
()
{
return
view
(
'cell_phone/agentIndex'
);
}
/**
* 绑定手机号
* 解绑之后有延迟
...
...
@@ -154,7 +136,7 @@ class CellPhone extends Basic
}
/**
*
通话
列表、搜索
*
总记录
列表、搜索
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
...
...
@@ -162,42 +144,47 @@ class CellPhone extends Basic
* @throws \think\exception\DbException
*/
public
function
callLog
()
{
$result
[
'code'
]
=
200
;
$result
[
'msg'
]
=
''
;
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
10
:
$this
->
params
[
'pageSize'
];
$report
=
new
SecretReport
();
$field
=
'agents_id,users_id,call_type,call_time,time,voice_file'
;
$where
=
[];
if
(
!
empty
(
$this
->
params
[
'start_date'
]))
{
$where
[
'create_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]];
}
if
(
$this
->
request
->
isAjax
())
{
$result
[
'code'
]
=
200
;
$result
[
'msg'
]
=
''
;
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
10
:
$this
->
params
[
'pageSize'
];
$report
=
new
SecretReport
();
$field
=
'agents_id,users_id,call_type,call_time,time,voice_file'
;
$where
=
[];
if
(
!
empty
(
$this
->
params
[
'start_date'
]))
{
$where
[
'create_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]];
}
if
(
!
empty
(
$this
->
params
[
'end_date'
]))
{
$where
[
'create_time'
]
=
[
'< time'
,
$this
->
params
[
'end_date'
]];
}
if
(
!
empty
(
$this
->
params
[
'end_date'
]))
{
$where
[
'create_time'
]
=
[
'< time'
,
$this
->
params
[
'end_date'
]];
}
if
(
!
empty
(
$this
->
params
[
'call_name'
]))
{
$where
[
'realName'
]
=
[
'LIKE'
,
$this
->
params
[
'call_name'
]
.
'%'
];
}
if
(
!
empty
(
$this
->
params
[
'call_name'
]))
{
$where
[
'realName'
]
=
[
'LIKE'
,
$this
->
params
[
'call_name'
]
.
'%'
];
}
if
(
!
empty
(
$this
->
params
[
'call_phone'
]))
{
$where
[
'phone_no'
]
=
[
'LIKE'
,
$this
->
params
[
'call_phone'
]
.
'%'
];
}
if
(
!
empty
(
$this
->
params
[
'call_phone'
]))
{
$where
[
'phone_no'
]
=
[
'LIKE'
,
$this
->
params
[
'call_phone'
]
.
'%'
];
}
if
(
!
empty
(
$this
->
params
[
'client_phone'
]))
{
$where
[
'peer_no'
]
=
[
'LIKE'
,
$this
->
params
[
'client_phone'
]
.
'%'
];
}
if
(
!
empty
(
$this
->
params
[
'client_phone'
]))
{
$where
[
'peer_no'
]
=
[
'LIKE'
,
$this
->
params
[
'client_phone'
]
.
'%'
];
}
if
(
!
empty
(
$this
->
params
[
'client_name'
]))
{
$where
[
'user_nick'
]
=
[
'LIKE'
,
$this
->
params
[
'client_name'
]
.
'%'
];
}
if
(
!
empty
(
$this
->
params
[
'client_name'
]))
{
$where
[
'user_nick'
]
=
[
'LIKE'
,
$this
->
params
[
'client_name'
]
.
'%'
];
}
$data
[
'list'
]
=
$report
->
getCallList
(
$pageNo
,
$pageSize
,
'id desc'
,
$field
,
$where
);
$data
[
'total'
]
=
$report
->
getCallListTotal
(
$where
);
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
],
$data
);
$data
[
'list'
]
=
$report
->
getCallList
(
$pageNo
,
$pageSize
,
'id desc'
,
$field
,
$where
);
$data
[
'total'
]
=
$report
->
getCallListTotal
(
$where
);
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
],
$data
);
}
else
{
return
view
(
'cell_phone/index'
);
}
}
/**
...
...
@@ -209,33 +196,38 @@ class CellPhone extends Basic
* @throws \think\exception\DbException
*/
public
function
callCollectList
()
{
$result
[
'code'
]
=
200
;
$result
[
'msg'
]
=
''
;
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
10
:
$this
->
params
[
'pageSize'
];
$report
=
new
SecretReport
();
$field
=
'a.id,b.phone,sum(time) as time,agents_id,call_type,release_time,start_time'
;
$where
=
[];
if
(
!
empty
(
$this
->
params
[
'start_date'
]))
{
$where
[
'create_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]];
}
if
(
$this
->
request
->
isAjax
())
{
$result
[
'code'
]
=
200
;
$result
[
'msg'
]
=
''
;
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
10
:
$this
->
params
[
'pageSize'
];
$report
=
new
SecretReport
();
$field
=
'a.id,b.phone,sum(time) as time,agents_id,call_type,release_time,start_time'
;
$where
=
[];
if
(
!
empty
(
$this
->
params
[
'start_date'
]))
{
$where
[
'create_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]];
}
if
(
!
empty
(
$this
->
params
[
'end_date'
]))
{
$where
[
'create_time'
]
=
[
'< time'
,
$this
->
params
[
'end_date'
]];
}
if
(
!
empty
(
$this
->
params
[
'end_date'
]))
{
$where
[
'create_time'
]
=
[
'< time'
,
$this
->
params
[
'end_date'
]];
}
if
(
!
empty
(
$this
->
params
[
'agents_name'
]))
{
$where
[
'realName'
]
=
[
'LIKE'
,
$this
->
params
[
'agents_name'
]
.
'%'
];
}
if
(
!
empty
(
$this
->
params
[
'agents_name'
]))
{
$where
[
'realName'
]
=
[
'LIKE'
,
$this
->
params
[
'agents_name'
]
.
'%'
];
}
if
(
!
empty
(
$this
->
params
[
'phone'
]))
{
$where
[
'phone'
]
=
[
'LIKE'
,
$this
->
params
[
'phone'
]
.
'%'
];
}
if
(
!
empty
(
$this
->
params
[
'phone'
]))
{
$where
[
'phone'
]
=
[
'LIKE'
,
$this
->
params
[
'phone'
]
.
'%'
];
}
$data
[
'list'
]
=
$report
->
getCallCollect
(
$pageNo
,
$pageSize
,
'id desc'
,
$field
,
$where
);
$data
[
'total'
]
=
$report
->
getCallCollectTotal
(
$where
);
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
],
$data
);
$data
[
'list'
]
=
$report
->
getCallCollect
(
$pageNo
,
$pageSize
,
'id desc'
,
$field
,
$where
);
$data
[
'total'
]
=
$report
->
getCallCollectTotal
(
$where
);
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
],
$data
);
}
else
{
return
view
(
'cell_phone/agentIndex'
);
}
}
}
\ No newline at end of file
application/index/view/cell_phone/agentIndex.html
View file @
978641bf
...
...
@@ -6,7 +6,7 @@
<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><a
href=
"#"
>
通话
统计
</a></li>
</div>
<div
class=
"panel-body"
>
...
...
@@ -37,28 +37,7 @@
<th
class=
"text-center"
>
花费
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"agentIndex_list"
>
<!--<tr>-->
<!--<td>212</td>-->
<!--<td>商场</td>-->
<!--<td>长兴</td>-->
<!--<td>1000</td>-->
<!--<td>是</td>-->
<!--<td>2018-01-16 17:02:00</td>-->
<!--<td>已租</td>-->
<!--<td>张娜张-->
<!--<a data-toggle="modal" data-id="77" href="#modal-watch" class="btn1 btn-danger add_applies">修改</a>-->
<!--</td>-->
<!--<td>-->
<!--<a class="btn1 btn-success " href="#modal-process" data-toggle="modal" data-id="77" onclick="alertFollow(this)">编辑</a>-->
<!--<a class="btn1 btn-success " href="#modal-process" data-toggle="modal" data-id="77" onclick="alertFollow(this)">推荐至首页</a>-->
<!--<a class="btn1 btn-success " href="#modal-process" data-toggle="modal" data-id="77" onclick="alertFollow(this)">设置案场权限人</a>-->
<!--<a class="btn1 btn-success " href="#modal-process" data-toggle="modal" data-id="77" onclick="alertFollow(this)">是否独家</a>-->
<!--<a class="btn1 btn-success " href="#modal-process" data-toggle="modal" data-id="77" onclick="alertFollow(this)">操作记录</a>-->
<!--<a data-toggle="modal" data-id="77" href="#modal-watch" class="btn1 btn-danger add_applies" onclick="delete_house(4720)">删除</a>-->
<!--</td>-->
<!--</tr>-->
<tbody
class=
"text-center"
id=
"agentIndex_list"
></tbody>
</table>
</div>
<!-- /#page-content-wrapper -->
...
...
application/route.php
View file @
978641bf
...
...
@@ -179,8 +179,6 @@ Route::group('index', [
'bindAXB'
=>
[
'index/CellPhone/bindAXB'
,
[
'method'
=>
'post'
]
],
//隐私号码
'agentsUnBind'
=>
[
'index/CellPhone/agentsUnBind'
,
[
'method'
=>
'post'
]
],
//解除绑定关系
'updateBindAXB'
=>
[
'api_broker/CellPhone/updateBindAXB'
,
[
'method'
=>
'post'
]
],
//更新绑定关系隐私号码
'CellPhoneIndex'
=>
[
'index/CellPhone/index'
,
[
'method'
=>
'get'
]
],
//总记录列表
'CellPhoneAgentIndex'
=>
[
'index/CellPhone/agentIndex'
,
[
'method'
=>
'get'
]
],
//经纪人通话列表
'phoneList'
=>
[
'index/Phone/phoneList'
,
[
'method'
=>
'get'
]
],
//号码池
'bindPhoneListIndex'
=>
[
'index/Phone/bindPhoneListIndex'
,
[
'method'
=>
'get'
]
],
//号码绑定列表
...
...
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