Commit ad45affa authored by zw's avatar zw

Merge remote-tracking branch 'origin/test' into test

parents 39f56892 a41ed954
......@@ -96,6 +96,32 @@ class OperationData extends Basic
return $this->response(200, 'success', $result);
}
/**
* 客户来电数
* @return \think\Response
*/
// public function userPhoneNum()
// {
// $params = $this->params;1
// $params_['a.create_time'] = [ 'between', [ $params['create_time_start'] . ' 00:00:00', $params['create_time_end'] . ' 23:59:59' ] ];
// // 先查新所有部门
// $district_list = $this->getDistrict();
//
// foreach ($district_list as $key => $v) {
// $result_["id"] = $v['id'];
// $result_["district_name"] = $v['district_name'];
//
// // 客户来电数
// $params_["b.district_id"] = $v['id'];
// $model = new AUserCallAgent();
// $res = $model->getUserCallAgentCount($params_);
//
// $result_["user_phone_num"] = isset($res) ? $res : 0;
// $result[] = $result_;
// }
// return $this->response(200, 'success', $result);
// }
/**
* 客户来电数
* @return \think\Response
......@@ -119,7 +145,7 @@ class OperationData extends Basic
$agentModel = new AAgents();
$res = $agentModel->getUserPhoneNum($field, $params);
$result_["user_phone_num"] = isset($res) ? $res : 0;
$result_["call_number_total"] = isset($res[0]['call_number_total']) ? $res[0]['call_number_total'] : 0;
$result[] = $result_;
}
return $this->response(200, 'success', $result);
......
......@@ -62,6 +62,18 @@
#maintable_form_search>span.total-commission{
margin-top: 16px;
}
/*加载图标*/
#main_loading_pic {
position: fixed;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin-left: 50px;
margin-top: -100px;
overflow: hidden;
display: none;
}
</style>
<div id="page-content-wrapper">
<div class="container">
......@@ -768,3 +780,7 @@
</div>
<!-- /.modal -->
</div>
<!--加载图标-->
<div id="main_loading_pic">
<img src="/resource/image/jz2.gif">
</div>
\ No newline at end of file
......@@ -35,6 +35,18 @@
border-radius: 15px;
}
/*客户详情 样式*/
/*加载图标*/
#main_loading_pic {
position: fixed;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin-left: 50px;
margin-top: -100px;
overflow: hidden;
display: none;
}
</style>
<div id="page-content-wrapper">
<div class="container">
......@@ -689,3 +701,7 @@
</div>
<!-- /.modal -->
</div>
<!--加载图标-->
<div id="main_loading_pic">
<img src="/resource/image/jz2.gif">
</div>
\ No newline at end of file
......@@ -1493,7 +1493,9 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
url: '/index/performanceInfo', //获取业绩明细列表
data: params,
dataType: 'json',
beforeSend: function() {},
beforeSend: function() {
$('#main_loading_pic').show();
},
success: function(data) {
if(typeof data === 'object') {
if(data.code == 200) {
......@@ -1513,7 +1515,9 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
alert('数据错误');
};
},
complete: function(xhr, textStatus) {
$('#main_loading_pic').hide();
}
});
},
getDistrict: function(fn) {
......
......@@ -1563,7 +1563,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
data: params,
timeout: 30000,
dataType: 'json',
beforeSend: function() {},
beforeSend: function() {
$('#main_loading_pic').show();
},
success: function(data) {
if(typeof data === 'object') {
if(data.code == 200) {
......@@ -1595,6 +1597,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
alert('error');
},
complete: function(xhr, textStatus) {
$('#main_loading_pic').hide();
if(textStatus === 'timeout') {
alert('请求超时');
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment