This commit is contained in:
tiago.kayaya
2021-05-26 13:43:25 +01:00
parent b2dbc41a08
commit ca024487bf
2 changed files with 9 additions and 6 deletions
@@ -324,11 +324,12 @@ export class DespachoPrPage implements OnInit {
this.generateDiploma(res.data.note, docs);
}
else if(actionName == 'Concluido'){
this.concluir(res.data.note, docs);
//this.concluir(res.data.note, docs);
}
else if(actionName == 'Reexecução'){
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 { DespachoPage } from 'src/app/pages/gabinete-digital/despachos/despacho/despacho.page';
import { User } from 'src/app/models/user.model';
import { NavigationExtras, Router } from '@angular/router';
import { NavigationEnd, NavigationExtras, Router } from '@angular/router';
@Component({
selector: 'app-despachos-pr',
@@ -63,13 +63,15 @@ export class DespachosPrPage implements OnInit {
}
ngOnInit() {
//Inicializar segment
this.segment = "despachos";
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();
}
});
}
segmentChanged(ev: any) {