Procházet zdrojové kódy

第三方公司统计字段修改

seimin před 3 roky
rodič
revize
e954dd1245

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

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

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

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