|
@@ -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);
|
|
},
|
|
},
|