删除调试信息

This commit is contained in:
liweijin
2018-12-24 18:10:01 +08:00
parent 6fe99c9d80
commit efa9fd3dfd
7 changed files with 22 additions and 38 deletions
@@ -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(`提交失败!`);
}
})
}
}