Sfoglia il codice sorgente

点击本日、上一日、本周、上周、本月、上月时需要直接执行查询

seimin 11 mesi fa
parent
commit
399f1dac01
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      assets/js/controllers/report/realTimeCtrl.js

+ 5 - 0
assets/js/controllers/report/realTimeCtrl.js

@@ -114,6 +114,7 @@ app.controller('realTimeCtrl', ["$scope", "$rootScope", "$state", "$timeout", "$
114 114
         $scope.endtimesModel = moment().week( moment().week() - num).endOf('week').add(1, 'days').toDate();
115 115
       }
116 116
       $scope.datepickerUpdate('day');
117
+      $scope.mdxquery();
117 118
     }
118 119
     //本月,上月
119 120
     $scope.month = function (num) {
@@ -129,6 +130,7 @@ app.controller('realTimeCtrl', ["$scope", "$rootScope", "$state", "$timeout", "$
129 130
           $scope.endtimesModel = moment().month( moment().month() - num).endOf('month').toDate();
130 131
         }
131 132
         $scope.datepickerUpdate('month');
133
+        $scope.mdxquery();
132 134
     }
133 135
     //本日,上一日
134 136
     $scope.day = function (num) {
@@ -144,6 +146,7 @@ app.controller('realTimeCtrl', ["$scope", "$rootScope", "$state", "$timeout", "$
144 146
         $scope.endtimesModel = moment().day( moment().day() - num).endOf('day').toDate();
145 147
       }
146 148
       $scope.datepickerUpdate('day');
149
+      $scope.mdxquery();
147 150
     }
148 151
     //选择上一周,上个月,去年等等快捷方式
149 152
     $scope.chooseDate = function (date) {
@@ -464,6 +467,7 @@ app.controller('realTimeCtrl', ["$scope", "$rootScope", "$state", "$timeout", "$
464 467
     $scope.userCount = null;
465 468
     $scope.overtimeCount = null;
466 469
     $scope.getPersonnelStatistics = function(type){
470
+      $rootScope.isMask = true;
467 471
       if(type === 'overtimeCount'){
468 472
         $scope[type] = null;
469 473
       }else{
@@ -479,6 +483,7 @@ app.controller('realTimeCtrl', ["$scope", "$rootScope", "$state", "$timeout", "$
479 483
           "receveOver": $scope.timeoutType == '接单超时' ? 1 : undefined,
480 484
           "receveOverHour": $scope.timeoutNum,
481 485
       }).then(function (res) {
486
+        $rootScope.isMask = false;
482 487
           if (res.status == 200) {
483 488
               $scope.incidentCount = res.incidentCount ? res.incidentCount[0] : {};
484 489
               $scope.userCount = res.userCount || [];