| | |
| | | import {NzMessageService, NzModalService} from 'ng-zorro-antd'; |
| | | import {Component, OnInit, Injector} from '@angular/core'; |
| | | import {HttpClient} from '@angular/common/http'; |
| | | import {ActivatedRoute} from '@angular/router'; |
| | | import * as echarts from 'echarts'; |
| | | import * as $ from 'jquery'; |
| | | |
| | |
| | | constructor( |
| | | public injector: Injector, |
| | | public http: HttpClient, |
| | | public activeRoute: ActivatedRoute, |
| | | public msgSrv: NzMessageService |
| | | ) { |
| | | for (let index = 0; index < 30; index++) { |
| | |
| | | } |
| | | |
| | | ngOnInit() { |
| | | this.activeRoute.queryParams.subscribe(params => { |
| | | const params = JSON.parse(sessionStorage.getItem("queryParams")); |
| | | if (!!params) { |
| | | localStorage.removeItem("queryParams"); |
| | | const items = this.items = JSON.parse(params.items); |
| | | const timeType = params.type; |
| | | this.http.get(environment.SERVER_BASH_URL + 'report/compare', {params: params}).subscribe((res: any) => { |
| | |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | } else { |
| | | this.msgSrv.error("页面错误,将关闭该页面!"); |
| | | setTimeout("window.close();",1000); |
| | | } |
| | | } |
| | | } |