mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
fix publication load and expediente
This commit is contained in:
@@ -33,7 +33,7 @@ export class ExpedientsPage implements OnInit {
|
||||
listSubscription : {
|
||||
delete(): void;
|
||||
}
|
||||
|
||||
|
||||
routerSubscription;
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ export class ExpedientsPage implements OnInit {
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
this.routerSubscription = this.router.events.subscribe((event) => {
|
||||
if (event instanceof NavigationStart &&
|
||||
event.url.startsWith('/home/gabinete-digital?expedientes=true')) {
|
||||
@@ -81,8 +81,8 @@ export class ExpedientsPage implements OnInit {
|
||||
this.LoadList()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
this.dynamicSearch();
|
||||
|
||||
}
|
||||
@@ -91,7 +91,7 @@ export class ExpedientsPage implements OnInit {
|
||||
this.listSubscription.delete()
|
||||
this.routerSubscription?.unsubscribe();
|
||||
}
|
||||
|
||||
|
||||
reorderList(orderBy: string) {
|
||||
|
||||
this.ordinance = orderBy;
|
||||
@@ -103,7 +103,7 @@ export class ExpedientsPage implements OnInit {
|
||||
async dynamicSearch() {
|
||||
|
||||
if(this.showSearch && this.searchSubject) {
|
||||
|
||||
|
||||
const list = this.expedientegbstore.list.filter((task) => {
|
||||
let subject = task.Folio || task.Subject || task.workflowInstanceDataFields.Subject
|
||||
subject = subject.toLowerCase();
|
||||
@@ -143,7 +143,7 @@ export class ExpedientsPage implements OnInit {
|
||||
this.skeletonLoader = true
|
||||
|
||||
this.processes.GetTaskListExpediente(false).subscribe(result => {
|
||||
|
||||
|
||||
let taskslist = [];
|
||||
this.skeletonLoader = false
|
||||
|
||||
@@ -152,7 +152,7 @@ export class ExpedientsPage implements OnInit {
|
||||
taskslist = res.map((e) => this.expedienteTaskPipe.transform(e))
|
||||
taskslist = this.sortService.sortDate(taskslist, 'CreateDate')
|
||||
// this.addProcessTODb(taskslist);
|
||||
|
||||
|
||||
taskslist = taskslist.filter(function(item) {
|
||||
return item.activityInstanceName != 'Retificar Expediente'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user