Commit 9aa2b17f authored by 姬鋆屾's avatar 姬鋆屾

tui

parent d14e03c8
...@@ -102,8 +102,11 @@ export default { ...@@ -102,8 +102,11 @@ export default {
methods: { methods: {
// 处理 // 处理
handleArr(arr, currentTime) { handleArr(arr, currentTime) {
let index = arr.findIndex((item) => item.createTime === currentTime); console.log(currentTime);
console.log(arr);
let index = arr.findIndex((item) => item.createTime == currentTime);
if (index > -1) { if (index > -1) {
console.log(arr[index].attendanceSummary);
return arr[index].attendanceSummary; return arr[index].attendanceSummary;
} else { } else {
return "-"; return "-";
...@@ -263,16 +266,21 @@ export default { ...@@ -263,16 +266,21 @@ export default {
{ label: "出勤天数", prop: "goTimes", formatter: this.formatter }, { label: "出勤天数", prop: "goTimes", formatter: this.formatter },
{ {
label: "上午缺卡次数", label: "缺卡次数",
prop: "morningTimes", prop: "morningTimes",
formatter: this.formatter, formatter: this.formatter,
}, },
// {
// label: "上午缺卡次数",
// prop: "morningTimes",
// formatter: this.formatter,
// },
{ // {
label: "下午缺卡次数", // label: "下午缺卡次数",
prop: "afternoonTimes", // prop: "afternoonTimes",
formatter: this.formatter, // formatter: this.formatter,
}, // },
{ label: "回单位(天)", prop: "backToUnit" }, { label: "回单位(天)", prop: "backToUnit" },
{ label: "因公请假(天)", prop: "onDutyLeave" }, { label: "因公请假(天)", prop: "onDutyLeave" },
......
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