Browse Source

[修改]建筑类型统计第二个界面华为平板自适应

zhuzhou
chenjingyu 4 years ago
parent
commit
81a9a837fb
  1. 2
      src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts
  2. 2
      src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts
  3. 12
      src/app/statistic-analysis/buildingType/building-type-three-details/building-type-three-details.component.ts
  4. 2
      src/app/statistic-analysis/buildingType/building-type-two-reverse/building-type-two-reverse.component.ts
  5. 2
      src/app/statistic-analysis/compang-info/compang-info.component.scss
  6. 2
      src/app/statistic-analysis/echarts-data.service.ts

2
src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts

@ -59,7 +59,7 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit {
this.tiaoshiPao=this.data.qipao(this.tiaoshiPao,this.zhiorbuild=="zhi"?this.buildnumData:this.zhiNumData,this.zhiorbuild=="zhi"?this.buildingData:this.zhiNameData)
//this.initCharts()
this.barEcharts()
},1000)
},500)
}
ngOnDestroy(){
window.clearTimeout(this.setTimeoutObj);

2
src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts

@ -23,7 +23,7 @@ export class BuildingTypeOneComponent implements OnInit {
this.echartsData.getData(null,`/api/StatisticsAnalysis/BuildingTypes`)
window.setTimeout(()=>{
this.initCharts()
},1000)
},500)
}
ngOnDestroy(): void {
this.indexBzt.clear()

12
src/app/statistic-analysis/buildingType/building-type-three-details/building-type-three-details.component.ts

@ -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: {

2
src/app/statistic-analysis/buildingType/building-type-two-reverse/building-type-two-reverse.component.ts

@ -51,7 +51,7 @@ export class BuildingTypeTwoReverseComponent implements OnInit {
this.tiaoshiPao=this.data.qipao(this.tiaoshiPao,this.zhiNumData,this.zhiNameData)
this.barEcharts()
},1000);
},500);
}
ngOnDestroy(): void {

2
src/app/statistic-analysis/compang-info/compang-info.component.scss

@ -1,4 +1,6 @@
.body{
height: 100%;
overflow-y: auto;
display: flex;
flex-direction: column;
.topbox{

2
src/app/statistic-analysis/echarts-data.service.ts

@ -604,7 +604,7 @@ export class EchartsDataService {
//获取所有数据
allDate=[]
obdata
getData(paramsdata,api){
async getData(paramsdata,api){
this.allDate=[]
this.obdata=null
this.http.get(api,{params:paramsdata}).subscribe((data:any)=>{

Loading…
Cancel
Save