去除导航
This commit is contained in:
@@ -1,4 +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';
|
||||
|
||||
@Component({
|
||||
selector: 'app-data-synchronize',
|
||||
@@ -6,10 +9,30 @@ import { Component, OnInit } from '@angular/core';
|
||||
styleUrls: ['./data-synchronize.component.scss']
|
||||
})
|
||||
export class DataSynchronizeComponent implements OnInit {
|
||||
selectedValue:any='1';
|
||||
dateRange:any='';
|
||||
search:any={
|
||||
date_start:'',
|
||||
date_end:''
|
||||
}
|
||||
constructor() { }
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
onChange(result: Date): void {
|
||||
this.search.date_start=this.changeDate(result[0]);
|
||||
this.search.date_end=this.changeDate(result[1]);
|
||||
|
||||
}
|
||||
//日期时间处理
|
||||
changeDate(time){
|
||||
var date = new Date(time);
|
||||
var Y = date.getFullYear()+'';
|
||||
var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1)+'';
|
||||
var D = (date.getDate()<10?'0'+date.getDate():date.getDate())+'';
|
||||
var h = (date.getHours()<10?'0'+date.getHours():date.getHours())+'' ;
|
||||
var m = (date.getMinutes()<10?'0'+date.getMinutes():date.getMinutes())+'';
|
||||
var s = date.getSeconds()<10?'0'+date.getSeconds():date.getSeconds()+'';
|
||||
return Y+'-'+M+'-'+D+' '+h+':'+m+':'+s;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user