优化代码

This commit is contained in:
java110 2022-09-09 10:35:18 +08:00
parent c376c64d37
commit fa72950e3f
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
_initEvent: function() {
vc.on('staffAttendanceDetail', 'openModel', function(_param) {
$('#staffAttendanceDetailModel').modal('show');
$that.staffAttendanceDetailInfo.feeDetailDiscounts = [];
$that.staffAttendanceDetailInfo.details = [];
vc.component._loadStaffAttendanceDetailInfo(_param);
});
},

View File

@ -154,7 +154,7 @@
_checkInLog: function(_day) {
vc.emit('staffAttendanceDetail', 'openModel', {
staffId: $that.staffAttendanceManageInfo.curStaffId,
date: $that.staffAttendanceManageInfo.curYear + "-" + $that.staffAttendanceManageInfo.curMonth + '-' + $that.staffAttendanceManageInfo.curDate
date: $that.staffAttendanceManageInfo.curYear + "-" + $that.staffAttendanceManageInfo.curMonth + '-' + _day
})
}
}