# 이슈처리 200, 232
This commit is contained in:
parent
d820d426ce
commit
fa4633b012
@ -13,6 +13,7 @@
|
|||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<ucap-integrated-search
|
<ucap-integrated-search
|
||||||
|
#integratedSearch
|
||||||
[sessionVerinfo]="sessionVerinfo"
|
[sessionVerinfo]="sessionVerinfo"
|
||||||
[presence]="presence$ | async"
|
[presence]="presence$ | async"
|
||||||
[searchWord]="!!data.keyword ? data.keyword : ''"
|
[searchWord]="!!data.keyword ? data.keyword : ''"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, Inject, OnDestroy } from '@angular/core';
|
import { Component, OnInit, Inject, OnDestroy, ViewChild } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA, PageEvent } from '@angular/material';
|
import { MatDialogRef, MAT_DIALOG_DATA, PageEvent } from '@angular/material';
|
||||||
import { KEY_VER_INFO } from '@app/types';
|
import { KEY_VER_INFO } from '@app/types';
|
||||||
import { SessionStorageService } from '@ucap-webmessenger/web-storage';
|
import { SessionStorageService } from '@ucap-webmessenger/web-storage';
|
||||||
@ -31,6 +31,7 @@ import {
|
|||||||
ProfileDialogData,
|
ProfileDialogData,
|
||||||
ProfileDialogResult
|
ProfileDialogResult
|
||||||
} from '../profile/profile.dialog.component';
|
} from '../profile/profile.dialog.component';
|
||||||
|
import { IntegratedSearchComponent } from 'projects/ucap-webmessenger-ui/src/lib/components/integrated-search.component';
|
||||||
|
|
||||||
export interface IntegratedSearchDialogData {
|
export interface IntegratedSearchDialogData {
|
||||||
keyword: string;
|
keyword: string;
|
||||||
@ -59,6 +60,9 @@ export class IntegratedSearchDialogComponent implements OnInit, OnDestroy {
|
|||||||
pageCurrent = 1;
|
pageCurrent = 1;
|
||||||
pageListCount = 20;
|
pageListCount = 20;
|
||||||
|
|
||||||
|
@ViewChild('integratedSearch', { static: false })
|
||||||
|
integratedSearchComponent: IntegratedSearchComponent;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
public dialogRef: MatDialogRef<
|
public dialogRef: MatDialogRef<
|
||||||
IntegratedSearchDialogData,
|
IntegratedSearchDialogData,
|
||||||
@ -109,12 +113,14 @@ export class IntegratedSearchDialogComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
onReSearch(searchWord: string) {
|
onReSearch(searchWord: string) {
|
||||||
this.pageCurrent = 1;
|
this.pageCurrent = 1;
|
||||||
|
this.integratedSearchComponent.paginator.pageIndex = 0;
|
||||||
this.onSearch(searchWord);
|
this.onSearch(searchWord);
|
||||||
}
|
}
|
||||||
|
|
||||||
onSearch(searchWord: string) {
|
onSearch(searchWord: string) {
|
||||||
this.currentSearchWord = this.data.keyword;
|
if (this.currentSearchWord !== searchWord) {
|
||||||
|
this.currentSearchWord = searchWord;
|
||||||
|
}
|
||||||
|
|
||||||
if (searchWord.trim().length > 0) {
|
if (searchWord.trim().length > 0) {
|
||||||
this.searchingProcessing = true;
|
this.searchingProcessing = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user