Commit 07ce3a09 authored by 李苏's avatar 李苏 💬

调整

parent 8835c938
......@@ -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){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment