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
5276c24c
Commit
5276c24c
authored
Aug 17, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
28272a61
ac711bb9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
attendance-performance-manager-ui/admin/src/assets/mixins/table.js
...e-performance-manager-ui/admin/src/assets/mixins/table.js
+0
-1
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
...mance-manager-ui/admin/src/views/attendance/stat/list.vue
+7
-6
No files found.
attendance-performance-manager-ui/admin/src/assets/mixins/table.js
View file @
5276c24c
...
@@ -72,7 +72,6 @@ export default {
...
@@ -72,7 +72,6 @@ export default {
return
;
return
;
}
}
this
.
tableData
.
loading
=
true
;
this
.
tableData
.
loading
=
true
;
console
.
log
(
this
.
source
.
token
);
this
.
$post
(
this
.
pageInfo
.
list
,
this
.
query
,
{
this
.
$post
(
this
.
pageInfo
.
list
,
this
.
query
,
{
cancelToken
:
this
.
source
.
token
,
cancelToken
:
this
.
source
.
token
,
...
...
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
View file @
5276c24c
...
@@ -113,12 +113,15 @@ export default {
...
@@ -113,12 +113,15 @@ export default {
},
},
// 处理
// 处理
handleArr
(
arr
,
currentTime
)
{
handleArr
(
arr
,
currentTime
)
{
console
.
log
(
currentTime
);
console
.
log
(
arr
);
let
index
=
arr
.
findIndex
((
item
)
=>
item
.
createTime
==
currentTime
);
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
;
<
el
-
tag
type
=
{
"
danger
"
}
size
=
"
mini
"
>
{
arr
[
index
].
attendanceSummary
}
<
/el-tag
>
)
:
(
"
-
"
);
}
else
{
}
else
{
return
"
-
"
;
return
"
-
"
;
}
}
...
@@ -186,7 +189,6 @@ export default {
...
@@ -186,7 +189,6 @@ export default {
this
.
setcolum
=
this
.
setcolum
.
filter
(
this
.
setcolum
=
this
.
setcolum
.
filter
(
(
val
)
=>
val
.
prop
!==
"
attendanceStaffStatEntities
"
(
val
)
=>
val
.
prop
!==
"
attendanceStaffStatEntities
"
);
);
console
.
log
(
this
.
setcolum
);
},
},
lookexportHis
()
{
lookexportHis
()
{
this
.
drawerhistory
=
true
;
this
.
drawerhistory
=
true
;
...
@@ -342,7 +344,6 @@ export default {
...
@@ -342,7 +344,6 @@ export default {
label
:
"
出勤率%
"
,
label
:
"
出勤率%
"
,
prop
:
"
attendanceRate
"
,
prop
:
"
attendanceRate
"
,
formatter
:
(
row
)
=>
{
formatter
:
(
row
)
=>
{
console
.
log
(
row
);
return
row
.
attendanceRate
return
row
.
attendanceRate
?
(
Number
(
row
.
attendanceRate
)
*
100
).
toFixed
(
2
)
+
"
%
"
?
(
Number
(
row
.
attendanceRate
)
*
100
).
toFixed
(
2
)
+
"
%
"
:
"
--
"
;
:
"
--
"
;
...
...
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