|
|
|
@ -651,39 +651,6 @@ export class HomePageComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
areaList: any = [ |
|
|
|
|
{ name: '加油区', num: 92 }, |
|
|
|
|
{ name: '油罐区', num: 81 }, |
|
|
|
|
{ name: '出入口', num: 66 }, |
|
|
|
|
{ name: '便利店', num: 34 }, |
|
|
|
|
{ name: '办公区', num: 20 }, |
|
|
|
|
{ name: '其他区域', num: 17 } |
|
|
|
|
] |
|
|
|
|
eventList: any = [ |
|
|
|
|
{ name: '员工服务', num: 92 }, |
|
|
|
|
{ name: '监控设备监测', num: 81 }, |
|
|
|
|
{ name: '安全隐患', num: 77 }, |
|
|
|
|
{ name: '车流调查', num: 34 }, |
|
|
|
|
{ name: '员工服务', num: 92 }, |
|
|
|
|
{ name: '监控设备监测', num: 81 }, |
|
|
|
|
{ name: '安全隐患', num: 77 }, |
|
|
|
|
{ name: '车流调查', num: 34 }, |
|
|
|
|
{ name: '安全隐患', num: 77 }, |
|
|
|
|
{ name: '车流调查', num: 34 } |
|
|
|
|
] |
|
|
|
|
stationList: any = [ |
|
|
|
|
{ name: '北京市第十九加油站', num: 92 }, |
|
|
|
|
{ name: '北京市第十九加油站', num: 81 }, |
|
|
|
|
{ name: '北京市第十九加油站', num: 77 }, |
|
|
|
|
{ name: '北京市第十九加油站', num: 34 }, |
|
|
|
|
{ name: '北京市第十九加油站', num: 92 }, |
|
|
|
|
{ name: '北京市第十九加油站', num: 81 }, |
|
|
|
|
{ name: '北京市第十九加油站', num: 77 }, |
|
|
|
|
{ name: '北京市第十九加油站', num: 34 }, |
|
|
|
|
{ name: '北京市第十九加油站', num: 77 }, |
|
|
|
|
{ name: '北京市第十九加油站', num: 34 } |
|
|
|
|
] |
|
|
|
|
width(width: string, denominator: string) { |
|
|
|
|
let style: any = {} |
|
|
|
|
style.width = ((Number(width) / Number(denominator)) * 100).toFixed() + '%'; |
|
|
|
@ -694,43 +661,36 @@ export class HomePageComponent implements OnInit {
|
|
|
|
|
isOpenModel: boolean = false |
|
|
|
|
|
|
|
|
|
look(item) { |
|
|
|
|
// console.log(item)
|
|
|
|
|
if (item.notification.data.eventSystemName == '灭火器维护' || item.notification.data.eventSystemName == '证照预警') { |
|
|
|
|
this.message.create('warning', item.notification.data.content1); |
|
|
|
|
} else { |
|
|
|
|
this.isOpenModel = true |
|
|
|
|
let data = { |
|
|
|
|
violateImage: item.notification.data.violateImage, |
|
|
|
|
violateVideo: item.notification.data.violateVideo |
|
|
|
|
} |
|
|
|
|
const modal = this.modal.create({ |
|
|
|
|
nzContent: GetOutOfLineDetailsComponent, |
|
|
|
|
nzWrapClassName: "vertical-center-modal", |
|
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
|
nzWidth: (document.documentElement.clientHeight < 650 || document.documentElement.clientWidth < 1400) ? 1000 : 1200, |
|
|
|
|
nzBodyStyle: { |
|
|
|
|
'border': '1px solid #6d9cc7', |
|
|
|
|
'border-radius': '0px', |
|
|
|
|
'padding': '0px', |
|
|
|
|
'box-shadow': '0 0 8px 0 #fff', |
|
|
|
|
'background': '#000D21', |
|
|
|
|
}, |
|
|
|
|
nzComponentParams: { |
|
|
|
|
data: data |
|
|
|
|
}, |
|
|
|
|
nzFooter: null, |
|
|
|
|
nzOnOk: async () => { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
const instance = modal.getContentComponent(); |
|
|
|
|
modal.afterClose.subscribe(result => { |
|
|
|
|
this.isOpenModel = false |
|
|
|
|
this.rollStart() |
|
|
|
|
}); |
|
|
|
|
this.readMess(item.notification.id) |
|
|
|
|
} |
|
|
|
|
console.log('消息item', item) |
|
|
|
|
this.isOpenModel = true |
|
|
|
|
item.notification.data.id = item.notification.entityId |
|
|
|
|
let data = item.notification.data |
|
|
|
|
const modal = this.modal.create({ |
|
|
|
|
nzContent: GetOutOfLineDetailsComponent, |
|
|
|
|
nzWrapClassName: "vertical-center-modal", |
|
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
|
nzWidth: (document.documentElement.clientHeight < 650 || document.documentElement.clientWidth < 1400) ? 1000 : 1200, |
|
|
|
|
nzBodyStyle: { |
|
|
|
|
'border': '1px solid #6d9cc7', |
|
|
|
|
'border-radius': '0px', |
|
|
|
|
'padding': '0px', |
|
|
|
|
'box-shadow': '0 0 8px 0 #fff', |
|
|
|
|
'background': '#000D21', |
|
|
|
|
}, |
|
|
|
|
nzComponentParams: { |
|
|
|
|
data: data |
|
|
|
|
}, |
|
|
|
|
nzFooter: null, |
|
|
|
|
nzOnOk: async () => { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
const instance = modal.getContentComponent(); |
|
|
|
|
modal.afterClose.subscribe(result => { |
|
|
|
|
this.isOpenModel = false |
|
|
|
|
this.rollStart() |
|
|
|
|
}); |
|
|
|
|
this.readMess(item.notification.id) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|