|
|
@ -5,6 +5,7 @@ import * as echarts from 'echarts'; |
|
|
|
import * as moment from 'moment'; |
|
|
|
import * as moment from 'moment'; |
|
|
|
import { NzModalService } from 'ng-zorro-antd/modal'; |
|
|
|
import { NzModalService } from 'ng-zorro-antd/modal'; |
|
|
|
import { GetOutOfLineDetailsComponent } from '../today-warning/get-out-of-line-details/get-out-of-line-details.component'; |
|
|
|
import { GetOutOfLineDetailsComponent } from '../today-warning/get-out-of-line-details/get-out-of-line-details.component'; |
|
|
|
|
|
|
|
import { NzMessageService } from 'ng-zorro-antd/message'; |
|
|
|
@Component({ |
|
|
|
@Component({ |
|
|
|
selector: 'app-home-page', |
|
|
|
selector: 'app-home-page', |
|
|
|
templateUrl: './home-page.component.html', |
|
|
|
templateUrl: './home-page.component.html', |
|
|
@ -12,7 +13,7 @@ import { GetOutOfLineDetailsComponent } from '../today-warning/get-out-of-line-d |
|
|
|
}) |
|
|
|
}) |
|
|
|
export class HomePageComponent implements OnInit { |
|
|
|
export class HomePageComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
constructor(private http: HttpClient, private router: Router, private modal: NzModalService, private viewContainerRef: ViewContainerRef) { } |
|
|
|
constructor(private http: HttpClient, private router: Router, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private message: NzMessageService) { } |
|
|
|
|
|
|
|
|
|
|
|
warningechartpie//预警饼图
|
|
|
|
warningechartpie//预警饼图
|
|
|
|
warningechartpieOption = { |
|
|
|
warningechartpieOption = { |
|
|
@ -641,6 +642,10 @@ export class HomePageComponent implements OnInit { |
|
|
|
isOpenModel: boolean = false |
|
|
|
isOpenModel: boolean = false |
|
|
|
|
|
|
|
|
|
|
|
look(item) { |
|
|
|
look(item) { |
|
|
|
|
|
|
|
console.log(item) |
|
|
|
|
|
|
|
if (item.notification.data.eventSystemName == '灭火器维护' || item.notification.data.eventSystemName == '证照预警') { |
|
|
|
|
|
|
|
this.message.create('warning', `证照或者器材即将临期,请联系加油站处理!`); |
|
|
|
|
|
|
|
} else { |
|
|
|
this.isOpenModel = true |
|
|
|
this.isOpenModel = true |
|
|
|
let data = { |
|
|
|
let data = { |
|
|
|
violateImage: item.notification.data.violateImage, |
|
|
|
violateImage: item.notification.data.violateImage, |
|
|
@ -673,6 +678,9 @@ export class HomePageComponent implements OnInit { |
|
|
|
this.readMess(item.notification.id) |
|
|
|
this.readMess(item.notification.id) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//标记为已读
|
|
|
|
//标记为已读
|
|
|
|
readMess(id) { |
|
|
|
readMess(id) { |
|
|
|
let body = { |
|
|
|
let body = { |
|
|
|