From 3c718311db6eb30116b786fa775393834a2cf2c6 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 2 Jun 2023 17:07:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=A1=E7=BB=9F=E8=AE=A1=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/hrm/clock_record.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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); }