ソースを参照

事件统计的事件类型增加满意度字段

seimin 6 ヶ月 前
コミット
c1aeac6801
共有2 個のファイルを変更した25 個の追加13 個の削除を含む
  1. 3 3
      assets/js/controllers/report/event_formCtrl.js
  2. 22 10
      assets/views/report/event_form.html

+ 3 - 3
assets/js/controllers/report/event_formCtrl.js

@@ -447,7 +447,7 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
447 447
                         })
448 448
                     }
449 449
                 })
450
-                
450
+
451 451
                 break;
452 452
             case 'QYDD'://区域地点
453 453
                 $scope.qydd_list = null;
@@ -522,12 +522,12 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
522 522
             case 'SJZS'://事件总数
523 523
                 postData.type = $scope.dateItem;
524 524
                 postData.key = 'mdv2_incident_repot_sum';
525
-                postData.titles = ['时间', '事件数量', '平均响应时间', '平均解决时间', '部分解决', '其他', '满意度(%)'];
525
+                postData.titles = ['时间', '事件数量', '平均响应时间', '平均解决时间', '满意度(%)'];
526 526
                 break;
527 527
             case 'SJLX'://事件类型
528 528
                 postData.hierarchy = $scope.sjSelectedOne.value.id;
529 529
                 postData.key = 'mdv2_incident_repot_type';
530
-                postData.titles = ['事件类型', '类型数量', '类型占比', '平均响应时间', '平均解决时间', '部分解决', '其他'];
530
+                postData.titles = ['事件类型', '类型数量', '类型占比', '平均响应时间', '平均解决时间', '满意度(%)'];
531 531
                 break;
532 532
             case 'CLRZ'://处理人/组
533 533
                 if ($scope.groupSelectedOne.value.id == -2) {//按组

+ 22 - 10
assets/views/report/event_form.html

@@ -299,10 +299,10 @@
299 299
                                         <th style="width:6%">
300 300
                                             序号
301 301
                                         </th>
302
-                                        <th style="width:22%" tooltip='统计标的,事件分类' tooltip-placement="top">
302
+                                        <th style="width:20%" tooltip='统计标的,事件分类' tooltip-placement="top">
303 303
                                             事件类型
304 304
                                         </th>
305
-                                        <th style="width:18%" ng-click="tableSort('sum')" tooltip='此事件分类下的事件工单数量(包含子级工单)' tooltip-placement="top">
305
+                                        <th style="width:14%" ng-click="tableSort('sum')" tooltip='此事件分类下的事件工单数量(包含子级工单)' tooltip-placement="top">
306 306
                                             <strong>
307 307
                                                 类型数量
308 308
                                                 <em class="sort-wrap">
@@ -311,10 +311,10 @@
311 311
                                                 </em>
312 312
                                             </strong>
313 313
                                         </th>
314
-                                        <th style="width:18%" tooltip='分类下工单占比' tooltip-placement="top">
314
+                                        <th style="width:14%" tooltip='分类下工单占比' tooltip-placement="top">
315 315
                                             类型占比
316 316
                                         </th>
317
-                                        <th style="width:18%" ng-click="tableSort('responseTime')" tooltip='接单时间 – 建单时间' tooltip-placement="top">
317
+                                        <th style="width:16%" ng-click="tableSort('responseTime')" tooltip='接单时间 – 建单时间' tooltip-placement="top">
318 318
                                             <strong>
319 319
                                                 平均响应时间
320 320
                                                 <em class="sort-wrap">
@@ -323,7 +323,7 @@
323 323
                                                 </em>
324 324
                                             </strong>
325 325
                                         </th>
326
-                                        <th style="width:18%" ng-click="tableSort('resolvedTime')" tooltip='处理完成时间 –  接单时间' tooltip-placement="top">
326
+                                        <th style="width:16%" ng-click="tableSort('resolvedTime')" tooltip='处理完成时间 –  接单时间' tooltip-placement="top">
327 327
                                             <strong>
328 328
                                                 平均解决时间
329 329
                                                 <em class="sort-wrap">
@@ -332,6 +332,15 @@
332 332
                                                 </em>
333 333
                                             </strong>
334 334
                                         </th>
335
+                                        <th style="width:14%" ng-click="tableSort('satisfactionRatio')" tooltip='满意度' tooltip-placement="top">
336
+                                            <strong>
337
+                                                满意度(%)
338
+                                                <em class="sort-wrap">
339
+                                                    <i class="sortItem iconfont icon-xiangshang" ng-class="{active:sortActive == 'satisfactionRatiotop'}"></i>
340
+                                                    <i class="sortItem iconfont icon-xiangxia" ng-class="{active:sortActive == 'satisfactionRatiobottom'}"></i>
341
+                                                </em>
342
+                                            </strong>
343
+                                        </th>
335 344
                                         <!-- <th style="width:8%" tooltip='处理结果为:完全解决的单数' tooltip-placement="top">
336 345
                                             完全解决
337 346
                                         </th>
@@ -353,21 +362,24 @@
353 362
                                             <td style="width:6%">
354 363
                                                 {{$index+1}}
355 364
                                             </td>
356
-                                            <td style="width:22%">
365
+                                            <td style="width:20%">
357 366
                                                 {{rowData.category}}
358 367
                                             </td>
359
-                                            <td style="width:18%">
368
+                                            <td style="width:14%">
360 369
                                                 {{rowData.sum}}
361 370
                                             </td>
362
-                                            <td style="width:18%">
371
+                                            <td style="width:14%">
363 372
                                                 {{rowData.proportion}}
364 373
                                             </td>
365
-                                            <td style="width:18%">
374
+                                            <td style="width:16%">
366 375
                                                 {{rowData.responseTime}}
367 376
                                             </td>
368
-                                            <td style="width:18%">
377
+                                            <td style="width:16%">
369 378
                                                 {{rowData.resolvedTime}}
370 379
                                             </td>
380
+                                            <td style="width:14%">
381
+                                                {{rowData.satisfactionRatio}}%
382
+                                            </td>
371 383
                                             <!-- <td style="width:8%">
372 384
                                                 {{rowData.allresult}}
373 385
                                             </td>