|
|
|
@ -19,7 +19,6 @@ export class AddUnitTwoTimeComponent implements OnInit {
|
|
|
|
|
tabledata |
|
|
|
|
zongcount=0 |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
console.log(this.serviceData.zuzhiorBuilding) |
|
|
|
|
this.serviceData.selectType=0 |
|
|
|
|
this.dateInit () |
|
|
|
|
this.route.queryParams.subscribe(param=>{ |
|
|
|
@ -53,7 +52,7 @@ export class AddUnitTwoTimeComponent implements OnInit {
|
|
|
|
|
this.serviceData.getData(this.serviceData.zuzhiorBuilding=='zhi'?parbuild:parzhi,`/api/StatisticsAnalysis`) |
|
|
|
|
this.setTimeoutObj = window.setTimeout(() => { |
|
|
|
|
this.tabledata=JSON.parse(JSON.stringify(this.serviceData.allDate)) |
|
|
|
|
console.log(this.tabledata) |
|
|
|
|
//console.log(this.tabledata)
|
|
|
|
|
for(var i=0;i<this.tabledata[0].companyStatistics.trendStatistics.added.length;i++){ |
|
|
|
|
if(this.tabledata[0].companyStatistics.trendStatistics.added[i].month>=this.serviceData.selectStartMonth||this.tabledata[0].companyStatistics.trendStatistics.added[i].month<=this.serviceData.selectEndMonth){ |
|
|
|
|
this.date.push(this.tabledata[0].companyStatistics.trendStatistics.added[i].month) |
|
|
|
@ -95,7 +94,7 @@ export class AddUnitTwoTimeComponent implements OnInit {
|
|
|
|
|
monthSubmit (e) { |
|
|
|
|
this.serviceData.selectStartMonth=this.selectStartMonth |
|
|
|
|
this.serviceData.selectEndMonth=this.selectEndMonth |
|
|
|
|
console.log(this.selectStartMonth,this.selectEndMonth) |
|
|
|
|
//console.log(this.selectStartMonth,this.selectEndMonth)
|
|
|
|
|
this.date=[] |
|
|
|
|
this.dateNum=[] |
|
|
|
|
this.zongcount=0 |
|
|
|
@ -109,7 +108,6 @@ export class AddUnitTwoTimeComponent implements OnInit {
|
|
|
|
|
this.zongcount=this.zongcount+this.tabledata[0].companyStatistics.trendStatistics.added[i].count |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
console.log(this.dateNum) |
|
|
|
|
//this.oneInit (this.date,this.dateNum)
|
|
|
|
|
this.tiaoshiPao=this.serviceData.qipao(this.tiaoshiPao,this.dateNum,this.date) |
|
|
|
|
this.twoInit (this.date,this.dateNum,'month') |
|
|
|
@ -153,7 +151,7 @@ export class AddUnitTwoTimeComponent implements OnInit {
|
|
|
|
|
this.serviceData.getData(paramdata,`/api/StatisticsAnalysis`) |
|
|
|
|
this.setTimeoutObj = window.setTimeout(() => { |
|
|
|
|
this.tabledata=JSON.parse(JSON.stringify(this.serviceData.allDate)) |
|
|
|
|
console.log(this.tabledata) |
|
|
|
|
//console.log(this.tabledata)
|
|
|
|
|
for(var i=0;i<this.tabledata[0].companyStatistics.trendStatistics.added.length;i++){ |
|
|
|
|
this.dateNum2.push(this.tabledata[0].companyStatistics.trendStatistics.added[0].count) |
|
|
|
|
this.zongcount=this.zongcount+this.tabledata[0].companyStatistics.trendStatistics.added[i].count |
|
|
|
|