diff --git a/public/pages/property/staffAttendanceManage/staffAttendanceManage.js b/public/pages/property/staffAttendanceManage/staffAttendanceManage.js index f94777e13..8616074ab 100644 --- a/public/pages/property/staffAttendanceManage/staffAttendanceManage.js +++ b/public/pages/property/staffAttendanceManage/staffAttendanceManage.js @@ -152,9 +152,17 @@ ); }, _checkInLog: function(_day) { + let _curMonth = $that.staffAttendanceManageInfo.curMonth; + if (_curMonth < 10) { + _curMonth = "0" + _curMonth; + } + + if (_day < 10) { + _day = "0" + _day; + } vc.emit('staffAttendanceDetail', 'openModel', { staffId: $that.staffAttendanceManageInfo.curStaffId, - date: $that.staffAttendanceManageInfo.curYear + "-" + $that.staffAttendanceManageInfo.curMonth + '-' + _day + date: $that.staffAttendanceManageInfo.curYear + "-" + _curMonth + '-' + _day }) } }