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
e629acb5
Commit
e629acb5
authored
Aug 08, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推
parent
77a2011b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
22 deletions
+35
-22
attendance-performance-manager-ui/admin/src/assets/mixins/table.js
...e-performance-manager-ui/admin/src/assets/mixins/table.js
+4
-1
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
...mance-manager-ui/admin/src/views/attendance/stat/list.vue
+29
-19
attendance-performance-manager-ui/admin/vue.config.js
attendance-performance-manager-ui/admin/vue.config.js
+2
-2
No files found.
attendance-performance-manager-ui/admin/src/assets/mixins/table.js
View file @
e629acb5
...
...
@@ -625,7 +625,10 @@ export default {
pageInfo
()
{
const
urls
=
{
// 操作所需的url地址,和url同路径
list
:
this
.
$route
.
path
,
list
:
this
.
$route
.
path
.
indexOf
(
"
/attendance/stat/list
"
)
==
0
?
"
/attendance/stat/listExt
"
:
this
.
$route
.
path
,
edit
:
this
.
$route
.
path
.
replace
(
"
/list
"
,
"
/edit
"
),
save
:
this
.
$route
.
path
.
replace
(
"
/list
"
,
"
/save
"
),
del
:
this
.
$route
.
path
.
replace
(
"
/list
"
,
"
/delete
"
),
...
...
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
View file @
e629acb5
...
...
@@ -87,8 +87,8 @@ export default {
},
mixins
:
[
table
],
created
()
{
this
.
query
.
s
tartTime
=
getFirstDay
();
this
.
query
.
endTime
=
getLastDay
();
this
.
query
.
s
ummaryTimeStart
=
getFirstDay
();
this
.
query
.
summaryTimeEnd
=
getLastDay
();
this
.
initalArr
=
this
.
config
.
columns
;
},
methods
:
{
...
...
@@ -102,7 +102,10 @@ export default {
}
},
afterRender
(
data
)
{
this
.
addColumn
=
getdiffdate
(
this
.
query
.
startTime
,
this
.
query
.
endTime
);
this
.
addColumn
=
getdiffdate
(
this
.
query
.
summaryTimeStart
,
this
.
query
.
summaryTimeEnd
);
// 动态处理
let
addobjArr
=
[];
this
.
addColumn
.
map
((
item
,
index
)
=>
{
...
...
@@ -110,7 +113,10 @@ export default {
label
:
item
+
"
(
"
+
getMyDay
(
new
Date
(
item
))
+
"
)
"
,
prop
:
"
attendanceStaffStatEntities
"
,
formatter
:
(
row
)
=>
{
if
(
row
.
attendanceStaffStatEntities
.
length
>
0
)
{
if
(
row
.
attendanceStaffStatEntities
&&
row
.
attendanceStaffStatEntities
.
length
>
0
)
{
return
this
.
handleArr
(
row
.
attendanceStaffStatEntities
,
item
);
}
else
{
return
"
-
"
;
...
...
@@ -123,8 +129,12 @@ export default {
this
.
$forceUpdate
();
},
beforeRender
(
row
)
{
console
.
log
(
row
.
data
);
row
.
data
.
forEach
((
element
)
=>
{
if
(
element
.
attendanceStaffStatEntities
.
length
>
0
)
{
if
(
element
.
attendanceStaffStatEntities
&&
element
.
attendanceStaffStatEntities
.
length
>
0
)
{
element
.
attendanceStaffStatEntities
.
forEach
((
item1
)
=>
{
item1
.
createTime
=
timestampToTime
(
item1
.
createTime
,
3
);
});
...
...
@@ -190,26 +200,26 @@ export default {
label
:
"
全部部门
"
,
fuzzy
:
false
,
},
// {
// name: "groupId",
// type: "select",
// label: "全部考勤组",
// fuzzy: false,
// },
// {
// name: "classId",
// type: "select",
// label: "全部班次",
// fuzzy: false,
// },
{
name
:
"
groupId
"
,
type
:
"
select
"
,
label
:
"
全部考勤组
"
,
fuzzy
:
false
,
},
{
name
:
"
classId
"
,
type
:
"
select
"
,
label
:
"
全部班次
"
,
fuzzy
:
false
,
},
{
name
:
"
startTime
"
,
name
:
"
summaryTimeStart
"
,
type
:
"
date
"
,
label
:
"
考勤开始时间
"
,
fuzzy
:
false
,
},
{
name
:
"
endTime
"
,
name
:
"
summaryTimeEnd
"
,
type
:
"
date
"
,
label
:
"
考勤结束时间
"
,
fuzzy
:
false
,
...
...
attendance-performance-manager-ui/admin/vue.config.js
View file @
e629acb5
...
...
@@ -17,9 +17,9 @@ module.exports = {
hot
:
true
,
//自动保存
proxy
:
{
'
/attendance
'
:
{
//
target: 'http://192.168.0.98:11039',
target
:
'
http://192.168.0.98:11039
'
,
// target: 'http://112.19.80.237:11039',
target
:
'
http://localhost:17500
'
,
//
target: 'http://localhost:17500',
changeOrigin
:
true
,
secure
:
false
,
cookieDomainRewrite
:
'
localhost
'
,
...
...
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