diff --git a/src/app/mock-api/apps/report/money-log/api.ts b/src/app/mock-api/apps/report/money-log/api.ts
index 081cc10..0288f4c 100644
--- a/src/app/mock-api/apps/report/money-log/api.ts
+++ b/src/app/mock-api/apps/report/money-log/api.ts
@@ -33,7 +33,7 @@ export class ReportMoneyLogMockApi {
.reply(({ request }) => {
// Get available queries
const search = request.params.get('search');
- const sort = request.params.get('sort') || 'name';
+ const sort = request.params.get('sort') || 'signinId';
const order = request.params.get('order') || 'asc';
const page = parseInt(request.params.get('page') ?? '1', 10);
const size = parseInt(request.params.get('size') ?? '10', 10);
@@ -42,7 +42,7 @@ export class ReportMoneyLogMockApi {
let moneyLogs: any[] | null = cloneDeep(this._moneyLogs);
// Sort the moneyLogs
- if (sort === 'sku' || sort === 'name' || sort === 'active') {
+ if (sort === 'signinId' || sort === 'nickname' || sort === 'momo') {
moneyLogs.sort((a, b) => {
const fieldA = a[sort].toString().toUpperCase();
const fieldB = b[sort].toString().toUpperCase();
diff --git a/src/app/mock-api/apps/report/money-log/data.ts b/src/app/mock-api/apps/report/money-log/data.ts
index 3781426..8ff67eb 100644
--- a/src/app/mock-api/apps/report/money-log/data.ts
+++ b/src/app/mock-api/apps/report/money-log/data.ts
@@ -2,32 +2,39 @@
export const moneyLogs = [
{
- id: 'on00',
- totalPartnerCount: '5',
- totalHoldingMoney: 303675,
- totalComp: 108933,
- total: 412608,
- branchCount: 1,
- divisionCount: 1,
- officeCount: 1,
- storeCount: 1,
- memberCount: 1,
- nickname: 'on00',
- accountHolder: '11',
- phoneNumber: '010-1111-1111',
- calculateType: '롤링',
- ownCash: 50000,
- ownComp: 1711,
- ownCoupon: 50000,
- gameMoney: 0,
- todayComp: 0,
- totalDeposit: 0,
- totalWithdraw: 0,
- balance: 0,
- registDate: '2022-06-12 15:38',
- finalSigninDate: '',
- ip: '',
- state: '정상',
- note: '',
+ id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
+ finalSigninDate: '2022-06-21 16:17:30',
+ signinId: 'aa100',
+ nickname: 'aa100',
+ history: '[출금]카지노 게임 입금',
+ beforeMoney: 67131,
+ changeMoney: -67131,
+ afterMoney: 0,
+ memo: '',
+ bettingNumber: 0,
+ },
+ {
+ id: '00b0292f-3d50-4669-a0c4-7a9d85efc98d',
+ finalSigninDate: '2022-06-19 22:03:10',
+ signinId: 'aa100',
+ nickname: 'aa100',
+ history: '[입금]카지노 게임 출금',
+ beforeMoney: 0,
+ changeMoney: 67131,
+ afterMoney: 67131,
+ memo: '',
+ bettingNumber: 0,
+ },
+ {
+ id: 'b899ec30-b85a-40ab-bb1f-18a596d5c6de',
+ finalSigninDate: '2022-06-17 16:27:03',
+ signinId: 'onon6',
+ nickname: '가가가',
+ history: '[회수]관리자차감',
+ beforeMoney: 263737,
+ changeMoney: -263737,
+ afterMoney: 0,
+ memo: '',
+ bettingNumber: 0,
},
];
diff --git a/src/app/modules/admin/report/money-log/components/list.component.html b/src/app/modules/admin/report/money-log/components/list.component.html
index 7b52769..007079a 100644
--- a/src/app/modules/admin/report/money-log/components/list.component.html
+++ b/src/app/modules/admin/report/money-log/components/list.component.html
@@ -10,113 +10,73 @@
-
+
-
-
-
+
+
+
+
+
+
+
+
-
-
- 40
- 60
- 80
- 100
-
-
-
-
- LV.1
- LV.2
- LV.3
- LV.4
-
-
-
-
- 정상
- 대기
- 탈퇴
- 휴면
- 블랙
- 정지
-
-
-
-
- 카지노제한
- 슬롯제한
-
-
-
-
- 계좌입금
-
-
-
-
- 카지노콤프
- 슬롯콤프
- 배팅콤프
- 첫충콤프
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
@@ -157,29 +137,19 @@
-
-
요율
-
상부트리
-
관리
-
매장수
-
회원수
-
아이디
-
닉네임
-
예금주
-
연락처
-
정산
-
보유금
-
게임중머니
-
카지노->캐쉬
-
금일콤프
-
총입출
-
로그
-
상태
-
회원수
-
비고
+
날짜
+
+ 대상아이디
+
+ 대상닉네임
+
+
내역
+
이전금액
+
변동금액
+
이후금액
+
메모
+
배팅번호
@@ -189,142 +159,29 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ moneyLog.id }}
-
-
-
-
-
+
{{ moneyLog.finalSigninDate }}
+
+ {{ moneyLog.signinId }}
+
{{ moneyLog.nickname }}
-
-
- {{ moneyLog.accountHolder }}
+
+ {{ moneyLog.history }}
-
-
- {{ moneyLog.phoneNumber }}
+
+ {{ moneyLog.beforeMoney }}
-
-
- {{ moneyLog.calculateType }}
+
+ {{ moneyLog.changeMoney }}
-
-
- 캐쉬{{ moneyLog.ownCash }} 콤프{{ moneyLog.ownComp }} 쿠폰{{
- moneyLog.ownCoupon
- }}
+
+ {{ moneyLog.afterMoney }}
-
-
- {{ moneyLog.gameMoney }}
+
+ {{ moneyLog.memo }}
-
-
-
-
-
-
-
- {{ moneyLog.todayComp }}P
-
-
-
- 입금{{ moneyLog.totalDeposit }} 출금{{
- moneyLog.totalWithdraw
- }}
- 차익{{ moneyLog.balance }}
-
-
-
- 가입{{ moneyLog.registDate }} 최종{{
- moneyLog.finalSigninDate
- }}
- IP{{ moneyLog.ip }}
-
-
-
- {{ moneyLog.state }}
-
-
-
- {{ moneyLog.memberCount }}
-
-
-
-
+
+ {{ moneyLog.bettingNumber }}
@@ -347,7 +204,7 @@
- There are no moneyLogs!
+ There are no data!
diff --git a/src/app/modules/admin/report/money-log/components/list.component.ts b/src/app/modules/admin/report/money-log/components/list.component.ts
index ec75941..f6454ca 100644
--- a/src/app/modules/admin/report/money-log/components/list.component.ts
+++ b/src/app/modules/admin/report/money-log/components/list.component.ts
@@ -42,18 +42,22 @@ import { Router } from '@angular/router';
/* language=SCSS */
`
.inventory-grid {
- grid-template-columns: 60px auto 40px;
+ /* 날짜 아이디 내역 이전 변동 이후 */
+ grid-template-columns: 60px 100px auto 60px 60px 60px;
@screen sm {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px;
+ /* 날짜 아이디 내역 이전 변동 이후 메모 배팅 */
+ grid-template-columns: 60px 100px auto 60px 60px 60px 40px 60px;
}
@screen md {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px 60px;
+ /* 날짜 아이디 내역 이전 변동 이후 메모 배팅 */
+ grid-template-columns: 60px 100px auto 60px 60px 60px 40px 60px;
}
@screen lg {
- grid-template-columns: 60px 70px 70px 70px 70px 100px 60px 60px auto 60px 60px 60px 60px;
+ /* 날짜 아이디 내역 이전 변동 이후 메모 배팅 */
+ grid-template-columns: 60px 100px auto 60px 60px 60px 40px 60px;
}
}
`,
@@ -69,6 +73,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
moneyLogs$!: Observable
;
users$!: Observable;
+ __isSearchOpened = false;
isLoading = false;
searchInputControl = new FormControl();
selectedMoneyLog?: MoneyLog;
@@ -117,7 +122,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
if (this._sort && this._paginator) {
// Set the initial sort
this._sort.sort({
- id: 'name',
+ id: 'signinId',
start: 'asc',
disableClear: true,
});
@@ -186,6 +191,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
*/
__toggleDetails(productId: string): void {}
+ /**
+ * toggle the search
+ * Used in 'bar'
+ */
+ __onClickSearch(): void {
+ this.__isSearchOpened = !this.__isSearchOpened;
+ }
+
/**
* Track by function for ngFor loops
*
diff --git a/src/app/modules/admin/report/money-log/models/money-log.ts b/src/app/modules/admin/report/money-log/models/money-log.ts
index f7b25f6..f7929ae 100644
--- a/src/app/modules/admin/report/money-log/models/money-log.ts
+++ b/src/app/modules/admin/report/money-log/models/money-log.ts
@@ -1,29 +1,12 @@
export interface MoneyLog {
- id?: string;
- totalPartnerCount?: number;
- totalHoldingMoney?: number;
- totalComp?: number;
- total?: number;
- branchCount?: number;
- divisionCount?: number;
- officeCount?: number;
- storeCount?: number;
- memberCount?: number;
+ id: string;
+ finalSigninDate?: Date;
+ signinId?: string;
nickname?: string;
- accountHolder?: string;
- phoneNumber?: string;
- calculateType?: string;
- ownCash?: number;
- ownComp?: number;
- ownCoupon?: number;
- gameMoney?: number;
- todayComp?: number;
- totalDeposit?: number;
- totalWithdraw?: number;
- balance?: number;
- registDate?: string;
- finalSigninDate?: string;
- ip?: string;
- state?: string;
- note?: string;
+ history?: string;
+ beforeMoney?: number;
+ changeMoney?: number;
+ afterMoney?: number;
+ memo?: string;
+ bettingNumber?: number;
}
diff --git a/src/app/modules/admin/report/money-log/money-log.module.ts b/src/app/modules/admin/report/money-log/money-log.module.ts
index b2a9bf5..747306f 100644
--- a/src/app/modules/admin/report/money-log/money-log.module.ts
+++ b/src/app/modules/admin/report/money-log/money-log.module.ts
@@ -12,9 +12,7 @@ import { MatSortModule } from '@angular/material/sort';
import { MatSelectModule } from '@angular/material/select';
import { MatTooltipModule } from '@angular/material/tooltip';
import { MatGridListModule } from '@angular/material/grid-list';
-import { MatSlideToggleModule } from '@angular/material/slide-toggle';
-import { MatRadioModule } from '@angular/material/radio';
-import { MatCheckboxModule } from '@angular/material/checkbox';
+import { MatDatepickerModule } from '@angular/material/datepicker';
import { TranslocoModule } from '@ngneat/transloco';
@@ -42,9 +40,7 @@ import { moneyLogRoutes } from './money-log.routing';
MatSelectModule,
MatTooltipModule,
MatGridListModule,
- MatSlideToggleModule,
- MatRadioModule,
- MatCheckboxModule,
+ MatDatepickerModule,
],
})
export class MoneyLogModule {}