浏览代码

Merge branch 'master' of http://47.92.161.104:10080/shuzhan/shinestar-portal

yanliming 4 年之前
父节点
当前提交
fb3cdb9252
共有 2 个文件被更改,包括 14 次插入3 次删除
  1. 1 0
      src/views/base/holidayInfo-list.vue
  2. 13 3
      src/views/business/workScheduleAttendance-day-stat.vue

+ 1 - 0
src/views/base/holidayInfo-list.vue

@@ -586,6 +586,7 @@ export default {
     this.changePage(1);
     this.changePage(1);
   },
   },
   components: {
   components: {
+    "el-select-tree": SelectTree,
     "holidayInfo-detail": holidayInfoDetail,
     "holidayInfo-detail": holidayInfoDetail,
     "holidayCompany-list":holidayCompanyList
     "holidayCompany-list":holidayCompanyList
   },
   },

+ 13 - 3
src/views/business/workScheduleAttendance-day-stat.vue

@@ -132,16 +132,15 @@
                   <td>上班时间:</td>
                   <td>上班时间:</td>
                   <td>{{item.workTime}}</td>
                   <td>{{item.workTime}}</td>
                   <td>打卡时间:</td>
                   <td>打卡时间:</td>
-                  <td>{{item.workBeginAttendance!=null ? item.workBeginAttendance.recordTime : ""}}</td>
+                  <td v-html="showAttendanceTime(item.workBeginAttendance)"></td>
                 </tr>
                 </tr>
                 <tr>
                 <tr>
                   <td>下班时间:</td>
                   <td>下班时间:</td>
                   <td>{{item.closingTime}}</td>
                   <td>{{item.closingTime}}</td>
                   <td>打卡时间:</td>
                   <td>打卡时间:</td>
-                  <td>{{item.workEndAttendance!=null ? item.workEndAttendance.recordTime : ""}}</td>
+                  <td v-html="showAttendanceTime(item.workEndAttendance)"></td>
                 </tr>
                 </tr>
               </table>
               </table>
-              
             </div>
             </div>
           </div>
           </div>
         </template>
         </template>
@@ -228,6 +227,17 @@ export default {
     });
     });
   },
   },
   methods: {
   methods: {
+    showAttendanceTime(workAttendance) {
+      if(workAttendance==null){
+        return "无记录";
+      }
+      if(workAttendance.result=="0"){
+        return "缺卡";
+      }
+      else{
+        return workAttendance.recordTime;
+      }
+    },
     indexMethod(index) {
     indexMethod(index) {
       return (this.pageIndex - 1) * this.pageSize + (index + 1);
       return (this.pageIndex - 1) * this.pageSize + (index + 1);
     },
     },