From d3c6f99041a7f3eddba7dbbd2c8908c195e382d8 Mon Sep 17 00:00:00 2001 From: Park Byung Eun Date: Tue, 26 Jul 2022 08:39:58 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B3=A0=EA=B0=9D=EC=84=BC=ED=84=B0=20?= =?UTF-8?q?=EB=A6=AC=EC=8A=A4=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customer/components/list.component.html | 236 ++++++------------ .../customer/components/list.component.ts | 23 +- 2 files changed, 98 insertions(+), 161 deletions(-) diff --git a/src/app/modules/admin/board/customer/components/list.component.html b/src/app/modules/admin/board/customer/components/list.component.html index f499d03..3e032c1 100644 --- a/src/app/modules/admin/board/customer/components/list.component.html +++ b/src/app/modules/admin/board/customer/components/list.component.html @@ -13,30 +13,23 @@
고객센터
- - + + +
+ + + +
+ +
- - - - 아이디 - 작성자 - 글제목 - 글내용 - 사이트명 - 답변내용 - - - - - - - - - +
@@ -152,29 +76,42 @@ class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto" > - +
- - - - - - - - - - - - - - - + + + + + + + + + +
@@ -194,25 +131,27 @@ - - - - - - + -
- +
- There are no customers! + There are no data!
diff --git a/src/app/modules/admin/board/customer/components/list.component.ts b/src/app/modules/admin/board/customer/components/list.component.ts index 50501a1..1b54749 100644 --- a/src/app/modules/admin/board/customer/components/list.component.ts +++ b/src/app/modules/admin/board/customer/components/list.component.ts @@ -42,18 +42,22 @@ import { Router } from '@angular/router'; /* language=SCSS */ ` .inventory-grid { - grid-template-columns: 60px auto 40px; + /* CB 번호 제목 작성자 답변 */ + grid-template-columns: 20px 40px auto 100px 100px; @screen sm { - grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px; + /* CB 번호 제목 작성자 최근충전 답변 */ + grid-template-columns: 20px 40px auto 100px 100px; } @screen md { - grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px 60px; + /* CB 번호 제목 작성자 최근충전 답변 */ + grid-template-columns: 20px 40px auto 100px 100px; } @screen lg { - grid-template-columns: 60px 70px 70px 70px 70px 100px 60px 60px auto 60px 60px 60px 60px; + /* CB 번호 제목 작성자 메모 최근충전 최근로그인 사이트 답변 */ + grid-template-columns: 20px 40px auto 100px 40px 140px 140px 140px 140px; } } `, @@ -73,6 +77,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { searchInputControl = new FormControl(); selectedCustomer?: Customer; pagination?: CustomerPagination; + __isSearchOpened = false; private _unsubscribeAll: Subject = new Subject(); @@ -166,7 +171,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { // @ Public methods // ----------------------------------------------------------------------------------------------------- - viewUserDetail(id: string): void { + viewUserDetail(id?: string): void { let url: string = 'member/user/' + id; this.router.navigateByUrl(url); } @@ -174,6 +179,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { // @ Private methods // ----------------------------------------------------------------------------------------------------- + /** + * toggle the search + * Used in 'bar' + */ + __onClickSearch(): void { + this.__isSearchOpened = !this.__isSearchOpened; + } + /** * Create product */