修复通话记录和通时统计中,搜索条件不起作用BUG

dev
曾超新 5 years ago
parent 6381ce9d6c
commit d5ea216563
  1. 18
      frontend/views/phone-center/call-records.php
  2. 18
      frontend/views/phone-center/usercall-index.php

@ -120,6 +120,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 = [];
if(row.record_file_url !== null) {
@ -150,22 +151,19 @@ 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/call-records-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();
o['offset'] = params['offset'];
o['limit'] = params['limit'];
return params;
}
});

@ -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,22 +80,19 @@ 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();
o['offset'] = params['offset'];
o['limit'] = params['limit'];
return params;
}
});

Loading…
Cancel
Save