Update search

This commit is contained in:
2021-02-10 16:55:27 +01:00
parent f1ebc52479
commit 1d8004c142
2 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -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>
+10 -7
View File
@@ -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(){