|
|
|
@ -292,7 +292,7 @@ export class publicEchartsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
isToggle:boolean = true; // 已核查/未核查
|
|
|
|
|
selectType:string = 'month'; //选择当前的 查询类型 按月/年
|
|
|
|
|
selectType:string = 'year'; //选择当前的 查询类型 按月/年
|
|
|
|
|
//查询数据
|
|
|
|
|
years:any = [] |
|
|
|
|
selectMonth:any = [1,2,3,4,5,6,7,8,9,10,11,12] |
|
|
|
@ -305,10 +305,10 @@ export class publicEchartsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
selectOneYear:any = (new Date()).getFullYear() //开始年份
|
|
|
|
|
selectOneYear:any = (new Date()).getFullYear()-2 //开始年份
|
|
|
|
|
selectTwoYear:any = (new Date()).getFullYear() //结束年份
|
|
|
|
|
selectStartMonth:any = 1 //开始月份
|
|
|
|
|
selectEndMonth:any = (new Date()).getMonth()+1 //结束月份
|
|
|
|
|
selectEndMonth:any = (new Date()).getMonth()+2 //结束月份
|
|
|
|
|
//点击月或年
|
|
|
|
|
changeTime(e){ |
|
|
|
|
console.log(e) |
|
|
|
@ -342,11 +342,12 @@ export class publicEchartsComponent implements OnInit {
|
|
|
|
|
this.snackBar.open('请选择正确时间区段','确定',config); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
selectStartYear:any = (new Date()).getFullYear() //开始年份
|
|
|
|
|
selectStartYear:any = (new Date()).getFullYear()-2 //开始年份
|
|
|
|
|
selectEndYear:any = (new Date()).getFullYear() //结束年份
|
|
|
|
|
|
|
|
|
|
//按年查询
|
|
|
|
|
yearSubmit (e) { |
|
|
|
|
console.log(e) |
|
|
|
|
if (e.selectEndYear >= e.selectStartYear) { |
|
|
|
|
let startTime = e.selectStartYear + '-' + 1 + '-' + 1 + ' ' + 0 + ':' + 0 +':'+ 0 |
|
|
|
|
let endTime = e.selectEndYear + '-' + 12 + '-' + 31 + ' ' + 23 + ':' + 59 +':'+ 59 |
|
|
|
@ -408,14 +409,14 @@ export class publicEchartsComponent implements OnInit {
|
|
|
|
|
this.verifieds.oneEcharts.clear() |
|
|
|
|
this.verifieds.oneEcharts.dispose() |
|
|
|
|
this.echartsData.zhiorBuinding="zhi" |
|
|
|
|
this.verifieds.getechartsdata(this.echartsData.dateYear,'1',this.echartsData.dateYear,'12') |
|
|
|
|
this.verifieds.getechartsdata(this.echartsData.dateYear-2+"-"+'01','1',this.echartsData.dateYear+'-'+'12','12') |
|
|
|
|
} |
|
|
|
|
//建筑类型查询
|
|
|
|
|
buildingFind(){ |
|
|
|
|
this.verifieds.oneEcharts.clear() |
|
|
|
|
this.verifieds.oneEcharts.dispose() |
|
|
|
|
this.echartsData.zhiorBuinding="building" |
|
|
|
|
this.verifieds.getechartsdata(this.echartsData.dateYear,'1',this.echartsData.dateYear,'12') |
|
|
|
|
this.verifieds.getechartsdata(this.echartsData.dateYear-2+"-"+'01','1',this.echartsData.dateYear+'-'+'12','12') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -437,7 +438,7 @@ export class verifiedComponent implements OnInit {
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
window.setTimeout(()=>{ |
|
|
|
|
if(this.echartsData.scheduledUpdatesToggle==1){ |
|
|
|
|
this.getechartsdata(this.echartsData.dateYear,'1',this.echartsData.dateYear,'12') |
|
|
|
|
this.getechartsdata(this.echartsData.dateYear-2+"-"+'01','1',this.echartsData.dateYear+'-'+'12','12') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
},0) |
|
|
|
@ -481,8 +482,8 @@ export class verifiedComponent implements OnInit {
|
|
|
|
|
let Parameters={ |
|
|
|
|
MaintainedState:this.route.snapshot.queryParams.type, |
|
|
|
|
TimeType:this.echartsData.TimeType, |
|
|
|
|
TimeStart:this.echartsData.TimeType==0?selectStartYear+'-'+selectStartMonth:this.echartsData.dateYear+'-'+'01', |
|
|
|
|
TimeEnd:this.echartsData.TimeType==0?selectEndYear+'-'+selectEndMonth:this.echartsData.dateYear+'-'+'12', |
|
|
|
|
TimeStart:this.echartsData.TimeType==1?selectStartYear:this.echartsData.dateYear+'-'+'01', |
|
|
|
|
TimeEnd:this.echartsData.TimeType==1?selectEndYear:this.echartsData.dateYear+'-'+'12', |
|
|
|
|
//OrganizationId
|
|
|
|
|
} |
|
|
|
|
console.log(this.echartsData.zhiorBuinding) |
|
|
|
|