회원수정로그 수정

This commit is contained in:
이담 정 2022-08-01 12:05:43 +00:00
parent ef0509035a
commit e3db259a59
5 changed files with 183 additions and 317 deletions

View File

@ -33,7 +33,7 @@ export class ReportModificationLogMockApi {
.reply(({ request }) => { .reply(({ request }) => {
// Get available queries // Get available queries
const search = request.params.get('search'); 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 order = request.params.get('order') || 'asc';
const page = parseInt(request.params.get('page') ?? '1', 10); const page = parseInt(request.params.get('page') ?? '1', 10);
const size = parseInt(request.params.get('size') ?? '10', 10); const size = parseInt(request.params.get('size') ?? '10', 10);
@ -42,7 +42,7 @@ export class ReportModificationLogMockApi {
let modificationLogs: any[] | null = cloneDeep(this._modificationLogs); let modificationLogs: any[] | null = cloneDeep(this._modificationLogs);
// Sort the modificationLogs // Sort the modificationLogs
if (sort === 'sku' || sort === 'name' || sort === 'active') { if (sort === 'signinId' || sort === 'rank' || sort === 'history') {
modificationLogs.sort((a, b) => { modificationLogs.sort((a, b) => {
const fieldA = a[sort].toString().toUpperCase(); const fieldA = a[sort].toString().toUpperCase();
const fieldB = b[sort].toString().toUpperCase(); const fieldB = b[sort].toString().toUpperCase();

View File

@ -2,32 +2,111 @@
export const modificationLogs = [ export const modificationLogs = [
{ {
id: 'on00', id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
totalPartnerCount: '5', idx: 109,
totalHoldingMoney: 303675, rank: '회원',
totalComp: 108933, signinId: 'aa100',
total: 412608, history: '',
branchCount: 1, managementRank: '관리자',
divisionCount: 1, managementId: 'ADMIN',
officeCount: 1, ip: '27.109.115.148',
storeCount: 1, location: '관리자페이지',
memberCount: 1, modificationDate: '2022-08-21 15:23:33',
nickname: 'on00', },
accountHolder: '11', {
phoneNumber: '010-1111-1111', id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
calculateType: '롤링', idx: 108,
ownCash: 50000, rank: '회원',
ownComp: 1711, signinId: 'aa100',
ownCoupon: 50000, history: '',
gameMoney: 0, managementRank: '관리자',
todayComp: 0, managementId: 'ADMIN',
totalDeposit: 0, ip: '27.109.115.148',
totalWithdraw: 0, location: '관리자페이지',
balance: 0, modificationDate: '2022-08-21 15:23:33',
registDate: '2022-06-12 15:38', },
finalSigninDate: '', {
ip: '', id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
state: '정상', idx: 107,
note: '', rank: '회원',
signinId: 'aa100',
history: '',
managementRank: '관리자',
managementId: 'ADMIN',
ip: '27.109.115.148',
location: '관리자페이지',
modificationDate: '2022-08-21 15:23:33',
},
{
id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
idx: 106,
rank: '회원',
signinId: 'aa100',
history: '',
managementRank: '관리자',
managementId: 'ADMIN',
ip: '27.109.115.148',
location: '관리자페이지',
modificationDate: '2022-08-21 15:23:33',
},
{
id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
idx: 105,
rank: '회원',
signinId: 'aa100',
history: '파워볼배팅상태변경: 사용 => 제한',
managementRank: '관리자',
managementId: 'ADMIN',
ip: '27.109.115.148',
location: '관리자페이지',
modificationDate: '2022-08-21 15:23:33',
},
{
id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
idx: 104,
rank: '회원',
signinId: 'aa100',
history: '슬롯요율변경: 3 ==> 0',
managementRank: '본사',
managementId: 'ADMIN',
ip: '27.109.115.148',
location: '관리자페이지',
modificationDate: '2022-08-21 15:23:33',
},
{
id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
idx: 103,
rank: '회원',
signinId: 'aa100',
history: '비밀번호변경: asdf243 ==> 3350',
managementRank: '관리자',
managementId: 'ADMIN',
ip: '27.109.115.148',
location: '관리자페이지',
modificationDate: '2022-08-21 15:23:33',
},
{
id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
idx: 102,
rank: '회원',
signinId: 'aa100',
history: '첫충상태변경: 제한 ==> 사용, 매충상태변경: 제한 ==> 사용',
managementRank: '관리자',
managementId: 'ADMIN',
ip: '27.109.115.148',
location: '관리자페이지',
modificationDate: '2022-08-21 15:23:33',
},
{
id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
idx: 101,
rank: '회원',
signinId: 'aa100',
history: '계좌번호변경: ==> 111111111111, 예금주변경: ==> 테테',
managementRank: '관리자',
managementId: 'ADMIN',
ip: '27.109.115.148',
location: '관리자페이지',
modificationDate: '2022-08-21 15:23:33',
}, },
]; ];

View File

@ -13,110 +13,31 @@
<div class="text-4xl font-extrabold tracking-tight">회원수정로그</div> <div class="text-4xl font-extrabold tracking-tight">회원수정로그</div>
<!-- Actions --> <!-- Actions -->
<div class="flex shrink-0 items-center mt-6 sm:mt-0 sm:ml-4"> <div class="flex shrink-0 items-center mt-6 sm:mt-0 sm:ml-4">
<!-- Memo --> <!-- Search -->
<!-- <mat-form-field> <button mat-icon-button (click)="__onClickSearch()">
<ng-container *ngIf="modificationLogs$ | async as modificationLogs"> <mat-icon [svgIcon]="'heroicons_outline:search'"></mat-icon>
<ng-container </button>
*ngFor="let modificationLog of modificationLogs; trackBy: __trackByFn"
>
<div
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
>
<fieldset>
총 파트너수:{{ modificationLog.totalPartnerCount }} 총 보유머니:{{
modificationLog.totalHoldingmodification
}}
총 콤프:{{ modificationLog.totalComp }} 총 합계:{{
modificationLog.total
}}
</fieldset>
</div> </div>
</ng-container> </div>
</ng-container> <!-- Search -->
</mat-form-field> --> <div
*ngIf="__isSearchOpened"
class="relative flex flex-col sm:flex-row flex-0 sm:items-center sm:justify-between py-4 px-6 md:px-8 border-b"
>
<!-- Actions -->
<div fxLayout="row wrap" class="items-center mt-6 sm:mt-0 sm:ml-0">
<!-- SelectBox --> <!-- SelectBox -->
<mat-form-field> <mat-form-field fxFlex class="bet-mat-form-field-wrapper-mb-0 mr-2">
<mat-select placeholder="리스트수"> <mat-select placeholder="전체">
<mat-option value="40">40</mat-option> <mat-option value="">전체</mat-option>
<mat-option value="60">60</mat-option>
<mat-option value="80">80</mat-option>
<mat-option value="100">100</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-select placeholder="레벨">
<mat-option value="level1">LV.1</mat-option>
<mat-option value="level2">LV.2</mat-option>
<mat-option value="level3">LV.3</mat-option>
<mat-option value="level4">LV.4</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-select placeholder="상태">
<mat-option value="">정상</mat-option>
<mat-option value="">대기</mat-option>
<mat-option value="">탈퇴</mat-option>
<mat-option value="">휴면</mat-option>
<mat-option value="">블랙</mat-option>
<mat-option value="">정지</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-select placeholder="제한">
<mat-option value="">카지노제한</mat-option>
<mat-option value="">슬롯제한</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-select placeholder="입금">
<mat-option value="">계좌입금</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-select placeholder="내용">
<mat-option value="">카지노콤프</mat-option>
<mat-option value="">슬롯콤프</mat-option>
<mat-option value="">배팅콤프</mat-option>
<mat-option value="">첫충콤프</mat-option>
</mat-select>
</mat-form-field>
<!-- <mat-form-field>
<mat-select placeholder="입금">
<mat-option value="">계좌입금</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-select placeholder="아이디">
<mat-option value="">아이디</mat-option> <mat-option value="">아이디</mat-option>
<mat-option value="">닉네임</mat-option> <mat-option value="">닉네임</mat-option>
<mat-option value="">이름</mat-option>
<mat-option value="">사이트</mat-option>
<mat-option value="">파트너수동지급</mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field>
<mat-select placeholder="가입일 정렬">
<mat-option value="">가입일 정렬</mat-option>
<mat-option value="">아이디 정렬</mat-option>
<mat-option value="">닉네임 정렬</mat-option>
<mat-option value="">캐쉬 정렬</mat-option>
<mat-option value="">콤프 정렬</mat-option>
<mat-option value="">쿠폰 정렬</mat-option>
<mat-option value="">입금 정렬</mat-option>
<mat-option value="">출금 정렬</mat-option>
<mat-option value="">차익 정렬</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-select placeholder="내림차순">
<mat-option value="">내림차순</mat-option>
<mat-option value="">오름차순</mat-option>
</mat-select>
</mat-form-field> -->
<!-- Search --> <!-- Search -->
<mat-form-field <mat-form-field
class="fuse-mat-dense fuse-mat-no-subscript fuse-mat-rounded min-w-64" fxFlex
class="fuse-mat-rounded min-w-64 bet-mat-form-field-wrapper-mb-0 mr-2"
> >
<mat-icon <mat-icon
class="icon-size-5" class="icon-size-5"
@ -127,24 +48,22 @@
matInput matInput
[formControl]="searchInputControl" [formControl]="searchInputControl"
[autocomplete]="'off'" [autocomplete]="'off'"
[placeholder]="'Search'" [placeholder]="'Search user'"
/> />
</mat-form-field> </mat-form-field>
<!-- Add user button --> <!-- Add user button -->
<button <button
class="ml-4" fxFlex
mat-flat-button mat-flat-button
style="position: fixed; margin-top: 4px"
[color]="'primary'" [color]="'primary'"
(click)="__createProduct()" (click)="__createProduct()"
> >
<!-- <mat-icon [svgIcon]="'heroicons_outline:plus'"></mat-icon> --> <mat-icon [svgIcon]="'heroicons_outline:search'"></mat-icon>
<span class="ml-2 mr-1">검색하기</span> <span class="ml-2 mr-1">Search</span>
</button> </button>
<button>엑셀저장</button>
<button>카지노머니확인</button>
</div> </div>
</div> </div>
<!-- Main --> <!-- Main -->
<div class="flex flex-auto overflow-hidden"> <div class="flex flex-auto overflow-hidden">
<!-- Products list --> <!-- Products list -->
@ -159,29 +78,16 @@
<!-- Header --> <!-- Header -->
<div <div
class="inventory-grid z-10 sticky top-0 grid gap-4 py-4 px-6 md:px-8 shadow text-md font-semibold text-secondary bg-gray-50 dark:bg-black dark:bg-opacity-5" class="inventory-grid z-10 sticky top-0 grid gap-4 py-4 px-6 md:px-8 shadow text-md font-semibold text-secondary bg-gray-50 dark:bg-black dark:bg-opacity-5"
matSort
matSortDisableClear
> >
<div class="hidden sm:block"><mat-checkbox></mat-checkbox></div> <div>일련번호</div>
<div class="hidden sm:block">요율</div> <div>아이디</div>
<div class="hidden sm:block">상부트리</div> <div>등급</div>
<div class="hidden sm:block">관리</div> <div class="hidden sm:block">변경내역</div>
<div class="hidden sm:block">매장수</div> <div>관리자등급</div>
<div class="hidden sm:block">회원수</div> <div>관리자아이디</div>
<div class="hidden sm:block">아이디</div> <div>아이피</div>
<div class="hidden sm:block">닉네임</div> <div class="hidden md:block">위치</div>
<div class="hidden sm:block">예금주</div> <div class="hidden md:block">수정시간</div>
<div class="hidden sm:block">연락처</div>
<div class="hidden sm:block">정산</div>
<div class="hidden sm:block">보유금</div>
<div class="hidden sm:block">게임중머니</div>
<div class="hidden sm:block">카지노->캐쉬</div>
<div class="hidden sm:block">금일콤프</div>
<div class="hidden sm:block">총입출</div>
<div class="hidden sm:block">로그</div>
<div class="hidden sm:block">상태</div>
<div class="hidden sm:block">회원수</div>
<div class="hidden sm:block">비고</div>
</div> </div>
<!-- Rows --> <!-- Rows -->
<ng-container *ngIf="modificationLogs$ | async as modificationLogs"> <ng-container *ngIf="modificationLogs$ | async as modificationLogs">
@ -194,143 +100,28 @@
<div <div
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b" class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
> >
<div class="hidden sm:block truncate"> <div>
<mat-checkbox></mat-checkbox> {{ modificationLog.idx }}
</div> </div>
<!-- rate --> <div>
<div class="hidden sm:block truncate"> {{ modificationLog.signinId }}
<button
mat-button
color="primary"
matTooltip="요율확인
카지노-바카라: 0%
카지노-룰렛: 0%
카지노-드레곤타이거: 0%
카지노-그외: 0%
슬롯: 0%
카지노루징: 0%
슬롯루징: 0%"
>
요율
</button>
<div class="hidden sm:block truncate">
<!-- 관리 -->
<button mat-flat-button [color]="'primary'">
<mat-form-field>
<mat-select placeholder="관리">
<mat-option value="">보유금지급/회수</mat-option>
<mat-option value="">수수료설정</mat-option>
<mat-option value="">콤프지급/회수</mat-option>
<mat-option value="">쿠폰머니지급/회수</mat-option>
<mat-option value="">쪽지보내기</mat-option>
<mat-option value="">베팅리스트</mat-option>
<mat-option value="">강제로그아웃</mat-option>
</mat-select>
</mat-form-field>
</button>
</div> </div>
<div>
{{ modificationLog.rank }}
</div> </div>
<!-- 매장수 --> <div class="hidden sm:block">
<div class="hidden sm:block truncate"> {{ modificationLog.history }}
<button mat-flat-button [color]="'primary'">
{{ modificationLog.branchCount }}
</button>
<button mat-flat-button [color]="'primary'">
{{ modificationLog.divisionCount }}
</button>
<button mat-flat-button [color]="'primary'">
{{ modificationLog.officeCount }}
</button>
<button mat-flat-button [color]="'primary'">
{{ modificationLog.storeCount }}
</button>
</div> </div>
<!-- 회원수 --> <div>{{ modificationLog.managementRank }}</div>
<div class="hidden sm:block truncate"> <div>
<button mat-flat-button [color]="'primary'"> {{ modificationLog.managementId }}
{{ modificationLog.memberCount }}
</button>
</div> </div>
<!-- id --> <div>{{ modificationLog.ip }}</div>
<ng-container *ngIf="users$ | async as users"> <div class="hidden md:block">
<ng-container {{ modificationLog.location }}
*ngFor="let user of users; trackBy: __trackByFn"
>
<div
class="hidden sm:block truncate"
(click)="viewUserDetail(user.id!)"
>
{{ modificationLog.id }}
</div> </div>
</ng-container> <div class="hidden md:block">
</ng-container> {{ modificationLog.modificationDate }}
<!-- nickname -->
<div class="hidden sm:block truncate">
{{ modificationLog.nickname }}
</div>
<!-- accountHolder -->
<div class="hidden sm:block truncate">
{{ modificationLog.accountHolder }}
</div>
<!-- 연락처 -->
<div class="hidden sm:block truncate">
{{ modificationLog.phoneNumber }}
</div>
<!-- 정산 -->
<div class="hidden sm:block truncate">
{{ modificationLog.calculateType }}
</div>
<!-- 보유금 -->
<div class="hidden sm:block truncate">
캐쉬{{ modificationLog.ownCash }} 콤프{{
modificationLog.ownComp
}}
쿠폰{{ modificationLog.ownCoupon }}
</div>
<!-- gameMoney -->
<div class="hidden sm:block truncate">
{{ modificationLog.gameMoney }}
</div>
<!-- casinoCash -->
<div class="hidden sm:block truncate">
<button mat-flat-button [color]="'primary'">
게임머니확인
</button>
<button mat-flat-button [color]="'primary'">
게임머니회수
</button>
</div>
<!-- todayComp -->
<div class="hidden sm:block truncate">
{{ modificationLog.todayComp }}P
</div>
<!-- 총입출 -->
<div class="hidden sm:block truncate">
입금{{ modificationLog.totalDeposit }} 출금{{
modificationLog.totalWithdraw
}}
차익{{ modificationLog.balance }}
</div>
<!-- log -->
<div class="hidden sm:block truncate">
가입{{ modificationLog.registDate }} 최종{{
modificationLog.finalSigninDate
}}
IP{{ modificationLog.ip }}
</div>
<!-- state -->
<div class="hidden sm:block truncate">
{{ modificationLog.state }}
</div>
<!-- 회원수 -->
<div class="hidden sm:block truncate">
{{ modificationLog.memberCount }}
</div>
<!-- 비고 -->
<div class="hidden sm:block truncate">
<button mat-flat-button [color]="'primary'">
{{ modificationLog.note }}
</button>
</div> </div>
</div> </div>
</ng-container> </ng-container>
@ -353,7 +144,7 @@
<div <div
class="p-8 sm:p-16 border-t text-4xl font-semibold tracking-tight text-center" class="p-8 sm:p-16 border-t text-4xl font-semibold tracking-tight text-center"
> >
There are no modificationLogs! There are no data!
</div> </div>
</ng-template> </ng-template>
</div> </div>

View File

@ -42,18 +42,22 @@ import { Router } from '@angular/router';
/* language=SCSS */ /* language=SCSS */
` `
.inventory-grid { .inventory-grid {
grid-template-columns: 60px auto 40px; /* 번호 아이디 등급 변경 관리자등급 관리자아이디 */
grid-template-columns: 60px 60px 60px auto 60px 60px;
@screen sm { @screen sm {
grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px; /* 번호 아이디 등급 변경 관리자등급 관리자아이디 아이피 위치 수정시간 */
grid-template-columns: 60px 60px 60px auto 60px 60px 100px 60px 100px;
} }
@screen md { @screen md {
grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px 60px; /* 번호 아이디 등급 변경 관리자등급 관리자아이디 아이피 위치 수정시간 */
grid-template-columns: 60px 60px 60px auto 60px 60px 100px 60px 100px;
} }
@screen lg { @screen lg {
grid-template-columns: 60px 70px 70px 70px 70px 100px 60px 60px auto 60px 60px 60px 60px; /* 번호 아이디 등급 변경 관리자등급 관리자아이디 아이피 위치 수정시간 */
grid-template-columns: 60px 60px 60px auto 60px 60px 100px 60px 100px;
} }
} }
`, `,
@ -69,6 +73,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
modificationLogs$!: Observable<ModificationLog[] | undefined>; modificationLogs$!: Observable<ModificationLog[] | undefined>;
users$!: Observable<User[] | undefined>; users$!: Observable<User[] | undefined>;
__isSearchOpened = false;
isLoading = false; isLoading = false;
searchInputControl = new FormControl(); searchInputControl = new FormControl();
selectedModificationLog?: ModificationLog; selectedModificationLog?: ModificationLog;
@ -186,6 +191,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
*/ */
__toggleDetails(productId: string): void {} __toggleDetails(productId: string): void {}
/**
* toggle the search
* Used in 'bar'
*/
__onClickSearch(): void {
this.__isSearchOpened = !this.__isSearchOpened;
}
/** /**
* Track by function for ngFor loops * Track by function for ngFor loops
* *

View File

@ -1,29 +1,12 @@
export interface ModificationLog { export interface ModificationLog {
id?: string; id: string;
totalPartnerCount?: number; idx?: number; // 일련번호
totalHoldingMoney?: number; rank?: string;
totalComp?: number; signinId?: string;
total?: number; history?: string;
branchCount?: number; managementRank?: string; // 관리등급
divisionCount?: number; managementId?: string; // 관리아이디
officeCount?: number;
storeCount?: number;
memberCount?: number;
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; ip?: string;
state?: string; location?: string; // 위치
note?: string; modificationDate?: Date; // 수정시간
} }