Browse Source

[新增]中队页面增加接收title方法

master
邵佳豪 4 years ago
parent
commit
4b058cfbf4
  1. 15
      src/app/statistic-analysis/state/page-zhong-dui-details/page-zhong-dui-details.component.ts

15
src/app/statistic-analysis/state/page-zhong-dui-details/page-zhong-dui-details.component.ts

@ -13,14 +13,23 @@ export class PageZhongDuiDetailsComponent implements OnInit {
title:String
zhongNameData = ["浦东中队","黄埔中队","徐汇中队","长宁中队","静安中队","普陀中队","虹口中队","杨浦中队","闵行中队","宝山中队","嘉定中队"]
zhongNumData = [200,190,180,170,160,150,140,130,120,110,100]
setTitle (title:String) {
this.title = title
}
ngOnInit(): void {
this.route.queryParams.subscribe(params => {
this.title = params.name
})
// this.route.queryParams.subscribe(params => {
// this.title = params.name
// })
setTimeout(() => {
this.detailEcharts()
}, 0);
}
detailEcharts(){
var detailPlanEchart = echarts.init(document.getElementById('detailBox'));
var option = {

Loading…
Cancel
Save