提交代码

dev
姜玉琦 2024-05-27 14:55:46 +08:00
parent eed08d7f9d
commit a06876aca5
1 changed files with 12 additions and 10 deletions

View File

@ -101,6 +101,7 @@ export default {
this.$api.attendance.listAttendance(postData).then(d => { this.$api.attendance.listAttendance(postData).then(d => {
this.total = d.total || 0; this.total = d.total || 0;
this.tableData = (d.rows || []).map(it => { this.tableData = (d.rows || []).map(it => {
if (it.vendorsCode != "yanzhu") {
let dt1 = it.attendanceTime; let dt1 = it.attendanceTime;
let dt2 = it.attendanceOutTime; let dt2 = it.attendanceOutTime;
if ((!dt1 || !dt2) || dt1 == dt2) { if ((!dt1 || !dt2) || dt1 == dt2) {
@ -113,6 +114,7 @@ export default {
it.attendanceOutTime = dt; it.attendanceOutTime = dt;
} }
} }
}
it.scanPhoto = it.scanPhoto && it.scanPhoto.indexOf("/profile") == 0 ? "/jhapi" + it.scanPhoto : it.scanPhoto; it.scanPhoto = it.scanPhoto && it.scanPhoto.indexOf("/profile") == 0 ? "/jhapi" + it.scanPhoto : it.scanPhoto;
return it; return it;
}); });