|
|
@ -106,20 +106,21 @@ export class HomeComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
modalData |
|
|
|
modalData |
|
|
|
look(item) { |
|
|
|
look(item) { |
|
|
|
if (item.notification.data.properties.EventSystemName == '灭火器维护' || item.notification.data.properties.EventSystemName == '证照预警') { |
|
|
|
let params = { |
|
|
|
this.message.create('warning', `证照或者器材即将临期,请联系加油站处理!`); |
|
|
|
id: item.notification.entityId |
|
|
|
} else { |
|
|
|
} |
|
|
|
let params = { |
|
|
|
this.http.get('/api/services/app/ViolateRecord/Get', { |
|
|
|
id: item.notification.entityId |
|
|
|
params: params |
|
|
|
} |
|
|
|
}).subscribe((data: any) => { |
|
|
|
this.http.get('/api/services/app/ViolateRecord/Get', { |
|
|
|
// console.log(data)
|
|
|
|
params: params |
|
|
|
if (item.notification.data.properties.EventSystemName == '灭火器维护' || item.notification.data.properties.EventSystemName == '证照预警') { |
|
|
|
}).subscribe((data: any) => { |
|
|
|
this.message.create('warning', data.result.desc); |
|
|
|
|
|
|
|
} else { |
|
|
|
const modal = this.modal.create({ |
|
|
|
const modal = this.modal.create({ |
|
|
|
nzContent: GetOutOfLineDetailsComponent, |
|
|
|
nzContent: GetOutOfLineDetailsComponent, |
|
|
|
nzWrapClassName: "vertical-center-modal", |
|
|
|
nzWrapClassName: "vertical-center-modal", |
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
nzWidth: (document.documentElement.clientHeight<650 || document.documentElement.clientWidth<1400) ? 1000 : 1200, |
|
|
|
nzWidth: (document.documentElement.clientHeight < 650 || document.documentElement.clientWidth < 1400) ? 1000 : 1200, |
|
|
|
nzBodyStyle: { |
|
|
|
nzBodyStyle: { |
|
|
|
'border': '1px solid #6d9cc7', |
|
|
|
'border': '1px solid #6d9cc7', |
|
|
|
'border-radius': '0px', |
|
|
|
'border-radius': '0px', |
|
|
@ -142,10 +143,9 @@ export class HomeComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.readMess(item.notification.id) |
|
|
|
this.readMess(item.notification.id) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//标记为已读
|
|
|
|
//标记为已读
|
|
|
@ -266,7 +266,7 @@ export class HomeComponent implements OnInit { |
|
|
|
//修改密码
|
|
|
|
//修改密码
|
|
|
|
|
|
|
|
|
|
|
|
changePassword() { |
|
|
|
changePassword() { |
|
|
|
const modal:any = this.modal.create({ |
|
|
|
const modal: any = this.modal.create({ |
|
|
|
nzTitle: '修改密码', |
|
|
|
nzTitle: '修改密码', |
|
|
|
nzContent: ChangePasswordComponent, |
|
|
|
nzContent: ChangePasswordComponent, |
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
@ -278,7 +278,7 @@ export class HomeComponent implements OnInit { |
|
|
|
this.message.create('warning', '两次密码输入不一致!'); |
|
|
|
this.message.create('warning', '两次密码输入不一致!'); |
|
|
|
return false |
|
|
|
return false |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
await new Promise((resolve,reject) => { |
|
|
|
await new Promise((resolve, reject) => { |
|
|
|
let body = { |
|
|
|
let body = { |
|
|
|
currentPassword: instance.validateForm.value.oldpassword, |
|
|
|
currentPassword: instance.validateForm.value.oldpassword, |
|
|
|
newPassword: instance.validateForm.value.newpassword |
|
|
|
newPassword: instance.validateForm.value.newpassword |
|
|
@ -287,7 +287,7 @@ export class HomeComponent implements OnInit { |
|
|
|
resolve(data) |
|
|
|
resolve(data) |
|
|
|
this.message.create('success', '修改成功!'); |
|
|
|
this.message.create('success', '修改成功!'); |
|
|
|
return true |
|
|
|
return true |
|
|
|
},err=>{ |
|
|
|
}, err => { |
|
|
|
this.message.create('warning', err.error.error.message); |
|
|
|
this.message.create('warning', err.error.error.message); |
|
|
|
modal.config.nzOkLoading = false |
|
|
|
modal.config.nzOkLoading = false |
|
|
|
return false |
|
|
|
return false |
|
|
|