# 시험결과분석 81

This commit is contained in:
leejinho 2020-02-12 14:08:22 +09:00
parent 2a05ada4c5
commit 729379d0f8
2 changed files with 11 additions and 3 deletions

View File

@ -6,6 +6,7 @@
<div class="btn-area">
<ucap-integrated-search-form
*ngIf="!!loginRes"
[searchWord]="integratedSearchWord"
(search)="onIntegratedSearch($event)"
class="input-lineless integrated-search"
>

View File

@ -125,6 +125,8 @@ export class TopBarComponent implements OnInit, OnDestroy {
@ViewChild('profileMenu', { static: true })
profileMenu: MatMenu;
integratedSearchWord = '';
constructor(
private store: Store<any>,
@Inject(UCAP_NATIVE_SERVICE) private nativeService: NativeService,
@ -567,19 +569,24 @@ export class TopBarComponent implements OnInit, OnDestroy {
);
}
onIntegratedSearch(keyword: string) {
async onIntegratedSearch(keyword: string) {
if (!keyword || keyword.trim().length === 0) {
return;
}
this.dialogService.open<
this.integratedSearchWord = keyword;
const result = await this.dialogService.open<
IntegratedSearchDialogComponent,
IntegratedSearchDialogData,
IntegratedSearchDialogResult
>(IntegratedSearchDialogComponent, {
data: {
keyword
}
},
restoreFocus: false
});
this.integratedSearchWord = '';
}
}