mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
save
This commit is contained in:
@@ -324,11 +324,12 @@ export class DespachoPrPage implements OnInit {
|
|||||||
this.generateDiploma(res.data.note, docs);
|
this.generateDiploma(res.data.note, docs);
|
||||||
}
|
}
|
||||||
else if(actionName == 'Concluido'){
|
else if(actionName == 'Concluido'){
|
||||||
this.concluir(res.data.note, docs);
|
//this.concluir(res.data.note, docs);
|
||||||
}
|
}
|
||||||
else if(actionName == 'Reexecução'){
|
else if(actionName == 'Reexecução'){
|
||||||
this.reexecutar(res.data.note, docs);
|
this.reexecutar(res.data.note, docs);
|
||||||
}
|
}
|
||||||
|
this.goBack();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import { DiscartExpedientModalPage } from 'src/app/pages/gabinete-digital/discar
|
|||||||
import { AuthService } from 'src/app/services/auth.service';
|
import { AuthService } from 'src/app/services/auth.service';
|
||||||
import { DespachoPage } from 'src/app/pages/gabinete-digital/despachos/despacho/despacho.page';
|
import { DespachoPage } from 'src/app/pages/gabinete-digital/despachos/despacho/despacho.page';
|
||||||
import { User } from 'src/app/models/user.model';
|
import { User } from 'src/app/models/user.model';
|
||||||
import { NavigationExtras, Router } from '@angular/router';
|
import { NavigationEnd, NavigationExtras, Router } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-despachos-pr',
|
selector: 'app-despachos-pr',
|
||||||
@@ -63,12 +63,14 @@ export class DespachosPrPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
//Inicializar segment
|
//Inicializar segment
|
||||||
this.segment = "despachos";
|
this.segment = "despachos";
|
||||||
this.LoadList();
|
this.LoadList();
|
||||||
this.authService.userData$.subscribe((res:any)=>{
|
|
||||||
console.log(res);
|
this.router.events.forEach((event) => {
|
||||||
|
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||||
|
this.LoadList();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user