148 lines
5.2 KiB
HTML
148 lines
5.2 KiB
HTML
|
<html login="false" auth="false">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>录音操作</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div widget="toolbar" style="padding:5px;border:0;">
|
||
|
<input name="start_time" widget=datechooser showTime="true" timeFormat="HH:mm:ss" format="yyyy-MM-dd" valueFormat="yyyy-MM-dd" allowinput="f" label="来电时间">
|
||
|
<input name="end_time" widget=datechooser showTime="true" timeFormat="HH:mm:ss" format="yyyy-MM-dd" valueFormat="yyyy-MM-dd" allowinput="f" style="margin-left: -70px;" label="至">
|
||
|
<input widget="edit" name="phone" label="来电号码"/>
|
||
|
<input widget="edit" name="empno" label="工号"/>
|
||
|
<input name="calltype" widget=combox allowinput="f" style="width: 200px;" showNullItem="true"
|
||
|
data="[{id:'0',text:'呼入'},{id:'1',text:'呼出'}]" emptyText="请选择" label="呼叫类型">
|
||
|
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
||
|
<!-- <a widget="button" iconCls="icon-export" onclick="exportExl()">导出</a>-->
|
||
|
</div>
|
||
|
<div widget="autosize">
|
||
|
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/bureau/getlistBysj" >
|
||
|
<div type="indexcolumn" width="35" header="序号"></div>
|
||
|
<div field="id" visible="id"></div>
|
||
|
<div field="emp_no" width="30" header="工号" align="center"></div>
|
||
|
<!-- <div field="name" width="30" header="姓名" align="center"></div>-->
|
||
|
<div field="create_time" width="50" header="日期" align="center"></div>
|
||
|
<div field="phone_num" width="50" header="电话号码" align="center"></div>
|
||
|
<div field="start_time" width="70" header="来电时间" align="center"></div>
|
||
|
<!-- <div field="end_time" width="70" header="结束时间" align="center"></div>-->
|
||
|
<!-- <div field="record_duration" width="40" header="录音时长(秒)" align="center"></div>-->
|
||
|
<div field="call_type" width="35" renderer="callType" align="center" header="呼叫类型" ></div>
|
||
|
<div field="down" width="40" header="下载" renderer="downRender" align="center"></div>
|
||
|
<div field="play" width="40" header="调听" renderer="playRender" align="center"></div>
|
||
|
<div field="caller_phone" width="50" header="来电号码" align="center" ></div>
|
||
|
<!-- <div field="customer_name" width="50" header="公司名称" align="center" ></div>-->
|
||
|
<!-- <div field="question_content" width="50" header="咨询内容" align="center" ></div>-->
|
||
|
<!-- <div field="question_answer" width="50" header="解决办法" align="center" ></div>-->
|
||
|
<!-- <div field="productname" width="50" header="问题类型" align="center" ></div>-->
|
||
|
<!--<div field="area_name" width="50" header="所属税局" align="center" ></div>-->
|
||
|
<div field="org_name" width="50" header="所属地区" align="center" ></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
var grid = aos.get('grid');
|
||
|
var nowday=aos.formatDate(new Date(),"yyyy-MM-dd");
|
||
|
|
||
|
|
||
|
function search(){
|
||
|
var grid = aos.get('grid');
|
||
|
var begindate=aos.get('start_time').getFormValue();
|
||
|
var enddate=aos.get('end_time').getFormValue();
|
||
|
if (begindate!="")
|
||
|
{
|
||
|
if (enddate=="")
|
||
|
{aos.alert('请选择结束时间!');
|
||
|
return ;
|
||
|
}
|
||
|
else{
|
||
|
if (begindate>enddate)
|
||
|
{
|
||
|
aos.alert('开始日期必须早于结束日期!');
|
||
|
}else{
|
||
|
|
||
|
var params={
|
||
|
searchbegindate:begindate,
|
||
|
searchenddate:enddate,
|
||
|
phone:aos.get('phone').getValue(),
|
||
|
empno:aos.get('empno').getValue(),
|
||
|
calltype:aos.get('calltype').getValue()
|
||
|
|
||
|
};
|
||
|
grid.load(params);
|
||
|
}
|
||
|
}
|
||
|
}else if(enddate!="")
|
||
|
{
|
||
|
aos.alert('请选择开始时间!');
|
||
|
return ;
|
||
|
}else{
|
||
|
var params={
|
||
|
searchbegindate:begindate,
|
||
|
searchenddate:enddate,
|
||
|
phone:aos.get('phone').getValue(),
|
||
|
empno:aos.get('empno').getValue(),
|
||
|
calltype:aos.get('calltype').getValue()};
|
||
|
grid.load(params);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
function playRender(e){
|
||
|
var row=e.row;
|
||
|
var value=row.play;
|
||
|
if(value=='播放'){
|
||
|
return "<a style=\"color:green;\" href='javascript:void(0)' onclick='showMyDialog(\""+ row.path +"\")'>"+value+"</a>";
|
||
|
}else{
|
||
|
return value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
function callType(e){
|
||
|
var row=e.row;
|
||
|
var value=row.call_type;
|
||
|
if(value=='0'){
|
||
|
return '<p style="color:red;">呼入</p>';
|
||
|
}
|
||
|
if(value=='1'){
|
||
|
return '<p style="color:green;">呼出</p>';
|
||
|
|
||
|
}
|
||
|
else{
|
||
|
return value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
function downRender(e){
|
||
|
var row=e.row;
|
||
|
var value=row.down;
|
||
|
if(value=='下载'){
|
||
|
return "<a href="+ row.path +">"+value+"</a>";
|
||
|
}else{
|
||
|
return value;
|
||
|
}
|
||
|
}
|
||
|
function showMyDialog(video_path){
|
||
|
var params ={};
|
||
|
params["video_path"]=video_path;
|
||
|
aos.showWindow('canvas/rush/record_rush_play',params,'800px', '400px', '录音播放', function(rtnValue){
|
||
|
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
function exportExl(){
|
||
|
var base = document.getElementsByTagName("base")[0].href;
|
||
|
window.location.href=base+"rush/bureau/exportRecoding?empno="+aos.get('empno').getValue()+"&searchbegindate="+aos.get('start_time').getFormValue()+"&searchenddate="+aos.get('end_time').getFormValue()+"&phone="+aos.get('phone').getValue()+"&calltype="+ encodeURI(encodeURI(aos.get('calltype').getValue()));
|
||
|
|
||
|
}
|
||
|
</script>
|
||
|
</html>
|