|
|
@@ -70,6 +70,7 @@
|
|
70
|
70
|
</div>
|
|
71
|
71
|
<div class="form-group tool_bars pull-right">
|
|
72
|
72
|
<button class="btns sear">搜索</button>
|
|
|
73
|
+ <a class="btns export">导出</a>
|
|
73
|
74
|
</div>
|
|
74
|
75
|
</div>
|
|
75
|
76
|
</div>
|
|
|
@@ -113,10 +114,22 @@
|
|
113
|
114
|
$('.sear').click(function(){
|
|
114
|
115
|
initTable();
|
|
115
|
116
|
});
|
|
|
117
|
+ //导出
|
|
|
118
|
+ $('.export').click(function() {
|
|
|
119
|
+ dcexcel(this);
|
|
|
120
|
+ });
|
|
|
121
|
+
|
|
|
122
|
+
|
|
|
123
|
+ function dcexcel(obj) {
|
|
|
124
|
+ var stime = $('#chooseTime').val() && $('#chooseTime').val().split(' ~ ')[0];
|
|
|
125
|
+ var endtime = $('#chooseTime').val() && $('#chooseTime').val().split(' ~ ')[1];
|
|
|
126
|
+ var url = huayi.config.callcenter_url + "Ttraffic/ExptList?token=" + $.cookie("token") +"&stime=" + stime + "&endtime=" + endtime;
|
|
|
127
|
+ obj.href = url;
|
|
|
128
|
+ }
|
|
116
|
129
|
function initTable() {
|
|
117
|
130
|
$.ajax({
|
|
118
|
131
|
type:"get",
|
|
119
|
|
- url:huayi.config.callcenter_url+"DeptAssessment/GetDeptAssessment",
|
|
|
132
|
+ url:huayi.config.callcenter_url+"Ttraffic/GetDataList",
|
|
120
|
133
|
async:true,
|
|
121
|
134
|
dataType:'json',
|
|
122
|
135
|
data:{
|