From d5e71996990cf27359c4fd326597819bc42f2c22 Mon Sep 17 00:00:00 2001 From: Park Byung Eun Date: Thu, 25 Aug 2022 10:22:30 +0000 Subject: [PATCH] =?UTF-8?q?=EC=B6=A9=EC=A0=84=EB=82=B4=EC=97=AD=20?= =?UTF-8?q?=ED=85=8C=EC=9D=B4=EB=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/deposit-history.component.html | 97 ++++++++++++++++++- .../components/deposit-history.component.ts | 27 +++++- .../modules/admin/member/user/user.module.ts | 2 + 3 files changed, 122 insertions(+), 4 deletions(-) diff --git a/src/app/modules/admin/member/user/components/deposit-history.component.html b/src/app/modules/admin/member/user/components/deposit-history.component.html index b9a42bc..1eeb08d 100644 --- a/src/app/modules/admin/member/user/components/deposit-history.component.html +++ b/src/app/modules/admin/member/user/components/deposit-history.component.html @@ -7,10 +7,101 @@ class="sm:col-span-6 flex flex-col flex-auto p-6 bg-card shadow rounded-2xl overflow-hidden" >
- 검색 +
+ + + + + + + + + + + + + + + + + +
-
- 입금정보 테이블 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
번호 + + {{ idx + 1 }} + + 충전금액{{ info.amount }}신청일자 + {{ info.createAt }} + 결과 + {{ info.state }} +
+
diff --git a/src/app/modules/admin/member/user/components/deposit-history.component.ts b/src/app/modules/admin/member/user/components/deposit-history.component.ts index 447fe3d..585225b 100644 --- a/src/app/modules/admin/member/user/components/deposit-history.component.ts +++ b/src/app/modules/admin/member/user/components/deposit-history.component.ts @@ -9,6 +9,7 @@ import { ViewEncapsulation, } from '@angular/core'; import { MatPaginator } from '@angular/material/paginator'; +import { MatTableDataSource } from '@angular/material/table'; import { fuseAnimations } from '@fuse/animations'; import { Subject } from 'rxjs'; @@ -46,10 +47,17 @@ export class DepositHistoryComponent private _unsubscribeAll: Subject = new Subject(); + depositHistoryTableColumns: string[] = ['no', 'amount', 'createAt', 'state']; + + depositHistoryDataSource: MatTableDataSource = + new MatTableDataSource(); + /** * Constructor */ - constructor(private _changeDetectorRef: ChangeDetectorRef) {} + constructor(private _changeDetectorRef: ChangeDetectorRef) { + this.depositHistoryDataSource.data = DEPOSIT_HISTORY_DATA; + } // ----------------------------------------------------------------------------------------------------- // @ Lifecycle hooks @@ -104,3 +112,20 @@ export class DepositHistoryComponent return item.id || index; } } + +export interface TempDeposit { + amount: string; + createAt: string; + state: string; +} + +const DEPOSIT_HISTORY_DATA: TempDeposit[] = [ + { amount: '100,000', createAt: '2022-08-20 12:40', state: '완료' }, + { amount: '100,000', createAt: '2022-08-20 12:40', state: '완료' }, + { amount: '100,000', createAt: '2022-08-20 12:40', state: '완료' }, + { amount: '100,000', createAt: '2022-08-20 12:40', state: '완료' }, + { amount: '100,000', createAt: '2022-08-20 12:40', state: '완료' }, + { amount: '100,000', createAt: '2022-08-20 12:40', state: '완료' }, + { amount: '100,000', createAt: '2022-08-20 12:40', state: '완료' }, + { amount: '100,000', createAt: '2022-08-20 12:40', state: '완료' }, +]; diff --git a/src/app/modules/admin/member/user/user.module.ts b/src/app/modules/admin/member/user/user.module.ts index a456ecd..611f920 100644 --- a/src/app/modules/admin/member/user/user.module.ts +++ b/src/app/modules/admin/member/user/user.module.ts @@ -23,6 +23,7 @@ import { MatDatepickerModule } from '@angular/material/datepicker'; import { MatMomentDateModule } from '@angular/material-moment-adapter'; import { MatTabsModule } from '@angular/material/tabs'; import { MatSidenavModule } from '@angular/material/sidenav'; +import { MatTableModule } from '@angular/material/table'; import { FuseCardModule } from '@fuse/components/card'; import { FuseAlertModule } from '@fuse/components/alert'; @@ -65,6 +66,7 @@ import { userRoutes } from 'app/modules/admin/member/user/user.routing'; MatMomentDateModule, MatTabsModule, MatSidenavModule, + MatTableModule, FuseCardModule, FuseAlertModule,