mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
fix update
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<div class="theicon d-flex">
|
||||
<div>
|
||||
<div title="Pesquisa" *ngIf="!hideSearchBtn" class="mr-20 d-flex align-center cursor-pointer">
|
||||
<div style="padding-top: 5px;" (click)="openSearch();showSearch=true" *ngIf="!showSearch">
|
||||
<div (click)="openSearch();showSearch=true" *ngIf="!showSearch" class="d-flex">
|
||||
<ion-icon title="Perfil" *ngIf="ThemeService.currentTheme == 'doneIt' " class="font-35" src="assets/images/theme/doneIt/icons-search.svg"></ion-icon>
|
||||
<ion-icon title="Perfil" *ngIf="ThemeService.currentTheme == 'default' " class="font-35" src='assets/images/icons-search.svg'></ion-icon>
|
||||
<ion-icon title="Perfil" *ngIf="ThemeService.currentTheme == 'gov' " class="font-35" src='assets/images/theme/gov/icons-search.svg'></ion-icon>
|
||||
@@ -91,13 +91,13 @@
|
||||
|
||||
<div class="overflow-y-auto height-100 width-100">
|
||||
|
||||
<div *ngIf="TaskService.AllProcess.length >= 0">
|
||||
<div *ngIf="AllProcess.length >= 0">
|
||||
<ion-item-sliding class="overflow-y-auto height-100">
|
||||
<div class="listview">
|
||||
<ion-list *ngIf="TaskService.AllProcess">
|
||||
<ion-list *ngIf="AllProcess">
|
||||
<div
|
||||
class="item-hover ion-no-padding cursor-pointer"
|
||||
*ngFor = "let task of TaskService.AllProcess"
|
||||
*ngFor = "let task of AllProcess"
|
||||
(click)="goToProcess(task.SerialNumber || task.serialNumber, task.WorkflowName || task.workflowName|| task.workflowDisplayName , task.activityInstanceName)">
|
||||
<div class="item-wrapper" *ngIf="TaskService.filter(task, filterName)">
|
||||
<div class="item width-100 " >
|
||||
@@ -156,13 +156,13 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
*ngIf="!TaskService.showLoader && TaskService.AllProcess.length == 0"
|
||||
*ngIf="!TaskService.showLoader && AllProcess.length == 0"
|
||||
class="empty-list d-flex height-100 align-center justify-content-center"
|
||||
>
|
||||
<span>Lista vazia</span>
|
||||
</div>
|
||||
|
||||
<div *ngIf="TaskService.showLoader && TaskService.AllProcess.length == 0">
|
||||
<div *ngIf="TaskService.showLoader && AllProcess.length == 0">
|
||||
|
||||
<ion-list>
|
||||
<ion-item>
|
||||
|
||||
@@ -25,6 +25,8 @@ export class AllProcessesPage implements OnInit {
|
||||
fields: ['Folio', 'Senders'], // fields to index for full-text search
|
||||
idField: 'DocId'
|
||||
})
|
||||
|
||||
AllProcess = []
|
||||
|
||||
constructor(
|
||||
private router: Router,
|
||||
@@ -55,16 +57,36 @@ export class AllProcessesPage implements OnInit {
|
||||
this.TaskService.registerCallback({
|
||||
id: import.meta.url,
|
||||
funx:() => {
|
||||
|
||||
this.dynamicSearch()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
openSearch() {}
|
||||
async closeSearch() {}
|
||||
async basicSearch() {}
|
||||
async dynamicSearch() {}
|
||||
openSearch() {
|
||||
this.dynamicSearch()
|
||||
}
|
||||
async closeSearch() {
|
||||
this.searchSubject = ''
|
||||
this.dynamicSearch()
|
||||
}
|
||||
|
||||
async basicSearch() {
|
||||
this.dynamicSearch()
|
||||
}
|
||||
|
||||
async dynamicSearch() {
|
||||
|
||||
if(this.showSearch && this.searchSubject) {
|
||||
|
||||
this.AllProcess = this.TaskService.AllProcess.filter((task) => {
|
||||
let subject = task.Folio || task.Subject || task.workflowInstanceDataFields.Subject
|
||||
subject = subject.toLowerCase();
|
||||
return subject.includes(this.searchSubject.toLowerCase())
|
||||
})
|
||||
} else {
|
||||
this.AllProcess = this.TaskService.AllProcess
|
||||
}
|
||||
}
|
||||
|
||||
checkFilter() {
|
||||
if(this.router.url.includes('ForToDay')) {
|
||||
|
||||
Reference in New Issue
Block a user