seimin 1 年間 前
コミット
bf214d4707
共有2 個のファイルを変更した9 個の追加10 個の削除を含む
  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 211
     $scope.itemsSaveNoOff = [];
212 212
     api_user_data.getOnlineInfo($scope.searchkeys.date).then(function (result) {
213 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 219
       } else {
221 220
         SweetAlert.swal({
222 221
           title: "系统错误",

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

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