打卡统计
This commit is contained in:
parent
3c718311db
commit
f96cde3f00
|
@ -265,23 +265,16 @@
|
||||||
rowData2[dateIndex+1] = recordList[j].create_time.substring(11,16)+'&'+recordList[j].exception_type;
|
rowData2[dateIndex+1] = recordList[j].create_time.substring(11,16)+'&'+recordList[j].exception_type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// debugger;
|
||||||
let num1=0,num2=0,numIndex=weekList.length;
|
// console.log(rowData1)
|
||||||
|
// console.log(rowData2)
|
||||||
|
let num1=0,numIndex=weekList.length;
|
||||||
for(let i=0;i<rowData1.length;i++){
|
for(let i=0;i<rowData1.length;i++){
|
||||||
if(rowData1[i]!==undefined){
|
if(rowData1[i]!==undefined||rowData2[i]!==undefined){
|
||||||
num1++;
|
num1++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(let j=0;j<rowData2.length;j++){
|
rowData1[numIndex]=num1-2;
|
||||||
if(rowData2[j]!==undefined){
|
|
||||||
num2++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(num1>num2){
|
|
||||||
rowData1[numIndex]=num1;
|
|
||||||
}else{
|
|
||||||
rowData1[numIndex]=num2;
|
|
||||||
}
|
|
||||||
tableData.push(rowData1);
|
tableData.push(rowData1);
|
||||||
tableData.push(rowData2);
|
tableData.push(rowData2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue