|
|
|
@ -2,6 +2,8 @@ import { Component, OnInit } from '@angular/core';
|
|
|
|
|
import { Router } from '@angular/router'; |
|
|
|
|
import { ActivatedRoute } from '@angular/router'; |
|
|
|
|
import {EchartsDataService} from '../../echarts-data.service'; |
|
|
|
|
import { MatDialogRef, MatDialog, MAT_DIALOG_DATA } from '@angular/material/dialog'; |
|
|
|
|
import { CompangInfoComponent } from '../../compang-info/compang-info.component' |
|
|
|
|
declare var echarts: any; |
|
|
|
|
@Component({ |
|
|
|
|
selector: 'app-add-unit-two-type-details', |
|
|
|
@ -10,7 +12,7 @@ declare var echarts: any;
|
|
|
|
|
}) |
|
|
|
|
export class AddUnitTwoTypeDetailsComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
constructor(public route: ActivatedRoute,private router: Router,public echartsData:EchartsDataService) { } |
|
|
|
|
constructor(public route: ActivatedRoute,private router: Router,public dialog: MatDialog,public echartsData:EchartsDataService) { } |
|
|
|
|
forward(){ |
|
|
|
|
this.router.navigate(['/statisticanalysis/addUnit_one/addUnit_two_type']) |
|
|
|
|
} |
|
|
|
@ -122,6 +124,12 @@ export class AddUnitTwoTypeDetailsComponent implements OnInit {
|
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
this.detailPlanEchart.setOption(option); |
|
|
|
|
this.detailPlanEchart.on('click', (params) => { |
|
|
|
|
//this.router.navigate(['/statisticanalysis/buildingType_one/buildingType_two_reverse'],{queryParams:{'level':params.name}});
|
|
|
|
|
/* const dialogRef = this.dialog.open(CompangInfoComponent, { |
|
|
|
|
width:"400px", |
|
|
|
|
}); */ |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|