Parcourir la source

第三方公司统计字段修改

seimin il y a 3 ans
Parent
commit
e954dd1245

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

@@ -543,6 +543,9 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
543 543
             case 'SFGS'://三方公司
544 544
                 postData.key = 'mdv2_incident_repot_company';
545 545
                 postData.titles = [($scope.sfgs_list[0]&&$scope.sfgs_list[0].userName)?'人员名称':'公司名称', '人员总数', '事件数量', '平均响应时长', '平均解决时长', '迟到次数'];
546
+                if($scope.sfgs_list[0]&&$scope.sfgs_list[0].userName){
547
+                    postData.titles.splice(1,1);
548
+                }
546 549
                 break;
547 550
             case 'QYDD'://区域地点
548 551
                 postData.type = $scope.areaSelectedOne.value.id;

+ 4 - 4
assets/views/report/event_form.html

@@ -568,10 +568,10 @@
568 568
                                         <th style="width:22%" ng-if="sfgs_list[0]&&sfgs_list[0].companyName" ng-click="tableSort('companyName')" tooltip='第三方公司名称' tooltip-placement="top">
569 569
                                             公司名称
570 570
                                         </th>
571
-                                        <th style="width:22%" ng-if="sfgs_list[0]&&sfgs_list[0].userName" ng-click="tableSort('userName')" tooltip='人员名称' tooltip-placement="top">
571
+                                        <th style="width:38%" ng-if="sfgs_list[0]&&sfgs_list[0].userName" ng-click="tableSort('userName')" tooltip='人员名称' tooltip-placement="top">
572 572
                                             人员名称
573 573
                                         </th>
574
-                                        <th style="width:16%" ng-click="tableSort('u_total')" tooltip='此公司下的人员数量' tooltip-placement="top">
574
+                                        <th style="width:16%" ng-if="sfgs_list[0]&&sfgs_list[0].companyName" ng-click="tableSort('u_total')" tooltip='此公司下的人员数量' tooltip-placement="top">
575 575
                                             <strong>
576 576
                                                 人员总数
577 577
                                                 <em class="sort-wrap">
@@ -630,10 +630,10 @@
630 630
                                             <td style="width:22%" ng-if="rowData.companyName">
631 631
                                                 {{rowData.companyName}}
632 632
                                             </td>
633
-                                            <td style="width:22%" ng-if="rowData.userName">
633
+                                            <td style="width:38%" ng-if="rowData.userName">
634 634
                                                 {{rowData.userName}}
635 635
                                             </td>
636
-                                            <td style="width:16%">
636
+                                            <td style="width:16%" ng-if="rowData.companyName">
637 637
                                                 {{rowData.u_total}}
638 638
                                             </td>
639 639
                                             <td style="width:16%">