优化代码

This commit is contained in:
java110 2022-09-09 10:38:53 +08:00
parent fa72950e3f
commit b8ef94412b

View File

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