종목별매출통계 수정
This commit is contained in:
parent
21188f3ca9
commit
c00969fbb4
|
@ -1,13 +1,13 @@
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { assign, cloneDeep } from 'lodash-es';
|
import { assign, cloneDeep } from 'lodash-es';
|
||||||
import { FuseMockApiService, FuseMockApiUtils } from '@fuse/lib/mock-api';
|
import { FuseMockApiService, FuseMockApiUtils } from '@fuse/lib/mock-api';
|
||||||
import { statisticss as statisticssData } from './data';
|
import { statistics as statisticsData } from './data';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class ReportStatisticsMockApi {
|
export class ReportStatisticsMockApi {
|
||||||
private _statisticss: any[] = statisticssData;
|
private _statistics: any[] = statisticsData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
@ -26,10 +26,10 @@ export class ReportStatisticsMockApi {
|
||||||
*/
|
*/
|
||||||
registerHandlers(): void {
|
registerHandlers(): void {
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
// @ Statisticss - GET
|
// @ Statistics - GET
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
this._fuseMockApiService
|
this._fuseMockApiService
|
||||||
.onGet('api/apps/report/statistics/statisticss', 300)
|
.onGet('api/apps/report/statistics/statistics', 300)
|
||||||
.reply(({ request }) => {
|
.reply(({ request }) => {
|
||||||
// Get available queries
|
// Get available queries
|
||||||
const search = request.params.get('search');
|
const search = request.params.get('search');
|
||||||
|
@ -38,12 +38,12 @@ export class ReportStatisticsMockApi {
|
||||||
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);
|
||||||
|
|
||||||
// Clone the statisticss
|
// Clone the statistics
|
||||||
let statisticss: any[] | null = cloneDeep(this._statisticss);
|
let statistics: any[] | null = cloneDeep(this._statistics);
|
||||||
|
|
||||||
// Sort the statisticss
|
// Sort the statistics
|
||||||
if (sort === 'sku' || sort === 'name' || sort === 'active') {
|
if (sort === 'sku' || sort === 'name' || sort === 'active') {
|
||||||
statisticss.sort((a, b) => {
|
statistics.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();
|
||||||
return order === 'asc'
|
return order === 'asc'
|
||||||
|
@ -51,15 +51,15 @@ export class ReportStatisticsMockApi {
|
||||||
: fieldB.localeCompare(fieldA);
|
: fieldB.localeCompare(fieldA);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
statisticss.sort((a, b) =>
|
statistics.sort((a, b) =>
|
||||||
order === 'asc' ? a[sort] - b[sort] : b[sort] - a[sort]
|
order === 'asc' ? a[sort] - b[sort] : b[sort] - a[sort]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If search exists...
|
// If search exists...
|
||||||
if (search) {
|
if (search) {
|
||||||
// Filter the statisticss
|
// Filter the statistics
|
||||||
statisticss = statisticss.filter(
|
statistics = statistics.filter(
|
||||||
(contact: any) =>
|
(contact: any) =>
|
||||||
contact.name &&
|
contact.name &&
|
||||||
contact.name.toLowerCase().includes(search.toLowerCase())
|
contact.name.toLowerCase().includes(search.toLowerCase())
|
||||||
|
@ -67,32 +67,32 @@ export class ReportStatisticsMockApi {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Paginate - Start
|
// Paginate - Start
|
||||||
const statisticssLength = statisticss.length;
|
const statisticsLength = statistics.length;
|
||||||
|
|
||||||
// Calculate pagination details
|
// Calculate pagination details
|
||||||
const begin = page * size;
|
const begin = page * size;
|
||||||
const end = Math.min(size * (page + 1), statisticssLength);
|
const end = Math.min(size * (page + 1), statisticsLength);
|
||||||
const lastPage = Math.max(Math.ceil(statisticssLength / size), 1);
|
const lastPage = Math.max(Math.ceil(statisticsLength / size), 1);
|
||||||
|
|
||||||
// Prepare the pagination object
|
// Prepare the pagination object
|
||||||
let pagination = {};
|
let pagination = {};
|
||||||
|
|
||||||
// If the requested page number is bigger than
|
// If the requested page number is bigger than
|
||||||
// the last possible page number, return null for
|
// the last possible page number, return null for
|
||||||
// statisticss but also send the last possible page so
|
// statistics but also send the last possible page so
|
||||||
// the app can navigate to there
|
// the app can navigate to there
|
||||||
if (page > lastPage) {
|
if (page > lastPage) {
|
||||||
statisticss = null;
|
statistics = null;
|
||||||
pagination = {
|
pagination = {
|
||||||
lastPage,
|
lastPage,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
// Paginate the results by size
|
// Paginate the results by size
|
||||||
statisticss = statisticss.slice(begin, end);
|
statistics = statistics.slice(begin, end);
|
||||||
|
|
||||||
// Prepare the pagination mock-api
|
// Prepare the pagination mock-api
|
||||||
pagination = {
|
pagination = {
|
||||||
length: statisticssLength,
|
length: statisticsLength,
|
||||||
size: size,
|
size: size,
|
||||||
page: page,
|
page: page,
|
||||||
lastPage: lastPage,
|
lastPage: lastPage,
|
||||||
|
@ -105,7 +105,7 @@ export class ReportStatisticsMockApi {
|
||||||
return [
|
return [
|
||||||
200,
|
200,
|
||||||
{
|
{
|
||||||
statisticss,
|
statistics,
|
||||||
pagination,
|
pagination,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -120,11 +120,11 @@ export class ReportStatisticsMockApi {
|
||||||
// Get the id from the params
|
// Get the id from the params
|
||||||
const id = request.params.get('id');
|
const id = request.params.get('id');
|
||||||
|
|
||||||
// Clone the statisticss
|
// Clone the statistics
|
||||||
const statisticss = cloneDeep(this._statisticss);
|
const statistics = cloneDeep(this._statistics);
|
||||||
|
|
||||||
// Find the statistics
|
// Find the statistics
|
||||||
const statistics = statisticss.find((item: any) => item.id === id);
|
const statistic = statistics.find((item: any) => item.id === id);
|
||||||
|
|
||||||
// Return the response
|
// Return the response
|
||||||
return [200, statistics];
|
return [200, statistics];
|
||||||
|
@ -160,7 +160,7 @@ export class ReportStatisticsMockApi {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Unshift the new statistics
|
// Unshift the new statistics
|
||||||
this._statisticss.unshift(newStatistics);
|
this._statistics.unshift(newStatistics);
|
||||||
|
|
||||||
// Return the response
|
// Return the response
|
||||||
return [200, newStatistics];
|
return [200, newStatistics];
|
||||||
|
@ -180,13 +180,13 @@ export class ReportStatisticsMockApi {
|
||||||
let updatedStatistics = null;
|
let updatedStatistics = null;
|
||||||
|
|
||||||
// Find the statistics and update it
|
// Find the statistics and update it
|
||||||
this._statisticss.forEach((item, index, statisticss) => {
|
this._statistics.forEach((item, index, statistics) => {
|
||||||
if (item.id === id) {
|
if (item.id === id) {
|
||||||
// Update the statistics
|
// Update the statistics
|
||||||
statisticss[index] = assign({}, statisticss[index], statistics);
|
statistics[index] = assign({}, statistics[index], statistics);
|
||||||
|
|
||||||
// Store the updated Statistics
|
// Store the updated Statistics
|
||||||
updatedStatistics = statisticss[index];
|
updatedStatistics = statistics[index];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -204,9 +204,9 @@ export class ReportStatisticsMockApi {
|
||||||
const id = request.params.get('id');
|
const id = request.params.get('id');
|
||||||
|
|
||||||
// Find the statistics and delete it
|
// Find the statistics and delete it
|
||||||
this._statisticss.forEach((item, index) => {
|
this._statistics.forEach((item, index) => {
|
||||||
if (item.id === id) {
|
if (item.id === id) {
|
||||||
this._statisticss.splice(index, 1);
|
this._statistics.splice(index, 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -2,32 +2,35 @@
|
||||||
|
|
||||||
export const statisticss = [
|
export const statisticss = [
|
||||||
{
|
{
|
||||||
id: 'on00',
|
id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
|
||||||
totalPartnerCount: '5',
|
casinoUse: 2,
|
||||||
totalHoldingMoney: 303675,
|
casinoBetting: 1183000,
|
||||||
totalComp: 108933,
|
casinoCancel: 10000,
|
||||||
total: 412608,
|
casinoAvailable: 1140000,
|
||||||
branchCount: 1,
|
casinoWinning: 979050,
|
||||||
divisionCount: 1,
|
casinoWinLoss: 193950,
|
||||||
officeCount: 1,
|
casinoCommission: 14810,
|
||||||
storeCount: 1,
|
casinoBetWinCalculate: 179140,
|
||||||
memberCount: 1,
|
slotUse: 2,
|
||||||
nickname: 'on00',
|
slotBetting: 225000,
|
||||||
accountHolder: '11',
|
slotCancel: 0,
|
||||||
phoneNumber: '010-1111-1111',
|
slotAvailable: 225000,
|
||||||
calculateType: '롤링',
|
slotWinning: 114280,
|
||||||
ownCash: 50000,
|
slotWinLoss: 110720,
|
||||||
ownComp: 1711,
|
slotTotalCommission: 11250,
|
||||||
ownCoupon: 50000,
|
slotBetWinCalculate: 99470,
|
||||||
gameMoney: 0,
|
powerballUse: 0,
|
||||||
todayComp: 0,
|
powerballBetting: 0,
|
||||||
totalDeposit: 0,
|
powerballWinning: 0,
|
||||||
totalWithdraw: 0,
|
powerballWinLoss: 0,
|
||||||
balance: 0,
|
powerballCommission: 0,
|
||||||
registDate: '2022-06-12 15:38',
|
powerballBetWinCalculate: 0,
|
||||||
finalSigninDate: '',
|
totalUse: 4,
|
||||||
ip: '',
|
totalAvailable: 1365000,
|
||||||
state: '정상',
|
totalBetting: 1408000,
|
||||||
note: '',
|
totalCancel: 10000,
|
||||||
|
totalWinLoss: 304670,
|
||||||
|
totalCommission: 26060,
|
||||||
|
totalBetWinCalculate: 278610,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -13,135 +13,66 @@
|
||||||
<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 -->
|
|
||||||
<!-- <mat-form-field>
|
|
||||||
<ng-container *ngIf="statisticss$ | async as statisticss">
|
|
||||||
<ng-container
|
|
||||||
*ngFor="let statistics of statisticss; trackBy: __trackByFn"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
|
|
||||||
>
|
|
||||||
<fieldset>
|
|
||||||
총 파트너수:{{ statistics.totalPartnerCount }} 총 보유머니:{{
|
|
||||||
statistics.totalHoldingMoney
|
|
||||||
}}
|
|
||||||
총 콤프:{{ statistics.totalComp }} 총 합계:{{
|
|
||||||
statistics.total
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</ng-container>
|
|
||||||
</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 -->
|
<!-- Search -->
|
||||||
<mat-form-field
|
<button mat-icon-button (click)="__onClickSearch()">
|
||||||
class="fuse-mat-dense fuse-mat-no-subscript fuse-mat-rounded min-w-64"
|
<mat-icon [svgIcon]="'heroicons_outline:search'"></mat-icon>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Search -->
|
||||||
|
<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"
|
||||||
>
|
>
|
||||||
<mat-icon
|
<!-- Actions -->
|
||||||
class="icon-size-5"
|
<div fxLayout="row wrap" class="items-center mt-6 sm:mt-0 sm:ml-0">
|
||||||
matPrefix
|
<!-- Search -->
|
||||||
[svgIcon]="'heroicons_solid:search'"
|
|
||||||
></mat-icon>
|
|
||||||
<input
|
|
||||||
matInput
|
|
||||||
[formControl]="searchInputControl"
|
|
||||||
[autocomplete]="'off'"
|
|
||||||
[placeholder]="'Search'"
|
|
||||||
/>
|
|
||||||
</mat-form-field>
|
|
||||||
<!-- Add user button -->
|
<!-- Add user button -->
|
||||||
<button
|
<button
|
||||||
class="ml-4"
|
|
||||||
mat-flat-button
|
mat-flat-button
|
||||||
[color]="'primary'"
|
[color]="'primary'"
|
||||||
|
fxFlex
|
||||||
(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>
|
</div>
|
||||||
<button>카지노머니확인</button>
|
<!-- Card inception -->
|
||||||
|
<div class="col-span-2 sm:col-span-1">
|
||||||
|
<mat-form-field
|
||||||
|
class="fuse-mat-no-subscript w-full"
|
||||||
|
[floatLabel]="'always'"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
matInput
|
||||||
|
[matDatepicker]="picker1"
|
||||||
|
[placeholder]="'Choose a date'"
|
||||||
|
/>
|
||||||
|
<mat-datepicker-toggle
|
||||||
|
matSuffix
|
||||||
|
[for]="picker1"
|
||||||
|
></mat-datepicker-toggle>
|
||||||
|
<mat-datepicker #picker1></mat-datepicker>
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<!-- Card expiration -->
|
||||||
|
<div class="col-span-2 sm:col-span-1">
|
||||||
|
<mat-form-field
|
||||||
|
class="fuse-mat-no-subscript w-full"
|
||||||
|
[floatLabel]="'always'"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
matInput
|
||||||
|
[matDatepicker]="picker2"
|
||||||
|
[placeholder]="'Choose a date'"
|
||||||
|
/>
|
||||||
|
<mat-datepicker-toggle
|
||||||
|
matSuffix
|
||||||
|
[for]="picker2"
|
||||||
|
></mat-datepicker-toggle>
|
||||||
|
<mat-datepicker #picker2></mat-datepicker>
|
||||||
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -151,182 +82,100 @@
|
||||||
<div
|
<div
|
||||||
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto"
|
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto"
|
||||||
>
|
>
|
||||||
<ng-container *ngIf="statisticss$ | async as statisticss">
|
<ng-container *ngIf="statisticss$ | async as statistics">
|
||||||
<ng-container *ngIf="statisticss.length > 0; else noStatistics">
|
<ng-container *ngIf="statistics.length > 0; else noStatistics">
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<!-- 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="statisticss$ | async as statisticss">
|
<ng-container *ngIf="statisticss$ | async as statistics">
|
||||||
<ng-container
|
<ng-container
|
||||||
*ngFor="let statistics of statisticss; trackBy: __trackByFn"
|
*ngFor="let statistics of statistics; trackBy: __trackByFn"
|
||||||
>
|
>
|
||||||
<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>
|
||||||
|
{{ dailyPartner.highRank }}
|
||||||
</div>
|
</div>
|
||||||
<!-- rate -->
|
<div>
|
||||||
<div class="hidden sm:block truncate">
|
{{ dailyPartner.signinId }}
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
{{ dailyPartner.nickname }}
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
{{ dailyPartner.phoneNumber }}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
{{ dailyPartner.rank }}
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
LV{{ dailyPartner.level }}
|
||||||
|
</div>
|
||||||
|
<div class="hidden sm:block">
|
||||||
|
{{ dailyPartner.accountHolder }}
|
||||||
|
</div>
|
||||||
|
<div class="hidden md:block">
|
||||||
|
캐쉬{{ dailyPartner.ownCash }}
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
콤프{{ dailyPartner.ownComp }}P
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
쿠폰{{ dailyPartner.ownCoupon }}
|
||||||
|
</div>
|
||||||
|
<div class="hidden md:block">
|
||||||
|
{{ dailyPartner.gameMoney }}
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
{{ dailyPartner.todayComp }}P
|
||||||
|
</div>
|
||||||
|
<div class="hidden md:block">
|
||||||
|
입금{{ dailyPartner.totalDeposit }}
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
출금{{ dailyPartner.totalWithdraw }}
|
||||||
|
<hr style="margin: 7px 0px" />
|
||||||
|
차익{{ dailyPartner.balance }}
|
||||||
|
</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'">
|
|
||||||
{{ statistics.branchCount }}
|
|
||||||
</button>
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ statistics.divisionCount }}
|
|
||||||
</button>
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ statistics.officeCount }}
|
|
||||||
</button>
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ statistics.storeCount }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<!-- 회원수 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ statistics.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!)"
|
|
||||||
>
|
|
||||||
{{ statistics.id }}
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</ng-container>
|
|
||||||
<!-- nickname -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ statistics.nickname }}
|
|
||||||
</div>
|
|
||||||
<!-- accountHolder -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ statistics.accountHolder }}
|
|
||||||
</div>
|
|
||||||
<!-- 연락처 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ statistics.phoneNumber }}
|
|
||||||
</div>
|
|
||||||
<!-- 정산 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ statistics.calculateType }}
|
|
||||||
</div>
|
|
||||||
<!-- 보유금 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
캐쉬{{ statistics.ownCash }} 콤프{{
|
|
||||||
statistics.ownComp
|
|
||||||
}}
|
|
||||||
쿠폰{{ statistics.ownCoupon }}
|
|
||||||
</div>
|
|
||||||
<!-- gameMoney -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ statistics.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">
|
|
||||||
{{ statistics.todayComp }}P
|
|
||||||
</div>
|
|
||||||
<!-- 총입출 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
입금{{ statistics.totalDeposit }} 출금{{
|
|
||||||
statistics.totalWithdraw
|
|
||||||
}}
|
|
||||||
차익{{ statistics.balance }}
|
|
||||||
</div>
|
|
||||||
<!-- log -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
가입{{ statistics.registDate }} 최종{{
|
|
||||||
statistics.finalSigninDate
|
|
||||||
}}
|
|
||||||
IP{{ statistics.ip }}
|
|
||||||
</div>
|
|
||||||
<!-- state -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ statistics.state }}
|
|
||||||
</div>
|
|
||||||
<!-- 회원수 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ statistics.memberCount }}
|
|
||||||
</div>
|
|
||||||
<!-- 비고 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ statistics.note }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@ -348,7 +197,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 statisticss!
|
There are no data!
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -69,6 +69,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
statisticss$!: Observable<Statistics[] | undefined>;
|
statisticss$!: Observable<Statistics[] | undefined>;
|
||||||
users$!: Observable<User[] | undefined>;
|
users$!: Observable<User[] | undefined>;
|
||||||
|
|
||||||
|
__isSearchOpened = false;
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
searchInputControl = new FormControl();
|
searchInputControl = new FormControl();
|
||||||
selectedStatistics?: Statistics;
|
selectedStatistics?: Statistics;
|
||||||
|
@ -117,7 +118,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: 'casinoUse',
|
||||||
start: 'asc',
|
start: 'asc',
|
||||||
disableClear: true,
|
disableClear: true,
|
||||||
});
|
});
|
||||||
|
@ -186,6 +187,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
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,29 +1,32 @@
|
||||||
export interface Statistics {
|
export interface Statistics {
|
||||||
id?: string;
|
id: string;
|
||||||
totalPartnerCount?: number;
|
casinoUse?: number;
|
||||||
totalHoldingMoney?: number;
|
slotUse?: number;
|
||||||
totalComp?: number;
|
powerballUse?: number;
|
||||||
total?: number;
|
casinoBetting?: number; // 카지노배팅
|
||||||
branchCount?: number;
|
casinoCancel?: number; // 카지노취소
|
||||||
divisionCount?: number;
|
casinoAvailable?: number; // 카지노유효
|
||||||
officeCount?: number;
|
casinoWinning?: number; // 카지노당첨
|
||||||
storeCount?: number;
|
casinoWinLoss?: number; // 카지노윈로스(A)
|
||||||
memberCount?: number;
|
casinoCommission?: number; // 카지노수수료(B)
|
||||||
nickname?: string;
|
casinoBetWinCalculate?: number; // 카지노벳윈정산 (A-B)
|
||||||
accountHolder?: string;
|
slotBetting?: number; // 슬롯배팅
|
||||||
phoneNumber?: string;
|
slotCancel?: number; // 슬롯취소
|
||||||
calculateType?: string;
|
slotAvailable?: number; // 슬롯유효
|
||||||
ownCash?: number;
|
slotWinning?: number; // 슬롯당첨
|
||||||
ownComp?: number;
|
slotWinLoss?: number; // 슬롯윈로스(D)
|
||||||
ownCoupon?: number;
|
slotTotalCommission?: number; // 슬롯전체수수료(E)
|
||||||
gameMoney?: number;
|
slotBetWinCalculate?: number; // 슬롯벳윈정산(D-E)
|
||||||
todayComp?: number;
|
powerballBetting?: number; // 파워볼배팅
|
||||||
totalDeposit?: number;
|
powerballWinning?: number; // 파워볼당첨
|
||||||
totalWithdraw?: number;
|
powerballWinLoss?: number; // 파워볼윈로스(H)
|
||||||
balance?: number;
|
powerballCommission?: number; // 파워볼수수료(I)
|
||||||
registDate?: string;
|
powerballBetWinCalculate?: number; // 파워볼벳윈정산(H-I)
|
||||||
finalSigninDate?: string;
|
totalUse?: number; // 총이용회원
|
||||||
ip?: string;
|
totalAvailable?: number; // 총유효배팅
|
||||||
state?: string;
|
totalBetting?: number; // 총배팅
|
||||||
note?: string;
|
totalCancel?: number; // 총취소
|
||||||
|
totalWinLoss?: number; // 총윈로스
|
||||||
|
totalCommission?: number; // 총수수료
|
||||||
|
totalBetWinCalculate?: number; // 총벳윈정산
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,9 +12,7 @@ import { MatSortModule } from '@angular/material/sort';
|
||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||||
import { MatGridListModule } from '@angular/material/grid-list';
|
import { MatGridListModule } from '@angular/material/grid-list';
|
||||||
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
||||||
import { MatRadioModule } from '@angular/material/radio';
|
|
||||||
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
||||||
|
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
|
@ -42,9 +40,7 @@ import { statisticsRoutes } from './statistics.routing';
|
||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
MatTooltipModule,
|
MatTooltipModule,
|
||||||
MatGridListModule,
|
MatGridListModule,
|
||||||
MatSlideToggleModule,
|
MatDatepickerModule,
|
||||||
MatRadioModule,
|
|
||||||
MatCheckboxModule,
|
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class StatisticsModule {}
|
export class StatisticsModule {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user