|
|
|
@ -7,7 +7,7 @@ import { NzModalService } from 'ng-zorro-antd/modal';
|
|
|
|
|
import { GetOutOfLineDetailsComponent } from '../today-warning/get-out-of-line-details/get-out-of-line-details.component'; |
|
|
|
|
import { NzMessageService } from 'ng-zorro-antd/message'; |
|
|
|
|
import { DisposeequipmentComponent } from '../records/warning-statistics-list/disposeequipment/disposeequipment.component'; |
|
|
|
|
|
|
|
|
|
import { listRefreshService } from '../../service/listRefresh.service'; |
|
|
|
|
declare var tools |
|
|
|
|
@Component({ |
|
|
|
|
selector: 'app-home-page', |
|
|
|
@ -16,7 +16,7 @@ declare var tools
|
|
|
|
|
}) |
|
|
|
|
export class HomePageComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
constructor(private http: HttpClient, private router: Router, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private message: NzMessageService) { } |
|
|
|
|
constructor(private listRefreshService: listRefreshService, private http: HttpClient, private router: Router, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private message: NzMessageService) { } |
|
|
|
|
warningechartpieAll//全部预警饼图
|
|
|
|
|
warningechartpieOptionAll = { |
|
|
|
|
color: ['#91CCFF', '#46DFFF', '#36A2FF', '#FF6181', '#B4C3FF', '#FF9963', '#5A9CFF', '#4BFFD4', '#46DFFF', '#91CCFF'], |
|
|
|
@ -500,7 +500,13 @@ export class HomePageComponent implements OnInit {
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
this.getHomeAggregation() |
|
|
|
|
}, 10 * 6000); |
|
|
|
|
|
|
|
|
|
this.listRefreshService.getMessage().subscribe((message: any) => { |
|
|
|
|
//列表刷新
|
|
|
|
|
if (message.type == 'add') { |
|
|
|
|
console.log('咱这边收到通知刷新页面了') |
|
|
|
|
this.getHomeAggregation() |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.resolutionRatio() |
|
|
|
|
} |
|
|
|
|