diff --git a/klp-ui/src/views/wms/hrm/attendance/attendanceAbnormal.vue b/klp-ui/src/views/wms/hrm/attendance/attendanceAbnormal.vue
index 861a3758b..cdfee5d3c 100644
--- a/klp-ui/src/views/wms/hrm/attendance/attendanceAbnormal.vue
+++ b/klp-ui/src/views/wms/hrm/attendance/attendanceAbnormal.vue
@@ -418,11 +418,11 @@ export default {
methods: {
initDateRange() {
const now = new Date()
- const firstDay = new Date(now.getFullYear(), now.getMonth(), 1)
- const lastDay = new Date(now.getFullYear(), now.getMonth() + 1, 0)
+ const yesterday = new Date(now)
+ yesterday.setDate(yesterday.getDate() - 1)
- this.defaultStartTime = this.formatDate(firstDay)
- this.defaultEndTime = this.formatDate(lastDay)
+ this.defaultStartTime = this.formatDate(yesterday)
+ this.defaultEndTime = this.formatDate(now)
this.dateRangeParams = {
startDate: this.defaultStartTime,
diff --git a/klp-ui/src/views/wms/hrm/attendance/sync.vue b/klp-ui/src/views/wms/hrm/attendance/sync.vue
index ec31b126a..bd66c16d9 100644
--- a/klp-ui/src/views/wms/hrm/attendance/sync.vue
+++ b/klp-ui/src/views/wms/hrm/attendance/sync.vue
@@ -93,7 +93,7 @@
- {{ parseTime(scope.row.createdAt, '{y}-{m}-{d}') }}
+ {{ parseTime(scope.row.createdAt, '{y}-{m}-{d} {h}:{i}:{s}') }}