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