From b8ef94412b6723dccffcbfb1e9b80d03c91a40af Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Fri, 9 Sep 2022 10:38:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../staffAttendanceManage/staffAttendanceManage.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 }) } }