|
|
@@ -121,97 +121,98 @@
|
|
121
|
121
|
|
|
122
|
122
|
function dcexcel(obj) {
|
|
123
|
123
|
var url = huayi.config.callcenter_url + "WOReport/ExptList?token=" + token;
|
|
124
|
|
- url += "&stime=" + stime + "&endtime=" + endtime + "&dpt=" + dpt;
|
|
|
124
|
+ url += "&stime=" + stime + "&endtime=" + endtime + "&deptid=" + dpt;
|
|
125
|
125
|
obj.href = url;
|
|
126
|
126
|
}
|
|
127
|
127
|
//加载表格
|
|
128
|
128
|
function getTableDataList() {
|
|
129
|
129
|
layui.use('table', function() {
|
|
130
|
130
|
var table = layui.table;
|
|
131
|
|
- //方法级渲染
|
|
132
|
|
- table.render({
|
|
133
|
|
- elem: '#t_callTotal',
|
|
134
|
|
- url: huayi.config.callcenter_url + "WOReport/GetDataList",
|
|
135
|
|
- method: 'get', //如果无需自定义HTTP类型,可不加该参数
|
|
136
|
|
- skin: 'row', //line (行边框风格) row (列边框风格) nob (无边框风格)
|
|
137
|
|
- even: true, //开启隔行背景
|
|
138
|
|
- size: 'md', //sm,lg,md尺寸的表格
|
|
139
|
|
- cellMinWidth: 160,
|
|
140
|
|
- where: {
|
|
|
131
|
+ $.ajax({
|
|
|
132
|
+ type: "get",
|
|
|
133
|
+ url: huayi.config.callcenter_url + "WOReport/GetDataList", // 数据接口
|
|
|
134
|
+ data: {
|
|
141
|
135
|
stime: stime, // 开始时间
|
|
142
|
136
|
endtime: endtime, // 结束时间
|
|
143
|
|
- dpt: dpt, // 部门id
|
|
|
137
|
+ deptid: dpt, // 部门id
|
|
144
|
138
|
token: token
|
|
145
|
|
- }, //如果无需传递额外参数,可不加该参数
|
|
146
|
|
- //request: {}, //如果无需自定义请求参数,可不加该参数
|
|
147
|
|
- response: {
|
|
148
|
|
- statusName: 'state', //数据状态的字段名称,默认:code
|
|
149
|
|
- statusCode: 'success', //成功的状态码,默认:0
|
|
150
|
|
- msgName: 'message', //状态信息的字段名称,默认:msg
|
|
151
|
|
- //countName: 'total', //数据总数的字段名称,默认:count
|
|
152
|
|
- //dataName: 'rows', //数据列表的字段名称,默认:data
|
|
153
|
|
- }, //如果无需自定义数据响应名称,可不加该参数
|
|
154
|
|
- cols: [
|
|
155
|
|
- [{
|
|
156
|
|
- field: '部门',
|
|
157
|
|
- title: '部门',
|
|
158
|
|
- align: 'center',
|
|
159
|
|
- fixed: true,
|
|
160
|
|
- //sort: true,
|
|
161
|
|
- width: 150,
|
|
162
|
|
- }, {
|
|
163
|
|
- field: '工号',
|
|
164
|
|
- title: '工号',
|
|
165
|
|
- align: 'center',
|
|
166
|
|
- width: '',
|
|
167
|
|
- },
|
|
168
|
|
- {
|
|
169
|
|
- field: '姓名',
|
|
170
|
|
- title: '姓名',
|
|
171
|
|
- align: 'center',
|
|
172
|
|
- width: '',
|
|
173
|
|
- },
|
|
174
|
|
- {
|
|
175
|
|
- field: '建单量',
|
|
176
|
|
- title: '建单量',
|
|
177
|
|
- align: 'center',
|
|
178
|
|
- width: '',
|
|
179
|
|
- },
|
|
180
|
|
- {
|
|
181
|
|
- field: '接单量',
|
|
182
|
|
- title: '接单量',
|
|
183
|
|
- align: 'center',
|
|
184
|
|
- width: '',
|
|
185
|
|
- },
|
|
186
|
|
- {
|
|
187
|
|
- field: '未处理量',
|
|
188
|
|
- title: '未处理量',
|
|
189
|
|
- align: 'center',
|
|
190
|
|
- width: '',
|
|
191
|
|
- },
|
|
192
|
|
- {
|
|
193
|
|
- field: '异常量',
|
|
194
|
|
- title: '异常量',
|
|
195
|
|
- align: 'center',
|
|
196
|
|
- width: '',
|
|
197
|
|
- },
|
|
198
|
|
- {
|
|
199
|
|
- field: '已处理量',
|
|
200
|
|
- title: '已处理量',
|
|
201
|
|
- align: 'center',
|
|
202
|
|
- width: '',
|
|
203
|
|
- }
|
|
204
|
|
- // {
|
|
205
|
|
- // field: '平均通话总时长',
|
|
206
|
|
- // title: '平均通话总时长',
|
|
207
|
|
- // align: 'center',
|
|
208
|
|
- // templet: '<div><span class="color_73926">{{d.平均通话总时长}}</span></div>',
|
|
209
|
|
- // width: '',
|
|
210
|
|
- // },
|
|
211
|
|
- ]
|
|
212
|
|
- ],
|
|
213
|
|
-
|
|
214
|
|
- //height: 'full-150'
|
|
|
139
|
+ },
|
|
|
140
|
+ async: true,
|
|
|
141
|
+ success: function(r) {
|
|
|
142
|
+ var obj = JSON.parse(r);
|
|
|
143
|
+ var data = obj.data.dtNew;
|
|
|
144
|
+ //方法级渲染
|
|
|
145
|
+ table.render({
|
|
|
146
|
+ elem: '#t_callTotal',
|
|
|
147
|
+ skin: 'row', //line (行边框风格) row (列边框风格) nob (无边框风格)
|
|
|
148
|
+ even: true, //开启隔行背景
|
|
|
149
|
+ size: 'md', //sm,lg,md尺寸的表格
|
|
|
150
|
+ cellMinWidth: 160,
|
|
|
151
|
+ data: data,
|
|
|
152
|
+ page: true,
|
|
|
153
|
+ cols: [
|
|
|
154
|
+ [
|
|
|
155
|
+ {
|
|
|
156
|
+ field: '部门',
|
|
|
157
|
+ title: '部门',
|
|
|
158
|
+ align: 'center',
|
|
|
159
|
+ fixed: true,
|
|
|
160
|
+ //sort: true,
|
|
|
161
|
+ width: 150,
|
|
|
162
|
+ }, {
|
|
|
163
|
+ field: '工号',
|
|
|
164
|
+ title: '工号',
|
|
|
165
|
+ align: 'center',
|
|
|
166
|
+ width: '',
|
|
|
167
|
+ },
|
|
|
168
|
+ {
|
|
|
169
|
+ field: '姓名',
|
|
|
170
|
+ title: '姓名',
|
|
|
171
|
+ align: 'center',
|
|
|
172
|
+ width: '',
|
|
|
173
|
+ },
|
|
|
174
|
+ {
|
|
|
175
|
+ field: '建单量',
|
|
|
176
|
+ title: '建单量',
|
|
|
177
|
+ align: 'center',
|
|
|
178
|
+ width: '',
|
|
|
179
|
+ },
|
|
|
180
|
+ {
|
|
|
181
|
+ field: '接单量',
|
|
|
182
|
+ title: '接单量',
|
|
|
183
|
+ align: 'center',
|
|
|
184
|
+ width: '',
|
|
|
185
|
+ },
|
|
|
186
|
+ {
|
|
|
187
|
+ field: '未处理量',
|
|
|
188
|
+ title: '未处理量',
|
|
|
189
|
+ align: 'center',
|
|
|
190
|
+ width: '',
|
|
|
191
|
+ },
|
|
|
192
|
+ {
|
|
|
193
|
+ field: '异常量',
|
|
|
194
|
+ title: '异常量',
|
|
|
195
|
+ align: 'center',
|
|
|
196
|
+ width: '',
|
|
|
197
|
+ },
|
|
|
198
|
+ {
|
|
|
199
|
+ field: '已处理量',
|
|
|
200
|
+ title: '已处理量',
|
|
|
201
|
+ align: 'center',
|
|
|
202
|
+ width: '',
|
|
|
203
|
+ }
|
|
|
204
|
+ // {
|
|
|
205
|
+ // field: '平均通话总时长',
|
|
|
206
|
+ // title: '平均通话总时长',
|
|
|
207
|
+ // align: 'center',
|
|
|
208
|
+ // templet: '<div><span class="color_73926">{{d.平均通话总时长}}</span></div>',
|
|
|
209
|
+ // width: '',
|
|
|
210
|
+ // },
|
|
|
211
|
+ ]
|
|
|
212
|
+ ],
|
|
|
213
|
+ //height: 'full-150'
|
|
|
214
|
+ });
|
|
|
215
|
+ }
|
|
215
|
216
|
});
|
|
216
|
217
|
});
|
|
217
|
218
|
}
|
|
|
@@ -244,8 +245,7 @@
|
|
244
|
245
|
|
|
245
|
246
|
});
|
|
246
|
247
|
}
|
|
247
|
|
-
|
|
248
|
248
|
</script>
|
|
249
|
249
|
</body>
|
|
250
|
250
|
|
|
251
|
|
-</html>
|
|
|
251
|
+</html>
|