Browse Source

处理后台统计数据时间调整

wangcz 7 years ago
parent
commit
23ade75ac9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/webapp/resources/js/admin/controllers/statsDataCtrl.js

+ 2 - 1
src/main/webapp/resources/js/admin/controllers/statsDataCtrl.js

@@ -109,8 +109,9 @@ define([ 'app/app' ], function(app) {
             }
             if ($scope.endDate && bool == 2) {
                 $scope.endDate = new Date($scope.endDate.getFullYear(), $scope.endDate.getMonth(), $scope.endDate.getDate())
-                $scope.endDate = new Date($scope.endDate.getTime() + 23 * 60 * 60 * 1000 + 59 * 60 * 1000 + 59 * 1000);
+                $scope.endDate = new Date($scope.endDate.getTime() - 23 * 60 * 60 * 1000 + 59 * 60 * 1000 + 59 * 1000);
             }
+            $scope.startDate = new Date($scope.startDate.getTime() - 23 * 60 * 60 * 1000 + 59 * 60 * 1000 + 59 * 1000);
         };
 
         $scope.detailOpenClick = function (type) {