seimin 1 jaar geleden
bovenliggende
commit
bf214d4707
2 gewijzigde bestanden met toevoegingen van 9 en 10 verwijderingen
  1. 5 6
      assets/js/controllers/working/workingHistoryFormCtr.js
  2. 4 4
      assets/views/working/statistics.html

+ 5 - 6
assets/js/controllers/working/workingHistoryFormCtr.js

@@ -211,12 +211,11 @@ app.controller('workingHistoryFormCtr', ["$scope", "moment", "SweetAlert", "$sta
211
     $scope.itemsSaveNoOff = [];
211
     $scope.itemsSaveNoOff = [];
212
     api_user_data.getOnlineInfo($scope.searchkeys.date).then(function (result) {
212
     api_user_data.getOnlineInfo($scope.searchkeys.date).then(function (result) {
213
       if (result.data) {
213
       if (result.data) {
214
-        if (result.data.length) {
215
-          $scope.itemsSaveNoOn = result.unOnlineList || [];
216
-          $scope.itemsSaveNoOff = result.unOfflineList || [];
217
-          // 处理过滤数据
218
-          $scope.stateChange(result.data);
219
-        }
214
+        $scope.itemsSaveNoOn = result.unOnlineList || [];
215
+        $scope.itemsSaveNoOff = result.unOfflineList || [];
216
+        // 处理过滤数据
217
+        result.data = result.data || [];
218
+        $scope.stateChange(result.data);
220
       } else {
219
       } else {
221
         SweetAlert.swal({
220
         SweetAlert.swal({
222
           title: "系统错误",
221
           title: "系统错误",

+ 4 - 4
assets/views/working/statistics.html

@@ -72,16 +72,16 @@
72
                                         <th style="width:19%" tooltip='姓名' tooltip-placement="top">
72
                                         <th style="width:19%" tooltip='姓名' tooltip-placement="top">
73
                                             姓名
73
                                             姓名
74
                                         </th>
74
                                         </th>
75
-                                        <th style="width:19%" tooltip='显示当前人员时间范围内所有日期的打卡记录' tooltip-placement="top">
75
+                                        <th style="width:19%" tooltip='上班打了卡,或者下班打了卡,或者不是工作日' tooltip-placement="top">
76
                                             打卡天数
76
                                             打卡天数
77
                                         </th>
77
                                         </th>
78
-                                        <th style="width:19%" tooltip='显示当前人员时间范围内所有日期的打卡记录并且迟到的记录' tooltip-placement="top">
78
+                                        <th style="width:19%" tooltip='必须打卡过,并且迟到了' tooltip-placement="top">
79
                                             迟到次数
79
                                             迟到次数
80
                                         </th>
80
                                         </th>
81
-                                        <th style="width:19%" tooltip='显示当前人员时间范围内所有日期的打卡记录并且早退的记录' tooltip-placement="top">
81
+                                        <th style="width:19%" tooltip='必须打卡过,并且早退了' tooltip-placement="top">
82
                                             早退次数
82
                                             早退次数
83
                                         </th>
83
                                         </th>
84
-                                        <th style="width:19%" tooltip='显示当前人员时间范围内所有日期的打卡记录并且未打下班卡的记录' tooltip-placement="top">
84
+                                        <th style="width:19%" tooltip='必须上午打卡过了,并且下班未打卡' tooltip-placement="top">
85
                                             未打卡下班次数
85
                                             未打卡下班次数
86
                                         </th>
86
                                         </th>
87
                                     </tr>
87
                                     </tr>