mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
save
This commit is contained in:
@@ -174,7 +174,7 @@ export class DocumentDetailPage implements OnInit {
|
|||||||
});
|
});
|
||||||
await modal.present();
|
await modal.present();
|
||||||
modal.onDidDismiss().then(res=>{
|
modal.onDidDismiss().then(res=>{
|
||||||
this.location.back();
|
//this.location.back();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -119,6 +119,8 @@ export class DocumentSetUpMeetingPage implements OnInit {
|
|||||||
this.adding = "intervenient";
|
this.adding = "intervenient";
|
||||||
this.setDefaultTime()
|
this.setDefaultTime()
|
||||||
this.getRecurrenceTypes();
|
this.getRecurrenceTypes();
|
||||||
|
console.log(this.document);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getRecurrenceTypes() {
|
getRecurrenceTypes() {
|
||||||
@@ -207,6 +209,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
|
|||||||
})
|
})
|
||||||
}) */
|
}) */
|
||||||
|
|
||||||
|
if(this.document.Documents){
|
||||||
this.document.Documents.forEach((e)=> {
|
this.document.Documents.forEach((e)=> {
|
||||||
this.docs.push({
|
this.docs.push({
|
||||||
ApplicationId: e.ApplicationId || e.ApplicationType,
|
ApplicationId: e.ApplicationId || e.ApplicationType,
|
||||||
@@ -215,6 +218,15 @@ export class DocumentSetUpMeetingPage implements OnInit {
|
|||||||
SourceName: e.Assunto
|
SourceName: e.Assunto
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.docs.push({
|
||||||
|
ApplicationId: this.document.ApplicationId || this.document.ApplicationType,
|
||||||
|
Source: 1,
|
||||||
|
SourceId: this.document.DocId || this.document.docID || this.document.docId,
|
||||||
|
SourceName: this.document.Assunto
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
console.log(this.docs);
|
console.log(this.docs);
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
import { NavigationStart, Router } from '@angular/router';
|
||||||
import { LoginUserRespose } from 'src/app/models/user.model';
|
import { LoginUserRespose } from 'src/app/models/user.model';
|
||||||
import { AuthService } from 'src/app/services/auth.service';
|
import { AuthService } from 'src/app/services/auth.service';
|
||||||
import { ProcessesService } from 'src/app/services/processes.service';
|
import { ProcessesService } from 'src/app/services/processes.service';
|
||||||
@@ -26,6 +26,16 @@ export class AllProcessesPage implements OnInit {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.loadAllProcesses();
|
this.loadAllProcesses();
|
||||||
|
|
||||||
|
this.router.events.forEach((event) => {
|
||||||
|
if (event instanceof NavigationStart && event.url.startsWith('/home/gabinete-digital')) {
|
||||||
|
if(window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) {
|
||||||
|
this.refreshing();
|
||||||
|
} else {
|
||||||
|
this.loadAllProcesses();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
doRefresh() {
|
doRefresh() {
|
||||||
@@ -35,6 +45,13 @@ export class AllProcessesPage implements OnInit {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
refreshing() {
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.loadAllProcesses();
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
|
||||||
async loadAllProcesses(){
|
async loadAllProcesses(){
|
||||||
let allProcessesList = await this.processesService.GetTasksList("", false).toPromise();
|
let allProcessesList = await this.processesService.GetTasksList("", false).toPromise();
|
||||||
console.log(allProcessesList);
|
console.log(allProcessesList);
|
||||||
|
|||||||
Reference in New Issue
Block a user