|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+<!DOCTYPE html>
|
|
|
2
|
+<html>
|
|
|
3
|
+
|
|
|
4
|
+<head>
|
|
|
5
|
+
|
|
|
6
|
+ <meta charset="utf-8">
|
|
|
7
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
8
|
+ <title>归并热线每日数据统计</title>
|
|
|
9
|
+ <script src="../Script/Common/huayi.load.js"></script>
|
|
|
10
|
+ <script src="../Script/Common/huayi.config.js"></script>
|
|
|
11
|
+ <link rel="stylesheet" href="../js/select2/css/select2.min.css" />
|
|
|
12
|
+ <link rel="stylesheet" href="../css/init.css" />
|
|
|
13
|
+ <style>
|
|
|
14
|
+ .zxt-top {
|
|
|
15
|
+ height: 60px;
|
|
|
16
|
+ width: 95%;
|
|
|
17
|
+ margin: 20px auto 0 auto;
|
|
|
18
|
+ padding: 10px 10px;
|
|
|
19
|
+ }
|
|
|
20
|
+
|
|
|
21
|
+ .topCon {
|
|
|
22
|
+ float: right;
|
|
|
23
|
+ margin-right: 45px;
|
|
|
24
|
+ }
|
|
|
25
|
+
|
|
|
26
|
+ .zxt-content {
|
|
|
27
|
+ width: 95%;
|
|
|
28
|
+ margin: 0 auto;
|
|
|
29
|
+ }
|
|
|
30
|
+
|
|
|
31
|
+ .zxt-table {
|
|
|
32
|
+ overflow-x: auto;
|
|
|
33
|
+ }
|
|
|
34
|
+
|
|
|
35
|
+ .zxt-table table {
|
|
|
36
|
+ font-size: 16px;
|
|
|
37
|
+ margin: 20px auto;
|
|
|
38
|
+ width: 100%;
|
|
|
39
|
+ max-width: 100%;
|
|
|
40
|
+ background: #FFFFFF;
|
|
|
41
|
+ }
|
|
|
42
|
+ .table{
|
|
|
43
|
+ margin-bottom: 0;
|
|
|
44
|
+ border: 1px solid #6d7779;
|
|
|
45
|
+ }
|
|
|
46
|
+
|
|
|
47
|
+ .toolLeft input {
|
|
|
48
|
+ width: 200px;
|
|
|
49
|
+ }
|
|
|
50
|
+
|
|
|
51
|
+ #lineTd {
|
|
|
52
|
+ background: #fff url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxsaW5lIHgxPSIwIiB5MT0iMCIgeDI9IjEwMCUiIHkyPSIxMDAlIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=) no-repeat 100% center;
|
|
|
53
|
+ }
|
|
|
54
|
+ .zjTable th{
|
|
|
55
|
+ text-align: center;
|
|
|
56
|
+ }
|
|
|
57
|
+ .zjTable thead tr th{
|
|
|
58
|
+ /*background: #daeef3;*/
|
|
|
59
|
+ border: 1px solid #6d7779;
|
|
|
60
|
+ }
|
|
|
61
|
+ .zjTable tbody tr td{
|
|
|
62
|
+ text-align: center;
|
|
|
63
|
+ border: 1px solid #6d7779;
|
|
|
64
|
+ }
|
|
|
65
|
+ </style>
|
|
|
66
|
+</head>
|
|
|
67
|
+
|
|
|
68
|
+<body class="gray-bg">
|
|
|
69
|
+ <div class="wrapper wrapper-content animated fadeInRight">
|
|
|
70
|
+ <div class="daoHang clearfix">
|
|
|
71
|
+ <div class="dhLeft">
|
|
|
72
|
+ <sapn>
|
|
|
73
|
+ <i class="syIcon"></i>位置:
|
|
|
74
|
+ <a href="javaScript:;" id="ReIndex">首页</a>>
|
|
|
75
|
+ <a href="javaScript:;">报表管理</a>>
|
|
|
76
|
+ <a href="" class="nowPosition">有效来电接听情况统计表</a>
|
|
|
77
|
+ </sapn>
|
|
|
78
|
+ </div>
|
|
|
79
|
+ <div class="dhRight">
|
|
|
80
|
+ <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
|
|
|
81
|
+ </div>
|
|
|
82
|
+ </div>
|
|
|
83
|
+ <div class="toolBar clearfix">
|
|
|
84
|
+ <div class="toolLeft">
|
|
|
85
|
+ 开始时间:
|
|
|
86
|
+ <input class="photo x-color inputs laydate-icon" type="text" id="squeryTime" autocomplete="off" />
|
|
|
87
|
+ 结束时间:
|
|
|
88
|
+ <input class="photo x-color inputs laydate-icon" type="text" id="equeryTime" autocomplete="off" />
|
|
|
89
|
+ <button class="btns" id="search">查询</button>
|
|
|
90
|
+ <button class="btns" id="exportFile">导出</button>
|
|
|
91
|
+ </div>
|
|
|
92
|
+ </div>
|
|
|
93
|
+
|
|
|
94
|
+ <div>
|
|
|
95
|
+
|
|
|
96
|
+ <div>
|
|
|
97
|
+ <p style="width: 100%;text-align: center;font-size: 28px;">有效来电接听情况统计表</p>
|
|
|
98
|
+ <div class="table-head">
|
|
|
99
|
+ <table class="table table-hover table-striped table-bordered table-condensed zjTable">
|
|
|
100
|
+ <colgroup>
|
|
|
101
|
+ <col style="width: 100px;" />
|
|
|
102
|
+ <col/>
|
|
|
103
|
+ </colgroup>
|
|
|
104
|
+ <thead>
|
|
|
105
|
+ <tr>
|
|
|
106
|
+ <th id="lineTd" rowspan="2" style="width: 100px;height: 100px;">
|
|
|
107
|
+ <span style="float:left;margin-top:30px;">日期</span>
|
|
|
108
|
+ <span style="float:right;margin-top:-60px;">持机时长</span>
|
|
|
109
|
+ </th>
|
|
|
110
|
+ <th>持机≥0秒</th>
|
|
|
111
|
+ <th>持机=0秒</th>
|
|
|
112
|
+ <th>持机≥1秒</th>
|
|
|
113
|
+ <th>持机≥2秒</th>
|
|
|
114
|
+ <th>持机≥3秒</th>
|
|
|
115
|
+ <th>持机≥4秒</th>
|
|
|
116
|
+ <th>持机≥5秒</th>
|
|
|
117
|
+ <th>持机≥6秒</th>
|
|
|
118
|
+ <th>持机≥7秒</th>
|
|
|
119
|
+ <th>持机≥8秒</th>
|
|
|
120
|
+ <th>持机≥9秒</th>
|
|
|
121
|
+ <th>持机≥10秒</th>
|
|
|
122
|
+ </tr>
|
|
|
123
|
+ </thead>
|
|
|
124
|
+ <tbody class="zxdd">
|
|
|
125
|
+
|
|
|
126
|
+ </tbody>
|
|
|
127
|
+ </table>
|
|
|
128
|
+ </div>
|
|
|
129
|
+ </div>
|
|
|
130
|
+ </div>
|
|
|
131
|
+ </div>
|
|
|
132
|
+
|
|
|
133
|
+ <script src="../js/laydate/laydate.js"></script>
|
|
|
134
|
+ <script>
|
|
|
135
|
+ $(function () {
|
|
|
136
|
+ laydate.render({
|
|
|
137
|
+ elem: '#squeryTime',
|
|
|
138
|
+ theme: '#00a1cb',
|
|
|
139
|
+ type: 'datetime'
|
|
|
140
|
+ });
|
|
|
141
|
+ laydate.render({
|
|
|
142
|
+ elem: '#equeryTime',
|
|
|
143
|
+ theme: '#00a1cb',
|
|
|
144
|
+ type: 'datetime'
|
|
|
145
|
+ });
|
|
|
146
|
+// initTable();
|
|
|
147
|
+ //搜索
|
|
|
148
|
+ $("#search").click(function () {
|
|
|
149
|
+ initTable();
|
|
|
150
|
+ });
|
|
|
151
|
+
|
|
|
152
|
+ //按enter搜索
|
|
|
153
|
+ document.onkeydown = function (e) { // 回车提交表单
|
|
|
154
|
+ var theEvent = window.event || e;
|
|
|
155
|
+ var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
|
|
|
156
|
+ if (code == 13) {
|
|
|
157
|
+ initTable();
|
|
|
158
|
+ }
|
|
|
159
|
+ }
|
|
|
160
|
+
|
|
|
161
|
+ //表格
|
|
|
162
|
+ function initTable() {
|
|
|
163
|
+ $(".zxdd").html('');
|
|
|
164
|
+ $.ajax({
|
|
|
165
|
+ type: "get",
|
|
|
166
|
+ dataType: "json",
|
|
|
167
|
+ url: huayi.config.callcenter_url + "WorkOrderReport/GetSecurityReport",
|
|
|
168
|
+ async: true,
|
|
|
169
|
+ data: {
|
|
|
170
|
+ token: $.cookie("token"),
|
|
|
171
|
+ sdate: $("#squeryTime").val(),
|
|
|
172
|
+ edate: $('#equeryTime').val(),
|
|
|
173
|
+ isdc: 0
|
|
|
174
|
+ },
|
|
|
175
|
+ success: function (data) {
|
|
|
176
|
+ /*验证请求*/
|
|
|
177
|
+ if(data.state == "success") {
|
|
|
178
|
+ var content = data.data.ReportData;
|
|
|
179
|
+ for(var i = 0; i < content.length; i++) {
|
|
|
180
|
+ $("<tr><td style='width: 107px;'>" + content[i].timedate + "</td><td>" +
|
|
|
181
|
+ content[i].answer + "</td><td>"+
|
|
|
182
|
+ content[i].back + "</td><td>" + content[i].hwcount + "</td><td>"+
|
|
|
183
|
+ content[i].hwquickly + "</td><td>" + content[i].hwtransfer + "</td><td>" +
|
|
|
184
|
+ content[i].hwhandle + "</td><td>" + content[i].hwoverdue + "</td><td>" +
|
|
|
185
|
+
|
|
|
186
|
+ content[i].cscount + "</td><td>" + content[i].csquickly + "</td><td>" +
|
|
|
187
|
+ content[i].cstransfer + "</td><td>" + content[i].cshandle + "</td><td>" +
|
|
|
188
|
+ content[i].csoverdue + "</td><td>" + content[i].tscount + "</td><td>" +
|
|
|
189
|
+ content[i].tstransfer + "</td><td>" + content[i].tshandle + "</td><td>" +
|
|
|
190
|
+ content[i].tsoverdue + "</td><td>" + content[i].tsover + "</td><td>" +
|
|
|
191
|
+
|
|
|
192
|
+ content[i].total + "</td><td>" + content[i].totalquickly + "</td><td>" +
|
|
|
193
|
+ content[i].totaltransfer + "</td><td>" + content[i].talhandle + "</td><td>" +
|
|
|
194
|
+ content[i].totaloverdue + "</td><td>" + content[i].transferrate + "</td><td>" +
|
|
|
195
|
+ content[i].endrate + "</td><td>" + content[i].one + "</td><td>" +
|
|
|
196
|
+ content[i].two + "</td><td>" + content[i].myd + "</td>" +
|
|
|
197
|
+
|
|
|
198
|
+ "<tr>").appendTo(".zxdd");
|
|
|
199
|
+ }
|
|
|
200
|
+ }
|
|
|
201
|
+ }
|
|
|
202
|
+ });
|
|
|
203
|
+ }
|
|
|
204
|
+ //导出
|
|
|
205
|
+ $("#exportFile").click(function () {
|
|
|
206
|
+ var starttime = $("#squeryTime").val();
|
|
|
207
|
+ var endtime = $('#equeryTime').val();
|
|
|
208
|
+
|
|
|
209
|
+ var url = huayi.config.callcenter_url + "WorkOrderReport/GetSecurityReport?token=" + $.cookie(
|
|
|
210
|
+ "token");
|
|
|
211
|
+ url += "&sdate=" + starttime + "&edate=" + endtime + "&isdc=1";
|
|
|
212
|
+
|
|
|
213
|
+ window.location.href = url;
|
|
|
214
|
+ });
|
|
|
215
|
+ })
|
|
|
216
|
+ </script>
|
|
|
217
|
+</body>
|
|
|
218
|
+
|
|
|
219
|
+</html>
|