Merge branch 'feature/BETERAN-BACKEND-APP-BROWSER-init' of https://gitlab.loafle.net/bet/beteran-backend-app-browser into feature/BETERAN-BACKEND-APP-BROWSER-init

This commit is contained in:
Park Byung Eun 2022-07-26 10:13:01 +00:00
commit ef7a54f030
5 changed files with 289 additions and 406 deletions

View File

@ -33,7 +33,7 @@ export class ReportMonthlyMockApi {
.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') || 'day';
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,11 @@ export class ReportMonthlyMockApi {
let monthlys: any[] | null = cloneDeep(this._monthlys); let monthlys: any[] | null = cloneDeep(this._monthlys);
// Sort the monthlys // Sort the monthlys
if (sort === 'sku' || sort === 'name' || sort === 'active') { if (
sort === 'day' ||
sort === 'monthlyDiposit' ||
sort === 'monthlyWithdraw'
) {
monthlys.sort((a, b) => { monthlys.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,15 @@
export const monthlys = [ export const monthlys = [
{ {
id: 'on00', id: '8fcce528-d878-4cc8-99f7-bd3451ed5402',
totalPartnerCount: '5', day: 1,
totalHoldingMoney: 303675, monthlyDiposit: 0,
totalComp: 108933, monthlyWithdraw: 0,
total: 412608, monthlyPartnerDiposit: 0,
branchCount: 1, monthlyPartnerWithdraw: 0,
divisionCount: 1, monthlyPassiveMoney: 0,
officeCount: 1, monthlyPassiveComp: 0,
storeCount: 1, monthlyBettingBalance: 66,
memberCount: 1, monthlyBetMembers: 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: '',
}, },
]; ];

View File

@ -1,150 +1,140 @@
<div class="flex flex-col flex-auto min-w-0">
<div class="flex-auto border-t -mt-px pt-4 sm:pt-6">
<div class="w-full max-w-screen-xl mx-auto">
<div class="grid grid-cols-1 sm:grid-cols-6 gap-6 w-full min-w-0">
<!-- Budget distribution -->
<div <div
class="sm:absolute sm:inset-0 flex flex-col flex-auto min-w-0 sm:overflow-hidden bg-card dark:bg-transparent" class="sm:col-span-6 flex flex-col flex-auto p-6 bg-card shadow rounded-2xl overflow-hidden"
> >
<!-- Header -->
<div
class="relative flex flex-col sm:flex-row flex-0 sm:items-center sm:justify-between py-8 px-6 md:px-8 border-b"
>
<!-- Loader -->
<div class="absolute inset-x-0 bottom-0" *ngIf="isLoading">
<mat-progress-bar [mode]="'indeterminate'"></mat-progress-bar>
</div>
<!-- Title --> <!-- Title -->
<div class="text-4xl font-extrabold tracking-tight">월 현황</div> <div class="text-4xl font-extrabold tracking-tight">
<!-- Actions --> CASINO 머니파악
<div class="flex shrink-0 items-center mt-6 sm:mt-0 sm:ml-4">
<!-- Memo -->
<!-- <mat-form-field>
<ng-container *ngIf="monthlys$ | async as monthlys">
<ng-container
*ngFor="let monthly of monthlys; trackBy: __trackByFn"
>
<div
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
>
<fieldset>
총 파트너수:{{ monthly.totalPartnerCount }} 총 보유머니:{{
monthly.totalHoldingMoney
}}
총 콤프:{{ monthly.totalComp }} 총 합계:{{
monthly.total
}}
</fieldset>
</div> </div>
</ng-container> <div class="flex flex-col flex-auto mt-2 overflow-x-auto">
</ng-container> <div>
</mat-form-field> -->
<!-- SelectBox -->
<mat-form-field>
<mat-select placeholder="리스트수">
<mat-option value="40">40</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-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-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 -->
<mat-form-field
class="fuse-mat-dense fuse-mat-no-subscript fuse-mat-rounded min-w-64"
>
<mat-icon
class="icon-size-5"
matPrefix
[svgIcon]="'heroicons_solid:search'"
></mat-icon>
<input
matInput
[formControl]="searchInputControl"
[autocomplete]="'off'"
[placeholder]="'Search'"
/>
</mat-form-field>
<!-- Add user button -->
<button <button
class="ml-4"
mat-flat-button mat-flat-button
class="bet-mat-small-8"
[color]="'primary'" [color]="'primary'"
(click)="__createProduct()"
> >
<!-- <mat-icon [svgIcon]="'heroicons_outline:plus'"></mat-icon> --> <mat-icon svgIcon="chevron-double-left"></mat-icon>
<span class="ml-2 mr-1">검색하기</span> </button>
</div>
<span>2022년6월</span>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
<mat-icon svgIcon="chevron-double-right"></mat-icon>
</button>
</div>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
1월
</button>
</div>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
2월
</button>
</div>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
3월
</button>
</div>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
4월
</button>
</div>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
5월
</button>
</div>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
6월
</button>
</div>
<div>
<button mat-flat-button class="bet-mat-small-8" [color]="'warn'">
7월
</button>
</div>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
8월
</button>
</div>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
9월
</button>
</div>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
10월
</button>
</div>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
11월
</button>
</div>
<div>
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
12월
</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 -->
@ -157,29 +147,30 @@
<!-- 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 class="hidden sm:block">관리</div> 아이디
<div class="hidden sm:block">매장수</div> <hr style="margin: 7px 0px" />
<div class="hidden sm:block">회원수</div> 닉네임
<div class="hidden sm:block">아이디</div> <hr style="margin: 7px 0px" />
<div class="hidden sm:block">닉네임</div> 연락처
</div>
<div>
등급
<hr style="margin: 7px 0px" />
레벨
</div>
<div class="hidden sm:block">예금주</div> <div class="hidden sm:block">예금주</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 class="hidden sm:block">보유금</div> 게임중머니
<div class="hidden sm:block">게임중머니</div> <hr style="margin: 7px 0px" />
<div class="hidden sm:block">카지노->캐쉬</div> 금일콤프
<div class="hidden sm:block">금일콤프</div> </div>
<div class="hidden sm:block">총입출</div> <div class="hidden md:block">총입출</div>
<div class="hidden sm:block">로그</div> <div class="hidden lg: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="monthlys$ | async as monthlys"> <ng-container *ngIf="monthlys$ | async as monthlys">
@ -189,143 +180,61 @@
<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>요율</div>
<mat-checkbox></mat-checkbox> <div>
{{ monthly.day }}
</div> </div>
<!-- rate --> <div>
<div class="hidden sm:block truncate"> {{ monthly.day }}
<hr style="margin: 7px 0px" />
{{ monthly.day }}
<hr style="margin: 7px 0px" />
{{ monthly.day }}
</div>
<div>
{{ monthly.day }}
<hr style="margin: 7px 0px" />
LV{{ monthly.day }}
</div>
<div class="hidden sm:block">
{{ monthly.day }}
</div>
<div class="hidden md:block">
캐쉬{{ monthly.day }}
<hr style="margin: 7px 0px" />
콤프{{ monthly.day }}P
<hr style="margin: 7px 0px" />
쿠폰{{ monthly.day }}
</div>
<div class="hidden md:block">
{{ monthly.day }}
<hr style="margin: 7px 0px" />
{{ monthly.day }}P
</div>
<div class="hidden md:block">
입금{{ monthly.day }}
<hr style="margin: 7px 0px" />
출금{{ monthly.day }}
<hr style="margin: 7px 0px" />
차익{{ monthly.day }}
</div>
<div class="hidden lg:block">
<button <button
mat-button mat-flat-button
color="primary" class="bet-mat-small-8"
matTooltip="요율확인 [color]="'primary'"
카지노-바카라: 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 class="hidden sm:block truncate">
<button mat-flat-button [color]="'primary'">
{{ monthly.branchCount }}
</button>
<button mat-flat-button [color]="'primary'">
{{ monthly.divisionCount }}
</button>
<button mat-flat-button [color]="'primary'">
{{ monthly.officeCount }}
</button>
<button mat-flat-button [color]="'primary'">
{{ monthly.storeCount }}
</button>
</div>
<!-- 회원수 -->
<div class="hidden sm:block truncate">
<button mat-flat-button [color]="'primary'">
{{ monthly.memberCount }}
</button>
</div>
<!-- id -->
<ng-container *ngIf="users$ | async as users">
<ng-container
*ngFor="let user of users; trackBy: __trackByFn"
>
<div
class="hidden sm:block truncate"
(click)="viewUserDetail(user.id!)"
>
{{ monthly.id }}
</div>
</ng-container>
</ng-container>
<!-- nickname -->
<div class="hidden sm:block truncate">
{{ monthly.nickname }}
</div>
<!-- accountHolder -->
<div class="hidden sm:block truncate">
{{ monthly.accountHolder }}
</div>
<!-- 연락처 -->
<div class="hidden sm:block truncate">
{{ monthly.phoneNumber }}
</div>
<!-- 정산 -->
<div class="hidden sm:block truncate">
{{ monthly.calculateType }}
</div>
<!-- 보유금 -->
<div class="hidden sm:block truncate">
캐쉬{{ monthly.ownCash }} 콤프{{ monthly.ownComp }} 쿠폰{{
monthly.ownCoupon
}}
</div>
<!-- gameMoney -->
<div class="hidden sm:block truncate">
{{ monthly.gameMoney }}
</div>
<!-- casinoCash -->
<div class="hidden sm:block truncate">
<button mat-flat-button [color]="'primary'">
게임머니확인 게임머니확인
</button> </button>
<button mat-flat-button [color]="'primary'"> <hr style="margin: 7px 0px" />
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
게임머니회수 게임머니회수
</button> </button>
</div> </div>
<!-- todayComp -->
<div class="hidden sm:block truncate">
{{ monthly.todayComp }}P
</div>
<!-- 총입출 -->
<div class="hidden sm:block truncate">
입금{{ monthly.totalDeposit }} 출금{{
monthly.totalWithdraw
}}
차익{{ monthly.balance }}
</div>
<!-- log -->
<div class="hidden sm:block truncate">
가입{{ monthly.registDate }} 최종{{
monthly.finalSigninDate
}}
IP{{ monthly.ip }}
</div>
<!-- state -->
<div class="hidden sm:block truncate">
{{ monthly.state }}
</div>
<!-- 회원수 -->
<div class="hidden sm:block truncate">
{{ monthly.memberCount }}
</div>
<!-- 비고 -->
<div class="hidden sm:block truncate">
<button mat-flat-button [color]="'primary'">
{{ monthly.note }}
</button>
</div>
</div> </div>
</ng-container> </ng-container>
</ng-container> </ng-container>
@ -347,9 +256,13 @@
<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 monthlys! There are no data!
</div> </div>
</ng-template> </ng-template>
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
</div>
</div>

View File

@ -117,7 +117,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
if (this._sort && this._paginator) { if (this._sort && this._paginator) {
// Set the initial sort // Set the initial sort
this._sort.sort({ this._sort.sort({
id: 'name', id: 'day',
start: 'asc', start: 'asc',
disableClear: true, disableClear: true,
}); });

View File

@ -1,29 +1,12 @@
export interface Monthly { export interface Monthly {
id?: string; id: string;
totalPartnerCount?: number; day?: number; // 일
totalHoldingMoney?: number; monthlyDiposit?: number; // 월별 입금액
totalComp?: number; monthlyWithdraw?: number; // 월별 출금액
total?: number; monthlyPartnerDiposit?: number; // 파트너 월별 입금액
branchCount?: number; monthlyPartnerWithdraw?: number; // 파트너 월별 출금액
divisionCount?: number; monthlyPassiveMoney?: number; // 월별 수동머니 금액
officeCount?: number; monthlyPassiveComp?: number; // 월별 수동콤프 금액
storeCount?: number; monthlyBettingBalance?: number; // 월별 배팅수익액
memberCount?: number; monthlyBetMembers?: 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;
state?: string;
note?: string;
} }