mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Update search
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
<!-- SLIDE -->
|
||||
<ion-slides class="slide" pager="false" [options]="slideOpts">
|
||||
<ion-slide *ngFor="let category of searchCategories; index as i;">
|
||||
<div class="button" (click)="filterDocList(category.Name)" (click)="activeCategoty(i)" ><!-- [ngClass]="{'active-category': category.Active}" -->
|
||||
<div [ngClass]="{'active-category': category.Active}" class="button" (click)="filterDocList(category.Name)" (click)="activeCategoty(i)" >
|
||||
<p>{{ category.Name }}</p>
|
||||
<ion-label class="label">{{ category.Qtd }}</ion-label>
|
||||
</div>
|
||||
|
||||
@@ -123,7 +123,6 @@ export class SearchPage implements OnInit {
|
||||
|
||||
if(window.location.pathname == '/home/agenda'){
|
||||
|
||||
console.log('aplication type 0');
|
||||
|
||||
this.showLoader = true;
|
||||
|
||||
@@ -153,7 +152,6 @@ export class SearchPage implements OnInit {
|
||||
});
|
||||
} else if (window.location.pathname =='/home/gabinete-digital'){
|
||||
|
||||
console.log('aplication type 8,361');
|
||||
|
||||
this.showLoader = true;
|
||||
|
||||
@@ -209,8 +207,6 @@ export class SearchPage implements OnInit {
|
||||
|
||||
this.showLoader = true;
|
||||
|
||||
console.log('aplication type 386');
|
||||
|
||||
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
|
||||
,this.searchOrganicEntiry, this.searchDocTypeId, '386').subscribe(res=>{
|
||||
console.log(res);
|
||||
@@ -260,11 +256,18 @@ export class SearchPage implements OnInit {
|
||||
|
||||
activeCategoty(i){
|
||||
|
||||
this.searchCategories.forEach((e) => {
|
||||
e['Active'] = false;
|
||||
this.searchCategories.forEach((e, j) => {
|
||||
if(i != j){
|
||||
e['Active'] = false;
|
||||
}
|
||||
})
|
||||
|
||||
this.searchCategories[i]['Active'] = true;
|
||||
if (this.searchCategories[i]['Active']){
|
||||
this.searchCategories[i]['Active'] = false;
|
||||
} else {
|
||||
this.searchCategories[i]['Active'] = true
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
clearInputRemetente(){
|
||||
|
||||
Reference in New Issue
Block a user