|
|
|
@ -16,7 +16,7 @@ use \common\libs\MyLib; |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="ibox-content"> |
|
|
|
|
<form role="form" class="form-inline" onsubmit="return search();"> |
|
|
|
|
<form role="form" id="searchFrm" class="form-inline" onsubmit="return search();"> |
|
|
|
|
<input type="hidden" name="company_type" id="company_type" value="<?=$company_type?>">
|
|
|
|
|
<?php if($company_type == 3) { ?> |
|
|
|
|
<div class="form-group" style="margin-bottom: 8px;"> |
|
|
|
@ -66,6 +66,7 @@ use \common\libs\MyLib; |
|
|
|
|
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
|
|
|
|
<script src="/assets/js/plugins/layer/laydate/laydate.js"></script> |
|
|
|
|
<script> |
|
|
|
|
var o = {}; |
|
|
|
|
function opFormatter(value, row, index) { |
|
|
|
|
var opStr = []; |
|
|
|
|
opStr.push('<a href="javascript:void(0);" onclick="play(' + row.record_file_url + ')">'); |
|
|
|
@ -79,23 +80,20 @@ use \common\libs\MyLib; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function search() { |
|
|
|
|
o = {}; |
|
|
|
|
var params = $("#searchFrm").serializeArray(); |
|
|
|
|
$.each(params, function(index) { |
|
|
|
|
o[this['name']] = this['value']; |
|
|
|
|
}); |
|
|
|
|
$('#listTable').bootstrapTable('destroy'); |
|
|
|
|
$('#listTable').bootstrapTable({ |
|
|
|
|
url: "/phone-center/usercall-index-json", |
|
|
|
|
pagination: true, |
|
|
|
|
sidePagination: 'server', |
|
|
|
|
queryParams: function(params) { |
|
|
|
|
params.username = $('#username').val(); |
|
|
|
|
params.begin_time = $('#begin_time').val(); |
|
|
|
|
params.end_time = $('#end_time').val(); |
|
|
|
|
params.caller = $('#caller').val(); |
|
|
|
|
params.called = $('#called').val(); |
|
|
|
|
params.call_result = $('#call_result').val(); |
|
|
|
|
params.duration_begin = $('#duration_begin').val(); |
|
|
|
|
params.duration_end = $('#duration_end').val(); |
|
|
|
|
params.is_called = $('#is_called').val(); |
|
|
|
|
params.company_type = $('#company_type').val(); |
|
|
|
|
return params; |
|
|
|
|
o['offset'] = params['offset']; |
|
|
|
|
o['limit'] = params['limit']; |
|
|
|
|
return o; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
return false; |
|
|
|
|