rushfee/resource/html/revisit/revisitRecordPhone.html

46 lines
1.4 KiB
HTML
Raw Normal View History

2022-05-16 15:07:40 +00:00
<html login="false" auth="false">
<head>
<meta charset="UTF-8">
<title>拨打记录</title>
</head>
<body>
<div widget="autosize">
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="hfrecord/getPhoneByLogId" multiSelect="true" onrowdblclick="">
<div type="indexcolumn" width="5" header="序号"></div>
<div field="log_id" width="8" visible="false"></div>
<div field="operate_name" width="20" header="拨打记录"></div>
<div field="video_path" visible="false"></div>
<div field="play" width="10" header="录音" renderer="playRender" align="center"></div>
<div field="download" width="10" header="下载" renderer="linkRenderer" linkField="video_path" target="self" align="center"></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function init(param){
var grid = aos.get('grid');
grid.load(param);
}
function playRender(e){
var row=e.row,
value=e.value;
if(value=='播放'){
return "<a href='javascript:void(0)' onclick='showMyDialog(\""+ row.video_path +"\")'>"+value+"</a>";
}else{
return value;
}
}
function showMyDialog(video_path){
var params ={};
params["video_path"]=video_path;
aos.showWindow('canvas/revisit/recordPlay',params,'800px', '300px', '录音播放', function(rtnValue){
});
}
</script>
</html>