This commit is contained in:
tiago.kayaya
2021-08-06 09:02:51 +01:00
parent a14ca7366d
commit 2c28abbf12
8 changed files with 57 additions and 23 deletions
@@ -69,9 +69,9 @@ constructor (
const pathname = location.pathname + location.search
this.LoadList();
this.router.events.forEach((event) => {
if (event instanceof NavigationStart &&
if (event instanceof NavigationStart &&
event.url.startsWith('/home/gabinete-digital?despachospr=true')) {
if(window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) {
this.refreshing()
@@ -111,7 +111,7 @@ constructor (
let result = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
this.despachoList = [];
let despachosPr;
switch (this.loggeduser.Profile) {
case 'MDGPR':
@@ -168,7 +168,7 @@ constructor (
}
doRefresh() {
setTimeout(() => {
this.LoadList();
@@ -177,12 +177,7 @@ doRefresh() {
}
goToDespacho(serialNumber:any){
let navigationExtras: NavigationExtras = {
queryParams: {
"serialNumber": serialNumber,
}
};
this.router.navigate(['/home/gabinete-digital/despachos-pr/despacho-pr'], navigationExtras);
this.router.navigate(['/home/gabinete-digital/despachos-pr',serialNumber,'gabinete-digital']);
}
async viewExpedientDetail(serialNumber:any) {