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
07ce3a09
Commit
07ce3a09
authored
Jan 10, 2025
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
8835c938
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
sync.vue
src/views/sbjxgl/sbjxxx/sync.vue
+11
-0
No files found.
src/views/sbjxgl/sbjxxx/sync.vue
View file @
07ce3a09
...
...
@@ -48,6 +48,14 @@
return
new
Date
(
today
).
getTime
()
;
},
getStartOfToday2
(
d
)
{
const
today
=
new
Date
(
d
);
// 重置小时、分钟、秒和毫秒为0
today
.
setHours
(
0
,
0
,
0
,
0
);
return
new
Date
(
today
).
getTime
()
;
},
save
(){
if
(
this
.
form
.
startTime
&&
this
.
form
.
endTime
){
this
.
$confirm
(
'是否继续该操作?'
,
'提示'
,
{
...
...
@@ -55,7 +63,10 @@
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
if
(
this
.
form
.
startTime
&&
this
.
form
.
endTime
){
this
.
form
.
startTime
=
this
.
getStartOfToday2
(
this
.
form
.
startTime
)
this
.
form
.
endTime
=
this
.
getStartOfToday2
(
this
.
form
.
endTime
)
this
.
loading
=
true
this
.
$post
(
'sync/jx'
,
this
.
form
).
then
(
res
=>
{
if
(
res
.
success
){
...
...
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