# 시험결과분석 81
This commit is contained in:
parent
2a05ada4c5
commit
729379d0f8
|
@ -6,6 +6,7 @@
|
|||
<div class="btn-area">
|
||||
<ucap-integrated-search-form
|
||||
*ngIf="!!loginRes"
|
||||
[searchWord]="integratedSearchWord"
|
||||
(search)="onIntegratedSearch($event)"
|
||||
class="input-lineless integrated-search"
|
||||
>
|
||||
|
|
|
@ -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 = '';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user