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

调整

parent 8835c938
...@@ -48,6 +48,14 @@ ...@@ -48,6 +48,14 @@
return new Date(today).getTime() ; 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(){ save(){
if(this.form.startTime&&this.form.endTime){ if(this.form.startTime&&this.form.endTime){
this.$confirm('是否继续该操作?', '提示', { this.$confirm('是否继续该操作?', '提示', {
...@@ -55,7 +63,10 @@ ...@@ -55,7 +63,10 @@
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(res=>{ }).then(res=>{
if(this.form.startTime&&this.form.endTime){ 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.loading=true
this.$post('sync/jx',this.form).then(res=>{ this.$post('sync/jx',this.form).then(res=>{
if(res.success){ 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