|
|
|
@ -106,15 +106,16 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
modalData |
|
|
|
|
look(item) { |
|
|
|
|
if (item.notification.data.properties.EventSystemName == '灭火器维护' || item.notification.data.properties.EventSystemName == '证照预警') { |
|
|
|
|
this.message.create('warning', `证照或者器材即将临期,请联系加油站处理!`); |
|
|
|
|
} else { |
|
|
|
|
let params = { |
|
|
|
|
id: item.notification.entityId |
|
|
|
|
} |
|
|
|
|
this.http.get('/api/services/app/ViolateRecord/Get', { |
|
|
|
|
params: params |
|
|
|
|
}).subscribe((data: any) => { |
|
|
|
|
// console.log(data)
|
|
|
|
|
if (item.notification.data.properties.EventSystemName == '灭火器维护' || item.notification.data.properties.EventSystemName == '证照预警') { |
|
|
|
|
this.message.create('warning', data.result.desc); |
|
|
|
|
} else { |
|
|
|
|
const modal = this.modal.create({ |
|
|
|
|
nzContent: GetOutOfLineDetailsComponent, |
|
|
|
|
nzWrapClassName: "vertical-center-modal", |
|
|
|
@ -142,10 +143,9 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.readMess(item.notification.id) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//标记为已读
|
|
|
|
|