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

tui

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