Commit 97cca737 authored by 姬鋆屾's avatar 姬鋆屾

推修改考勤汇总异常日期相同时添加多个异常原因展示

parent a4b56842
......@@ -165,6 +165,18 @@ export default {
},
// 处理
handleArr(arr, currentTime) {
// 处理createTime相同的数据
for (let i = 0; i < arr.length; i++) {
for (let j = i + 1; j < arr.length; j++) {
if (arr[i]["createTime"] == arr[j]["createTime"]) {
if (arr[i]["attendanceSummary"].indexOf("; ") == -1) {
arr[i]["attendanceSummary"] =
arr[i]["attendanceSummary"] + "; " + arr[j].attendanceSummary;
}
}
}
}
let index = arr.findIndex((item) => item.createTime == currentTime);
if (index > -1) {
return arr[index].attendanceSummary ? (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment