mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
Fix
This commit is contained in:
@@ -374,7 +374,7 @@ export class GabineteDigitalPage implements OnInit {
|
||||
if( window.innerWidth <= 801) {
|
||||
this.router.navigate(['/home/gabinete-digital/pedidos'], navigationExtras);
|
||||
}
|
||||
else{
|
||||
else {
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
this.showPedidos = true;
|
||||
this.selectedElement = 'RequestForApproval'
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
</ion-list>
|
||||
</div>
|
||||
|
||||
{{ task | json}}
|
||||
|
||||
</div>
|
||||
|
||||
<div *ngIf="task" class="aside-right flex-column height-100">
|
||||
|
||||
@@ -473,15 +473,15 @@ export class PedidoPage implements OnInit {
|
||||
this.router.navigate(['/home/gabinete-digital/pendentes']);
|
||||
}
|
||||
else {
|
||||
console.log(this.task.WorkflowName)
|
||||
// Pedido de Deferimento
|
||||
// Pedido de Parecer
|
||||
|
||||
let navigationExtras: NavigationExtras = {
|
||||
queryParams: {
|
||||
"pendentes": true,
|
||||
}
|
||||
let navigationExtras: NavigationExtras;
|
||||
|
||||
if (this.task.WorkflowName == 'Pedido de Deferimento') {
|
||||
navigationExtras= { queryParams: {"deferimento": true,}};
|
||||
} else if (this.task.WorkflowName == 'Pedido de Parecer') {
|
||||
navigationExtras = { queryParams: {"parecer": true,}};
|
||||
}
|
||||
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
}
|
||||
}
|
||||
@@ -490,16 +490,15 @@ export class PedidoPage implements OnInit {
|
||||
this.router.navigate(['/home/gabinete-digital/pedidos']);
|
||||
}
|
||||
else {
|
||||
console.log(this.task.WorkflowName)
|
||||
// Pedido de Deferimento
|
||||
// Pedido de Parecer
|
||||
|
||||
|
||||
let navigationExtras: NavigationExtras = {
|
||||
queryParams: {
|
||||
"pedidos": true,
|
||||
}
|
||||
|
||||
let navigationExtras: NavigationExtras;
|
||||
|
||||
if (this.task.WorkflowName == 'Pedido de Deferimento') {
|
||||
navigationExtras= { queryParams: {"deferimento": true,}};
|
||||
} else if (this.task.WorkflowName == 'Pedido de Parecer') {
|
||||
navigationExtras = { queryParams: {"parecer": true,}};
|
||||
}
|
||||
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ export class PedidosPage implements OnInit {
|
||||
) {
|
||||
//Inicializar segment
|
||||
this.segment = 'parecer';
|
||||
|
||||
this.activatedRoute.queryParams.subscribe(params => {
|
||||
if(params['deferimento'] == 'true') {
|
||||
this.segment = 'deferimento';
|
||||
@@ -45,6 +46,7 @@ export class PedidosPage implements OnInit {
|
||||
this.segment = 'parecer';
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -74,7 +76,7 @@ export class PedidosPage implements OnInit {
|
||||
|
||||
this.router.navigate(['/home/gabinete-digital/pedidos'], navigationExtras);
|
||||
|
||||
//this.LoadList();
|
||||
this.LoadList();
|
||||
}
|
||||
|
||||
goToPedido(serialNumber:any){
|
||||
|
||||
Reference in New Issue
Block a user