|
|
|
@ -30,8 +30,15 @@ export class BuildingTypeThreeDetailsComponent implements OnInit {
|
|
|
|
|
buildingTypeName:String |
|
|
|
|
buildingTypeId |
|
|
|
|
organizationId=[]//本层id
|
|
|
|
|
padHw |
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
if(window.matchMedia("(max-width: 1300px)").matches&&window.matchMedia("(max-height: 700px)").matches){ |
|
|
|
|
this.padHw=true |
|
|
|
|
//this.padjt=
|
|
|
|
|
}else{ |
|
|
|
|
this.padHw=false |
|
|
|
|
} |
|
|
|
|
if(sessionStorage.getItem('refresh') === 'true') { |
|
|
|
|
sessionStorage.removeItem('refresh'); |
|
|
|
|
location.reload(); |
|
|
|
@ -58,7 +65,7 @@ export class BuildingTypeThreeDetailsComponent implements OnInit {
|
|
|
|
|
this.tiaoshiPao=this.echartsData.qipao(this.tiaoshiPao,this.zhongNumData,this.zhongNameData) |
|
|
|
|
this.detailEcharts() |
|
|
|
|
|
|
|
|
|
},1000) |
|
|
|
|
},500) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -85,6 +92,7 @@ export class BuildingTypeThreeDetailsComponent implements OnInit {
|
|
|
|
|
this.detailPlanEchart = echarts.init(document.getElementById('barEchart'),'walden');
|
|
|
|
|
var option = { |
|
|
|
|
title: { |
|
|
|
|
top:this.padHw?50:0, |
|
|
|
|
text: this.buildingTypeName + '(' +this.organizationName + ')'+`:总数(${this.tabledata[0].totalCount})`, |
|
|
|
|
left: "center", |
|
|
|
|
textStyle: { |
|
|
|
@ -92,7 +100,7 @@ export class BuildingTypeThreeDetailsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
grid: { |
|
|
|
|
top: 110, |
|
|
|
|
top:this.padHw?180:110, |
|
|
|
|
//bottom: 10
|
|
|
|
|
}, |
|
|
|
|
xAxis: { |
|
|
|
|