Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zghywpc-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
zghywpc-vue
Commits
8835c938
Commit
8835c938
authored
Jan 10, 2025
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间戳调整
parent
575e7461
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
sync.vue
src/views/sbjxgl/sbjxxx/sync.vue
+14
-5
No files found.
src/views/sbjxgl/sbjxxx/sync.vue
View file @
8835c938
<
template
>
<DefaultDialog
:app=
'app'
>
<div
v-loading=
"loading"
element-loading-text=
'正在同步请稍后!'
slot=
"form"
style=
"display: flex;padding: 30px;padding-bottom: 60px;"
class=
"flex-center"
>
<RelDate
time
rangeV2
:form=
'form'
start=
'startTime'
end=
'endTime'
/>
<RelDaterangeV2
:form=
'form'
start=
'startTime'
end=
'endTime'
/>
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -25,20 +25,29 @@
}
},
async
mounted
()
{
this
.
form
.
endTime
=
this
.
getStartOfToday
()
this
.
form
.
startTime
=
this
.
getStartOfToday
()
-
7
*
24
*
60
*
60
*
1000
},
data
()
{
return
{
loading
:
false
,
form
:{
startTime
:
new
Date
().
getTime
()
-
7
*
24
*
60
*
60
*
1000
,
endTime
:
new
Date
().
getTime
()
startTime
:
''
,
endTime
:
''
}
}
},
methods
:
{
getStartOfToday
()
{
const
today
=
new
Date
();
// 重置小时、分钟、秒和毫秒为0
today
.
setHours
(
0
,
0
,
0
,
0
);
return
new
Date
(
today
).
getTime
()
;
},
save
(){
if
(
this
.
form
.
startTime
&&
this
.
form
.
endTime
){
this
.
$confirm
(
'是否继续该操作?'
,
'提示'
,
{
...
...
@@ -48,7 +57,7 @@
}).
then
(
res
=>
{
if
(
this
.
form
.
startTime
&&
this
.
form
.
endTime
){
this
.
loading
=
true
this
.
$post
(
'
jxgl/usbjx/
sync/jx'
,
this
.
form
).
then
(
res
=>
{
this
.
$post
(
'sync/jx'
,
this
.
form
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功!'
)
this
.
loading
=
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