mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
add seach button
This commit is contained in:
@@ -47,6 +47,14 @@ export class TaskService {
|
||||
expedienteTaskPipe = new ExpedienteTaskPipe();
|
||||
customTaskPipe = new CustomTaskPipe()
|
||||
|
||||
callbacks: {
|
||||
[key: string]: {
|
||||
funx: Function
|
||||
id: string
|
||||
}
|
||||
} = {}
|
||||
|
||||
|
||||
constructor(
|
||||
private processesbackend: ProcessesService,
|
||||
private despachoRule: DespachoService,
|
||||
@@ -61,6 +69,17 @@ export class TaskService {
|
||||
|
||||
}
|
||||
|
||||
registerCallback({funx, id}) {
|
||||
this.callbacks[id] = { funx, id}
|
||||
}
|
||||
|
||||
runCallback() {
|
||||
for (const [key, value] of Object.entries(this.callbacks)) {
|
||||
value.funx()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
deadlineIsToday(isoDateString:string) {
|
||||
|
||||
if(!isoDateString) {
|
||||
@@ -111,6 +130,8 @@ export class TaskService {
|
||||
this.AllProcess = this.sortArrayISODate(this.despachoprstore.list.concat(this.deplomasStore.diplomasAssinadoList as any).concat(this.deplomasStore.diplomasParaAssinarList as any).concat(this.deplomasStore.DiplomaGerarList as any)
|
||||
.concat(this.eventoaprovacaostore.contactList as any).concat(this.expedientegbstore.list as any).concat(this.despachoStore.list as any).concat(this.pedidosstore.listparecer as any).concat(this.pedidosstore.listdeferimento as any)
|
||||
.concat(this.pendentesstore.list as any)).reverse()
|
||||
|
||||
this.runCallback();
|
||||
}
|
||||
|
||||
sortArrayISODate(myArray: any): any[] {
|
||||
@@ -208,6 +229,8 @@ export class TaskService {
|
||||
|
||||
}
|
||||
|
||||
this.runCallback();
|
||||
|
||||
let diplomasValidar = depachoAPI.filter(data => data.activityInstanceName == "Revisar Diploma");
|
||||
|
||||
diplomasValidar = diplomasValidar.filter(data => data.activityInstanceName != "Tarefa de Despacho");
|
||||
|
||||
Reference in New Issue
Block a user