2019-11-13 06:42:30 +00:00
|
|
|
<div class="message-box container">
|
2019-11-22 08:25:51 +00:00
|
|
|
<div class="current-head">
|
|
|
|
<h3>쪽지</h3>
|
|
|
|
<div class="btn-box">
|
|
|
|
<!-- <button mat-icon-button>
|
|
|
|
<mat-icon>timer</mat-icon>
|
|
|
|
</button>
|
|
|
|
<button mat-icon-button>
|
|
|
|
<mat-icon> add_comment</mat-icon>
|
|
|
|
</button> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-15 01:49:41 +00:00
|
|
|
<div class="list-search">
|
|
|
|
<div class="searchbox">
|
|
|
|
<form [formGroup]="fgSearch" class="w-100-p">
|
|
|
|
<mat-form-field floatLabel="never">
|
|
|
|
<input
|
|
|
|
matInput
|
|
|
|
#inputSearch
|
|
|
|
type="text"
|
|
|
|
maxlength="20"
|
|
|
|
placeholder="이름, 제목, 내용 검색"
|
|
|
|
value=""
|
|
|
|
formControlName="searchInput"
|
|
|
|
(keydown.enter)="onKeyDownEnter($event, inputSearch.value)"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
mat-button
|
|
|
|
matSuffix
|
|
|
|
mat-icon-button
|
|
|
|
aria-label="Clear"
|
|
|
|
(click)="inputSearch.value = ''; onClickSearchCancel()"
|
|
|
|
>
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
</button>
|
|
|
|
</mat-form-field>
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-11-14 08:43:45 +00:00
|
|
|
</div>
|
2019-11-25 06:48:54 +00:00
|
|
|
<div *ngIf="!isSearch">
|
2019-11-14 08:43:45 +00:00
|
|
|
<mat-tab-group
|
2019-11-22 08:25:51 +00:00
|
|
|
#tabs
|
2019-11-14 08:43:45 +00:00
|
|
|
mat-stretch-tabs
|
|
|
|
animationDuration="0ms"
|
2019-11-22 08:25:51 +00:00
|
|
|
[selectedIndex]="0"
|
2019-11-14 08:43:45 +00:00
|
|
|
(selectedIndexChange)="onSelectedIndexChange($event)"
|
|
|
|
>
|
2019-11-22 08:25:51 +00:00
|
|
|
<mat-tab [label]="MessageType.Receive">
|
2019-11-14 08:43:45 +00:00
|
|
|
<ng-template mat-tab-label>
|
|
|
|
수신
|
|
|
|
</ng-template>
|
|
|
|
|
2019-12-04 09:32:09 +00:00
|
|
|
<ucap-message-list-item
|
2019-11-26 08:54:37 +00:00
|
|
|
*ngFor="let message of messageList"
|
2019-12-04 09:32:09 +00:00
|
|
|
[message]="message"
|
2019-11-26 08:54:37 +00:00
|
|
|
(click)="onClickDetail(message)"
|
|
|
|
class="message-item"
|
2019-12-04 09:32:09 +00:00
|
|
|
></ucap-message-list-item>
|
2019-11-14 08:43:45 +00:00
|
|
|
</mat-tab>
|
2019-11-22 08:25:51 +00:00
|
|
|
<mat-tab [label]="MessageType.Send">
|
2019-11-14 08:43:45 +00:00
|
|
|
<ng-template mat-tab-label>
|
|
|
|
발신
|
|
|
|
</ng-template>
|
|
|
|
|
2019-12-04 09:32:09 +00:00
|
|
|
<ucap-message-list-item
|
2019-11-26 08:54:37 +00:00
|
|
|
*ngFor="let message of messageList"
|
2019-12-04 09:32:09 +00:00
|
|
|
[message]="message"
|
2019-11-26 08:54:37 +00:00
|
|
|
(click)="onClickDetail(message)"
|
|
|
|
class="message-item"
|
2019-12-04 09:32:09 +00:00
|
|
|
></ucap-message-list-item>
|
2019-11-14 08:43:45 +00:00
|
|
|
</mat-tab>
|
2019-11-22 08:25:51 +00:00
|
|
|
<mat-tab [label]="MessageType.Reservation">
|
2019-11-14 08:43:45 +00:00
|
|
|
<ng-template mat-tab-label>
|
|
|
|
예약
|
|
|
|
</ng-template>
|
|
|
|
|
2019-12-04 09:32:09 +00:00
|
|
|
<ucap-message-list-item
|
2019-11-26 08:54:37 +00:00
|
|
|
*ngFor="let message of messageList"
|
2019-12-04 09:32:09 +00:00
|
|
|
[message]="message"
|
2019-11-26 08:54:37 +00:00
|
|
|
(click)="onClickDetail(message)"
|
|
|
|
class="message-item"
|
2019-12-04 09:32:09 +00:00
|
|
|
></ucap-message-list-item>
|
2019-11-14 08:43:45 +00:00
|
|
|
</mat-tab>
|
|
|
|
</mat-tab-group>
|
|
|
|
</div>
|
2019-11-25 06:48:54 +00:00
|
|
|
<div *ngIf="isSearch">
|
|
|
|
<div class="search-sub">
|
|
|
|
<form [formGroup]="fgSearchType" class="w-100-p">
|
|
|
|
<mat-form-field>
|
2019-11-26 08:54:37 +00:00
|
|
|
<mat-select
|
|
|
|
formControlName="searchMessageType"
|
|
|
|
(selectionChange)="onChangeSelection($event)"
|
|
|
|
>
|
2019-11-25 06:48:54 +00:00
|
|
|
<mat-option [value]="MessageType.All">전체</mat-option>
|
|
|
|
<mat-option [value]="MessageType.Receive">수신</mat-option>
|
|
|
|
<mat-option [value]="MessageType.Send">발신</mat-option>
|
|
|
|
<mat-option [value]="MessageType.Reservation">예약</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
</mat-form-field>
|
|
|
|
<mat-radio-group
|
|
|
|
formControlName="searchMessageSearchType"
|
|
|
|
aria-label="Select an searchType"
|
|
|
|
(change)="onChangeSearchType($event)"
|
|
|
|
>
|
|
|
|
<mat-radio-button [value]="MessageSearchType.Name" [checked]="true"
|
|
|
|
>이름</mat-radio-button
|
|
|
|
>
|
|
|
|
<mat-radio-button [value]="MessageSearchType.Title"
|
|
|
|
>제목</mat-radio-button
|
|
|
|
>
|
|
|
|
<mat-radio-button [value]="MessageSearchType.Contents"
|
|
|
|
>내용</mat-radio-button
|
|
|
|
>
|
|
|
|
</mat-radio-group>
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-12-05 02:09:44 +00:00
|
|
|
<div>
|
|
|
|
<ucap-message-list-item
|
|
|
|
*ngFor="let message of messageList"
|
|
|
|
[message]="message"
|
|
|
|
(click)="onClickDetail(message)"
|
|
|
|
class="message-item"
|
|
|
|
></ucap-message-list-item>
|
2019-11-25 06:48:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-13 06:42:30 +00:00
|
|
|
</div>
|