diff --git a/src/views/hrm/clock_record.vue b/src/views/hrm/clock_record.vue index f0bf029f..2fa1d2d8 100644 --- a/src/views/hrm/clock_record.vue +++ b/src/views/hrm/clock_record.vue @@ -223,6 +223,7 @@ daysList.push(i); weekList.push(week); } + daysList.push('统计'); let chartName = this.excelName+that.query.year+'年'+that.query.month+'月考勤统计表'; let tipsData = ['','在岗时间长','在岗时间长','缺卡','缺卡','在岗时间短','在岗时间短','加班','加班']; titleData.push(chartName); @@ -264,6 +265,23 @@ rowData2[dateIndex+1] = recordList[j].create_time.substring(11,16)+'&'+recordList[j].exception_type; } } + + let num1=0,num2=0,numIndex=weekList.length; + for(let i=0;inum2){ + rowData1[numIndex]=num1; + }else{ + rowData1[numIndex]=num2; + } tableData.push(rowData1); tableData.push(rowData2); }