Browse Source

[完善]隐藏搜索栏

master
邵佳豪 5 years ago
parent
commit
655dcf1c34
  1. 4
      src/app/ui/all-file/all-file.component.html
  2. 2
      src/app/ui/all-file/all-file.component.ts

4
src/app/ui/all-file/all-file.component.html

@ -48,13 +48,13 @@
<mat-progress-bar mode="determinate" [value]="downloadFile.downloadProgress" class="progress" style="left: 52px;top: 13px;"></mat-progress-bar> <mat-progress-bar mode="determinate" [value]="downloadFile.downloadProgress" class="progress" style="left: 52px;top: 13px;"></mat-progress-bar>
</div> </div>
</div> </div>
<div class="rightbox"> <!-- <div class="rightbox">
<div class="inputbox"> <div class="inputbox">
<input type="text" [(ngModel)]="searchData" (focus)="searchfocus($event)" (blur)="searchblur($event)"> <input type="text" [(ngModel)]="searchData" (focus)="searchfocus($event)" (blur)="searchblur($event)">
<span class="cancel" *ngIf="isCancel" (click)="cancelbtn()"><mat-icon style="font-size: 16px;">cancel</mat-icon></span> <span class="cancel" *ngIf="isCancel" (click)="cancelbtn()"><mat-icon style="font-size: 16px;">cancel</mat-icon></span>
<span class="search" (click)="search()"><mat-icon>search</mat-icon></span> <span class="search" (click)="search()"><mat-icon>search</mat-icon></span>
</div> </div>
</div> </div> -->
</div> </div>
<div class="titlebox"> <div class="titlebox">
<div class="titleleft"> <div class="titleleft">

2
src/app/ui/all-file/all-file.component.ts

@ -235,7 +235,7 @@ export class AllFileComponent {
}).subscribe((data:any)=>{ }).subscribe((data:any)=>{
this.allFiles = data.contents this.allFiles = data.contents
this.allFiles.forEach(item=>{ this.allFiles.forEach(item=>{
if(item.key.indexOf(this.searchData)){ if(item.key.indexOf(this.searchData) != -1){
this.checkedAllFiles.push(item) this.checkedAllFiles.push(item)
} }
}) })

Loading…
Cancel
Save