mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
fix
This commit is contained in:
@@ -51,6 +51,7 @@ export class EventsService {
|
||||
calendarNames = {}
|
||||
|
||||
calendarNamesAry = []
|
||||
calendarNamesAryReverse = []
|
||||
|
||||
calendarNamesType = {}
|
||||
calendarRole = []
|
||||
@@ -306,6 +307,8 @@ export class EventsService {
|
||||
this.hasAnyCalendar = true
|
||||
}
|
||||
|
||||
|
||||
this.calendarNamesAryReverse = this.calendarNamesAry.reverse();
|
||||
|
||||
(() => {
|
||||
const keys = {}
|
||||
@@ -326,6 +329,7 @@ export class EventsService {
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ export class TaskService {
|
||||
private processesbackend: ProcessesService,
|
||||
private despachoRule: DespachoService,
|
||||
public eventService: EventsService,
|
||||
private sortService: SortService,
|
||||
private router: Router,
|
||||
) {
|
||||
|
||||
@@ -432,4 +431,21 @@ export class TaskService {
|
||||
|
||||
}
|
||||
|
||||
|
||||
dynamicSearch({searchSubject, ordinance, list}) {
|
||||
if(searchSubject) {
|
||||
|
||||
const AllProcess = list.filter((task) => {
|
||||
let subject = task.Folio || task.Subject || task.workflowInstanceDataFields.Subject
|
||||
subject = subject.toLowerCase();
|
||||
return subject.includes(searchSubject.toLowerCase())
|
||||
})
|
||||
|
||||
this.AllProcess = list.reorderList(ordinance, AllProcess)
|
||||
} else {
|
||||
const AllProcess = list
|
||||
this.AllProcess = list.reorderList(ordinance, AllProcess)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user