Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
97cca737
Commit
97cca737
authored
Mar 13, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推修改考勤汇总异常日期相同时添加多个异常原因展示
parent
a4b56842
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
...mance-manager-ui/admin/src/views/attendance/stat/list.vue
+12
-0
No files found.
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
View file @
97cca737
...
...
@@ -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
?
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment