浏览代码

三方公司统计

seimin 11 月之前
父节点
当前提交
79738e8dab
共有 2 个文件被更改,包括 13 次插入3 次删除
  1. 11 1
      assets/js/controllers/report/event_formCtrl.js
  2. 2 2
      assets/views/report/event_form.html

+ 11 - 1
assets/js/controllers/report/event_formCtrl.js

@@ -522,6 +522,10 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
522 522
             value: $scope.groupSelected[1]//选中
523 523
         };
524 524
         $scope.own.duty && $scope.tap == 'CLRZ' && $scope.mdxquery();
525
+
526
+        $scope.companySelected = [];
527
+        $scope.companySelectedOne.value = {id:-1,name:''};
528
+        $scope.own.duty && $scope.tap == 'SFGS' && $scope.mdxquery();
525 529
     }
526 530
     // 获取院区
527 531
     $scope.branchs = [];
@@ -981,12 +985,16 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
981 985
                 api_user_data.fetchDataList('company', {
982 986
                     idx: 0,
983 987
                     sum: 1000,
984
-                    company: {}
988
+                    company: {
989
+                        "duty": $scope.own.duty || undefined,
990
+                    }
985 991
                 }).then(res => {
986 992
                     if (res.status == 200) {
987 993
                         $scope.companySelected = res.list;//下拉框数据
988 994
                         // 请求列表
989 995
                         var postData = {
996
+                            "dutyId": $scope.own.duty ? $scope.own.duty.id : undefined,
997
+                            "branchId": $scope.own.duty ? undefined: ($scope.own.branch ? $scope.own.branch.id : undefined),
990 998
                             "startTime": moment($scope.starttimesModel).format('YYYY-MM-DD'),
991 999
                             "endTime": moment($scope.endtimesModel).format('YYYY-MM-DD'),
992 1000
                             "sortData": name,
@@ -1147,6 +1155,8 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
1147 1155
                 postData.key = 'mdv2_incident_repot_handle';
1148 1156
                 break;
1149 1157
             case 'SFGS'://三方公司
1158
+                postData.dutyId = $scope.own.duty ? $scope.own.duty.id : undefined;
1159
+                postData.branchId = $scope.own.duty ? undefined : ($scope.own.branch ? $scope.own.branch.id : undefined);
1150 1160
                 postData.key = 'mdv2_incident_repot_company';
1151 1161
                 postData.titles = [($scope.sfgs_list[0]&&$scope.sfgs_list[0].userName)?'人员名称':'公司名称', '人员总数', '事件数量', '平均响应时长', '平均解决时长'];
1152 1162
                 if($scope.sfgs_list[0]&&$scope.sfgs_list[0].userName){

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

@@ -84,7 +84,7 @@
84 84
                         </div>
85 85
                     </div>
86 86
                     <!-- 院区 -->
87
-                    <div class="selectSj P-0 fl" ng-if="tap != 'SFGS'">
87
+                    <div class="selectSj P-0 fl">
88 88
                         <div class="selectSj-hd">院区:</div>
89 89
                         <ui-select class="sj-select" ng-model="own.branch" theme="bootstrap" ng-change="changeBranch()">
90 90
                             <ui-select-match placeholder="选择院区" allow-clear>
@@ -96,7 +96,7 @@
96 96
                         </ui-select>
97 97
                     </div>
98 98
                     <!-- 责任科室 -->
99
-                    <div class="selectSj P-0 fl" ng-if="tap != 'SFGS'">
99
+                    <div class="selectSj P-0 fl">
100 100
                         <div class="selectSj-hd">责任科室:</div>
101 101
                         <ui-select class="sj-select" ng-model="own.duty" theme="bootstrap" ng-change="changeDuty()">
102 102
                             <ui-select-match placeholder="选择责任科室" allow-clear>