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
863e9d4b
Commit
863e9d4b
authored
Feb 27, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加打卡汇总手动更新
parent
70b7ce8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
0 deletions
+86
-0
attendance-performance-manager-ui/admin/src/views/attendance/record/hik/list.vue
...manager-ui/admin/src/views/attendance/record/hik/list.vue
+86
-0
No files found.
attendance-performance-manager-ui/admin/src/views/attendance/record/hik/list.vue
View file @
863e9d4b
...
...
@@ -38,8 +38,47 @@
:loading=
"btnLoading"
>
极速计算结果
</el-button
>
<el-button
type=
"primary"
size=
"mini"
slot=
"table-head-left2"
v-if=
"showBtn"
style=
"margin-left: 10px"
@
click=
"handleRefresh"
:loading=
"btnFreshLoading"
>
手动更新
</el-button
>
</LayoutTable>
<dialog-show
ref=
"dialogform"
@
ok=
"getData"
/>
<el-dialog
title=
"系统提示"
:visible.sync=
"dialogOpen"
width=
"500px"
append-to-body
@
close=
"cancleFresh"
>
<div
class=
"fresh_box"
>
<div
class=
"title_box"
style=
"margin-bottom: 20px;"
>
仅支持手动更新近90天的打卡数据,请选择需要更新的时间段:
</div>
<el-date-picker
v-model=
"freshDate"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
value-format=
"yyyy-MM-dd"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions0"
>
</el-date-picker>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitFresh"
:loading=
"submitLoad"
>
确 定
</el-button
>
<el-button
@
click=
"cancleFresh"
>
取 消
</el-button>
</div>
</el-dialog>
<el-dialog
:title=
"upload.title"
:visible.sync=
"upload.open"
...
...
@@ -151,6 +190,41 @@ export default {
:
(
this
.
showBtn
=
false
);
},
methods
:
{
submitFresh
()
{
console
.
log
(
this
.
freshDate
);
if
(
this
.
freshDate
)
{
this
.
submitLoad
=
true
;
this
.
$post
(
"
/attendance/record/hik/addAttendanceHikRecordCustom
"
,
{
attendanceDateStart
:
this
.
freshDate
[
0
],
attendanceDateEnd
:
this
.
freshDate
[
1
],
})
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
$message
.
success
(
res
.
msg
);
this
.
dialogOpen
=
false
;
this
.
btnFreshLoading
=
false
;
this
.
submitLoad
=
false
;
}
})
.
catch
((
error
)
=>
{
this
.
$message
.
error
(
res
.
msg
);
this
.
submitLoad
=
false
;
this
.
dialogOpen
=
false
;
this
.
btnFreshLoading
=
false
;
});
}
else
{
this
.
$message
.
error
(
"
请选择时间范围!
"
);
}
},
cancleFresh
()
{
this
.
dialogOpen
=
false
;
this
.
btnFreshLoading
=
false
;
},
// 手动更新
handleRefresh
()
{
this
.
btnFreshLoading
=
true
;
this
.
dialogOpen
=
true
;
},
// 极速计算结果
formatData
()
{
this
.
btnLoading
=
true
;
...
...
@@ -286,7 +360,19 @@ export default {
},
data
()
{
return
{
pickerOptions0
:
{
disabledDate
(
time
)
{
let
curDate
=
new
Date
().
getTime
();
let
three
=
90
*
24
*
3600
*
1000
;
let
threeMonths
=
curDate
-
three
;
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
threeMonths
;
},
},
freshDate
:
""
,
submitLoad
:
false
,
btnLoading
:
false
,
btnFreshLoading
:
false
,
dialogOpen
:
false
,
showBtn
:
false
,
progress
:
false
,
isExport
:
false
,
...
...
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