mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
update details un upload file
This commit is contained in:
@@ -121,7 +121,6 @@ export class ApproveEventPage implements OnInit {
|
||||
this.processes.GetTask(this.serialNumber).subscribe(async res => {
|
||||
|
||||
this.loadedEvent = res
|
||||
console.log('1111=1=1=1=')
|
||||
this.addProcessToDB(this.loadedEvent)
|
||||
|
||||
try {
|
||||
|
||||
@@ -55,6 +55,10 @@ export class ApproveEventPage implements OnInit {
|
||||
) {
|
||||
// Event to approve list
|
||||
|
||||
|
||||
window['edit-approve-event-desktop'] = ()=> {
|
||||
this.getTask()
|
||||
}
|
||||
}
|
||||
|
||||
toDateString(e) {
|
||||
@@ -168,6 +172,7 @@ export class ApproveEventPage implements OnInit {
|
||||
});
|
||||
return await popover.present().then(() =>{
|
||||
this.TaskService.loadEventosParaAprovacao()
|
||||
this.getTask()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -372,14 +372,14 @@ export class EditEventToApprovePage implements OnInit {
|
||||
if(document['action'] == 'add') {
|
||||
delete document.action
|
||||
this.attachmentsService.setEventAttachmentById(document).subscribe(()=>{
|
||||
|
||||
window['edit-approve-event-desktop']()
|
||||
}, error =>{
|
||||
this.toastService.badRequest();
|
||||
});
|
||||
} else if(document['action'] == 'delete') {
|
||||
delete document.action
|
||||
this.attachmentsService.deleteEventAttachmentById(document.Id).subscribe( res=>{
|
||||
|
||||
window['edit-approve-event-desktop']()
|
||||
}, error =>{
|
||||
this.toastService.badRequest()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user