打卡统计添加统计
This commit is contained in:
parent
f2e1f450ef
commit
3c718311db
|
@ -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;i<rowData1.length;i++){
|
||||
if(rowData1[i]!==undefined){
|
||||
num1++;
|
||||
}
|
||||
}
|
||||
for(let j=0;j<rowData2.length;j++){
|
||||
if(rowData2[j]!==undefined){
|
||||
num2++;
|
||||
}
|
||||
}
|
||||
if(num1>num2){
|
||||
rowData1[numIndex]=num1;
|
||||
}else{
|
||||
rowData1[numIndex]=num2;
|
||||
}
|
||||
tableData.push(rowData1);
|
||||
tableData.push(rowData2);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue