mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 14:17:24 +08:00
优化代码
This commit is contained in:
parent
fa72950e3f
commit
b8ef94412b
@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user