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
2a2a9c88
Commit
2a2a9c88
authored
Aug 17, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推
parent
a11b7fd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
2 deletions
+63
-2
attendance-performance-manager-ui/admin/src/assets/mixins/table.js
...e-performance-manager-ui/admin/src/assets/mixins/table.js
+3
-0
attendance-performance-manager-ui/admin/src/components/SearchForm.vue
...erformance-manager-ui/admin/src/components/SearchForm.vue
+58
-0
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
...mance-manager-ui/admin/src/views/attendance/stat/list.vue
+2
-2
No files found.
attendance-performance-manager-ui/admin/src/assets/mixins/table.js
View file @
2a2a9c88
...
...
@@ -72,6 +72,8 @@ export default {
return
;
}
this
.
tableData
.
loading
=
true
;
console
.
log
(
this
.
source
.
token
);
this
.
$post
(
this
.
pageInfo
.
list
,
this
.
query
,
{
cancelToken
:
this
.
source
.
token
,
})
...
...
@@ -100,6 +102,7 @@ export default {
return
;
}
this
.
tableData
.
loading
=
true
;
return
;
this
.
$post
(
"
/attendance/stat/summary
"
,
this
.
query
,
{
cancelToken
:
this
.
source
.
token
,
})
...
...
attendance-performance-manager-ui/admin/src/components/SearchForm.vue
View file @
2a2a9c88
...
...
@@ -160,6 +160,13 @@
title=
"查询"
>
查询
</el-button
>
<el-button
icon=
"el-icon-tickets"
@
click=
"resetTable"
v-if=
"visible"
title=
"重新汇总"
>
重新汇总
</el-button
>
<el-button
icon=
"el-icon-download"
...
...
@@ -198,9 +205,59 @@ export default {
},
},
async
created
()
{
console
.
log
(
this
.
$route
);
this
.
$route
.
name
==
"
attendance/stat/list
"
?
(
this
.
visible
=
true
)
:
(
this
.
visible
=
false
);
this
.
initForm
(
this
.
$route
.
query
);
},
methods
:
{
resetTable
()
{
let
{
path
,
query
}
=
this
.
$route
;
if
(
this
.
form
.
attendanceDateStart
&&
this
.
form
.
attendanceDateEnd
)
{
let
startValue
=
Date
.
parse
(
this
.
form
.
attendanceDateStart
);
let
endValue
=
Date
.
parse
(
this
.
form
.
attendanceDateEnd
);
if
(
startValue
>
endValue
)
{
this
.
$message
.
error
(
"
查询-结束的日期需大于开始日期
"
);
this
.
form
.
attendanceDateEnd
=
""
;
return
false
;
}
}
if
(
this
.
form
.
startTime
&&
this
.
form
.
endTime
)
{
let
startValue
=
Date
.
parse
(
this
.
form
.
startTime
);
let
endValue
=
Date
.
parse
(
this
.
form
.
endTime
);
if
(
startValue
>
endValue
)
{
this
.
$message
.
error
(
"
查询-结束的日期需大于开始日期
"
);
this
.
form
.
endTime
=
""
;
return
false
;
}
}
if
(
this
.
form
.
summaryTimeStart
&&
this
.
form
.
summaryTimeEnd
)
{
let
startValue
=
Date
.
parse
(
this
.
form
.
summaryTimeStart
);
let
endValue
=
Date
.
parse
(
this
.
form
.
summaryTimeEnd
);
if
(
startValue
>
endValue
)
{
this
.
$message
.
error
(
"
查询-结束的日期需大于开始日期
"
);
this
.
form
.
summaryTimeEnd
=
""
;
return
false
;
}
}
else
{
this
.
form
.
summaryTimeStart
=
getFirstDay
();
this
.
form
.
summaryTimeEnd
=
getLastDay
();
}
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
));
//不更改原始数据
let
data
=
this
.
decode
(
params
);
data
.
size
=
-
1
;
this
.
$post
(
"
/attendance/stat/summary
"
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
$message
.
success
(
res
.
msg
);
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
});
},
remoteMethod
(
query
,
searchType
)
{
if
(
query
==
""
)
{
console
.
log
(
"
查询参数为空!
"
);
...
...
@@ -403,6 +460,7 @@ export default {
// groupList: [],
},
remoteOptions
:
{},
visible
:
false
,
};
},
};
...
...
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
View file @
2a2a9c88
...
...
@@ -28,14 +28,14 @@
@
click=
"setdialog"
>
表格设置
</el-button
>
<el-button
<
!--
<
el-button
slot=
"table-head-left2"
style=
"margin-left: 10px"
icon=
"el-icon-tickets"
size=
"mini"
@
click=
"restTable"
>
重新汇总
</el-button
>
>
-->
</LayoutTable>
<dialog-show
ref=
"dialogform"
@
ok=
"getData"
/>
<!-- 表格设置 -->
...
...
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