diff --git a/src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.ts b/src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.ts index b7115f1..323b9e7 100644 --- a/src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.ts +++ b/src/app/statistic-analysis/deleteUnit/delete-four/delete-four.component.ts @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-09-02 16:22:58 * @LastEditors: sueRimn - * @LastEditTime: 2020-09-05 14:53:43 + * @LastEditTime: 2020-09-07 08:50:58 */ import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; @@ -23,10 +23,15 @@ export class DeleteFourComponent implements OnInit { constructor(public route: ActivatedRoute,public data: EchartsDataService,public snackBar: MatSnackBar,private adapter: DateAdapter) { } zhongNameData = ["浦东中队","黄埔中队","徐汇中队","长宁中队","静安中队","普陀中队","虹口中队","杨浦中队","闵行中队","宝山中队","嘉定中队"] zhongNumData = [200,190,180,170,160,150,140,130,120,110,100] - + level:string; ngOnInit(): void { + + this.route.queryParams.subscribe(param=>{ + this.level=param.level + console.log(this.level) + }); window.setTimeout(()=>{ - this.detailEcharts() + this.detailEcharts(this.level) }) } //返回 @@ -35,11 +40,11 @@ export class DeleteFourComponent implements OnInit { this.data.statefulInspectionToggle = true } - detailEcharts(){ + detailEcharts(level){ var detailPlanEchart = echarts.init(document.getElementById('detailBox')); var option = { title: { - text: this.data.statefulInspectionName, + text: level, left: "center", textStyle: { fontSize: 28 diff --git a/src/app/statistic-analysis/deleteUnit/delete-there/delete-there.component.html b/src/app/statistic-analysis/deleteUnit/delete-there/delete-there.component.html index 809c908..87a4b7f 100644 --- a/src/app/statistic-analysis/deleteUnit/delete-there/delete-there.component.html +++ b/src/app/statistic-analysis/deleteUnit/delete-there/delete-there.component.html @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-09-02 16:22:35 * @LastEditors: sueRimn - * @LastEditTime: 2020-09-05 16:35:25 + * @LastEditTime: 2020-09-07 08:41:54 -->