|
|
@ -409,35 +409,36 @@ export class EchartsDataService { |
|
|
|
BuildingTypeId:datas.id |
|
|
|
BuildingTypeId:datas.id |
|
|
|
} |
|
|
|
} |
|
|
|
//var res
|
|
|
|
//var res
|
|
|
|
this.http.get("/api/StatisticsAnalysis/BuildingTypes",{params:paramsdata}).subscribe((data:any)=>{ |
|
|
|
this.http.get("/api/StatisticsAnalysis",{params:paramsdata}).subscribe((data:any)=>{ |
|
|
|
this.tishiData=data |
|
|
|
this.tishiData=data |
|
|
|
console.log(this.tishiData) |
|
|
|
console.log(this.tishiData) |
|
|
|
this.res= '<div class="tishi" style=" backgroundColor:rgba(255,255,255,1);width:100%;height:100%;"><div style="padding:10px 0 5px 0"><span style="color:#FFFFFF;font-size:27px;text-align: center;display:block;">'+datas.name+'</span></div>' |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
this.res= '<div class="tishi" style=" backgroundColor:rgba(255,255,255,1);width:100%;height:100%;"><div style="padding:10px 0 5px 0"><span style="color:#FFFFFF;font-size:27px;text-align: center;display:block;">'+datas.name+'</span></div>' |
|
|
|
this.res+='</br><div style="width:300px;height:100%;padding:0 20px 15px 20px"><table style="width:300px;font-size:16px; color:#FFFFFF;border-collapse:collapse;"cellspacing="0"; >'; |
|
|
|
this.res+='</br><div style="width:300px;height:100%;padding:0 20px 15px 20px"><table style="width:300px;font-size:16px; color:#FFFFFF;border-collapse:collapse;"cellspacing="0"; >'; |
|
|
|
this.res+='<thead style="font-size:18px;"><tr>'; |
|
|
|
this.res+='<thead style="font-size:18px;"><tr>'; |
|
|
|
this.res+='<td style="text-align:center;width:30%;">名称</td>'; |
|
|
|
this.res+='<td style="text-align:center;width:30%;>名称</td>'; |
|
|
|
this.res+='<td style="text-align:center;width:30%;">数量</td>' |
|
|
|
this.res+='<td style="text-align:center;width:30%;">数量</td>' |
|
|
|
this.res+='<td style="text-align:center;width:30%;">总占比</td>' |
|
|
|
this.res+='<td style="text-align:center;width:30%;">总占比</td>' |
|
|
|
this.res+='</tr></thead>' |
|
|
|
this.res+='</tr></thead>' |
|
|
|
this.res+='<tbody>'; |
|
|
|
this.res+='<tbody>'; |
|
|
|
var countall=0 |
|
|
|
var countall=0 |
|
|
|
for(var i=0;i<this.tishiData.organizationStatistics.organizations.length;i++){ |
|
|
|
for(var i=0;i<this.tishiData.companyStatistics.organizationStatistics.organizations.length;i++){ |
|
|
|
countall+=this.tishiData.organizationStatistics.organizations[i].count |
|
|
|
countall+=this.tishiData.companyStatistics.organizationStatistics.organizations[i].count |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//var res='<div class="tishi" style=" width:100%;height:100%;"><div style="padding:10px 0 5px 0"><span >'+biaotou+'</span></div>'
|
|
|
|
//var res='<div class="tishi" style=" width:100%;height:100%;"><div style="padding:10px 0 5px 0"><span >'+biaotou+'</span></div>'
|
|
|
|
for(var i=0;i<this.tishiData.organizationStatistics.organizations.length;i++){ |
|
|
|
for(var i=0;i<this.tishiData.companyStatistics.organizationStatistics.organizations.length;i++){ |
|
|
|
this.res+='<tr>' |
|
|
|
this.res+='<tr>' |
|
|
|
this.res+='<td style="text-align:center;">'+this.tishiData.organizationStatistics.organizations[i].organizationName+'</td>' |
|
|
|
this.res+='<td style="text-align:center;width:30%;">'+this.tishiData.companyStatistics.organizationStatistics.organizations[i].organizationName+'</td>' |
|
|
|
this.res+='<td style="text-align:center;">'+this.tishiData.organizationStatistics.organizations[i].count+'</td>' |
|
|
|
this.res+='<td style="text-align:center;width:30%;">'+this.tishiData.companyStatistics.organizationStatistics.organizations[i].count+'</td>' |
|
|
|
this.res+='<td style="text-align:center;">'+Math.round(this.tishiData.organizationStatistics.organizations[i].count/countall* 10000)/ 100.00 +'%</td></tr>' |
|
|
|
this.res+='<td style="text-align:center;width:30%;">'+Math.round(this.tishiData.companyStatistics.organizationStatistics.organizations[i].count/countall* 10000)/ 100.00 +'%</td></tr>' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.res+='</tbody>' |
|
|
|
this.res+='</tbody>' |
|
|
|
this.res+='<tfoot style="font-size:18px;"><td style="text-align:center;">总计</td><td style="text-align:center;">'+this.tishiData.totalCount+'</td><td style="text-align:center;">100%</td></tfoot>' |
|
|
|
this.res+='<tfoot style="font-size:18px;"><td style="text-align:center;">总计</td><td style="text-align:center;">'+this.tishiData.companyStatistics.totalCount+'</td><td style="text-align:center;">100%</td></tfoot>' |
|
|
|
this.res+='</table></div></div>' |
|
|
|
this.res+='</table></div></div>' |
|
|
|
return this.res |
|
|
|
return this.res |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
zhiNameData = ["浦东支队","黄浦支队","徐汇支队","长宁支队","静安支队","普陀支队","虹口支队","杨浦支队","闵行支队","宝山支队","嘉定支队","松江支队","金山支队","崇明支队"] |
|
|
|
zhiNameData = ["浦东支队","黄浦支队","徐汇支队","长宁支队","静安支队","普陀支队","虹口支队","杨浦支队","闵行支队","宝山支队","嘉定支队","松江支队","金山支队","崇明支队"] |
|
|
|