删除调试信息
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { HttpClientService } from '../../../services/http-client.service';
|
||||
import { Router } from '@angular/router';
|
||||
import { NzMessageService } from 'ng-zorro-antd';
|
||||
import { NzMessageService,NzModalRef, NzModalService } from 'ng-zorro-antd';
|
||||
|
||||
@Component({
|
||||
selector: 'app-data-synchronize',
|
||||
@@ -12,16 +12,20 @@ export class DataSynchronizeComponent implements OnInit {
|
||||
selectedValue:any='1';
|
||||
dateRange:any='';
|
||||
search:any={
|
||||
date_start:'',
|
||||
date_end:''
|
||||
startDate:'',
|
||||
endDate:''
|
||||
}
|
||||
constructor() { }
|
||||
constructor(
|
||||
private http:HttpClientService,
|
||||
private message: NzMessageService,
|
||||
private modal: NzModalService,
|
||||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
onChange(result: Date): void {
|
||||
this.search.date_start=this.changeDate(result[0]);
|
||||
this.search.date_end=this.changeDate(result[1]);
|
||||
this.search.startDate=this.changeDate(result[0]);
|
||||
this.search.endDate=this.changeDate(result[1]);
|
||||
|
||||
}
|
||||
//日期时间处理
|
||||
@@ -35,4 +39,16 @@ export class DataSynchronizeComponent implements OnInit {
|
||||
var s = date.getSeconds()<10?'0'+date.getSeconds():date.getSeconds()+'';
|
||||
return Y+'-'+M+'-'+D+' '+h+':'+m+':'+s;
|
||||
}
|
||||
|
||||
//保存
|
||||
save(){
|
||||
this.http.post('/msgexchangeapi/schd/sync',this.search).subscribe((json)=>{
|
||||
if(json.is_success){
|
||||
this.message.success(`提交成功!`);
|
||||
}else{
|
||||
this.message.error(`提交失败!`);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user