优化文档

This commit is contained in:
Your Name 2023-02-25 19:10:23 +08:00
parent 7183ce6cf8
commit 9ca54f153a
2 changed files with 11 additions and 6 deletions

View File

@ -24,11 +24,14 @@
<span @click="_replenishCheckIn(index)">补考勤</span>
</div>
<div>{{staffAttendanceManageInfo.curYear}}-{{staffAttendanceManageInfo.curMonth}}-{{index}}</div>
<div>状态:
<span v-html="_getAttendanceState(index)"></span>
</div>
<div v-for="(item,detailIndex) in _getAttendanceDetail(index)">{{item.specCd=='1001'?'上班':'下班'}}{{item.stateName}}
<span v-if="item.checkTime">({{item.checkTime}})</span>
<div v-for="(item,detailIndex) in _getAttendanceDetail(index)">
<div v-if="item.rest">休息</div>
<div v-else>
{{item.specCd=='1001'?'上班':'下班'}}
<span v-if="item.state != '10000'">{{vc.timeFormat(item.checkTime)}}</span>
<span v-else> - </span>
<span>({{item.stateName}})</span>
</div>
</div>
<div>
<a href="javascript:void(0)" @click="_checkInLog(index)">考勤记录</a>

View File

@ -92,7 +92,9 @@
_getAttendanceDetail: function (_day) {
let _attendance = $that._getDayAttendance(_day);
if (!_attendance) {
return [];
return [{
rest:'休息',
}];
}
return _attendance.attendanceClassesTaskDetails;
},