diff --git a/src/app/mock-api/apps/report/loosing/api.ts b/src/app/mock-api/apps/report/loosing/api.ts
index 85343a3..f1bf097 100644
--- a/src/app/mock-api/apps/report/loosing/api.ts
+++ b/src/app/mock-api/apps/report/loosing/api.ts
@@ -3,7 +3,8 @@ import { assign, cloneDeep } from 'lodash-es';
import { FuseMockApiService, FuseMockApiUtils } from '@fuse/lib/mock-api';
import {
loosings as loosingsData,
- loosingReports as loosingReportsData,
+ loosing01Reports as loosing01ReportsData,
+ loosing02Reports as loosing02ReportsData,
} from './data';
@Injectable({
@@ -11,7 +12,8 @@ import {
})
export class ReportLoosingMockApi {
private _loosings: any[] = loosingsData;
- private _loosingReports: any[] = loosingReportsData;
+ private _loosing01Reports: any[] = loosing01ReportsData;
+ private _loosing02Reports: any[] = loosing02ReportsData;
/**
* Constructor
*/
@@ -107,15 +109,37 @@ export class ReportLoosingMockApi {
.reply(({ request }) => {
// Get the id from the params
const id = request.params.get('id');
+ const type = request.params.get('type');
+ let result;
// Clone the loosings
- const loosingReports = cloneDeep(this._loosingReports);
+ if (type === '1') {
+ result = cloneDeep(this._loosing01Reports);
+ } else {
+ result = cloneDeep(this._loosing02Reports);
+ }
// Find the loosing
// const loosing = loosings.find((item: any) => item.id === id);
// Return the response
- return [200, loosingReports];
+ return [200, result];
+ });
+
+ this._fuseMockApiService
+ .onGet('api/apps/report/loosing/loosing/02')
+ .reply(({ request }) => {
+ // Get the id from the params
+ const id = request.params.get('id');
+
+ // Clone the loosings
+ const loosing02Reports = cloneDeep(this._loosing02Reports);
+
+ // Find the loosing
+ // const loosing = loosings.find((item: any) => item.id === id);
+
+ // Return the response
+ return [200, loosing02Reports];
});
// -----------------------------------------------------------------------------------------------------
diff --git a/src/app/mock-api/apps/report/loosing/data.ts b/src/app/mock-api/apps/report/loosing/data.ts
index 88bb12d..e4f4b5e 100644
--- a/src/app/mock-api/apps/report/loosing/data.ts
+++ b/src/app/mock-api/apps/report/loosing/data.ts
@@ -27,7 +27,7 @@ export const loosings = [
},
];
-export const loosingReports = [
+export const loosing01Reports = [
{
id: 'lossingReports_1',
parentId: '0',
@@ -245,3 +245,204 @@ export const loosingReports = [
},
},
];
+
+export const loosing02Reports = [
+ {
+ id: 'lossingReports_1',
+ parentId: '0',
+ signinId: 'kgon1',
+ code: 'AAA',
+ depth: 0,
+ rank: '본사',
+ totalCalculate: '-55,388',
+ casinoReport: {
+ id: '1',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ profitLossMoney: '-1,240',
+ loosingRate: '50%',
+ meMoney: '-620',
+ bottomMoney: '33',
+ calculateMoney: '-105,700',
+ },
+ slotReport: {
+ id: '2',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ profitLossMoney: '-1,240',
+ loosingRate: '50%',
+ meMoney: '-620',
+ bottomMoney: '33',
+ calculateMoney: '-105,700',
+ },
+ },
+ {
+ id: 'lossingReports_2',
+ parentId: 'lossingReports_1',
+ signinId: 'kgon2',
+ code: 'AAAAA',
+ depth: 1,
+ rank: '대본',
+ totalCalculate: '-55,388',
+ casinoReport: {
+ id: '1',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ profitLossMoney: '-1,240',
+ loosingRate: '50%',
+ meMoney: '-620',
+ bottomMoney: '33',
+ calculateMoney: '-105,700',
+ },
+ slotReport: {
+ id: '2',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ profitLossMoney: '-1,240',
+ loosingRate: '50%',
+ meMoney: '-620',
+ bottomMoney: '33',
+ calculateMoney: '-105,700',
+ },
+ },
+ {
+ id: 'lossingReports_3',
+ parentId: 'lossingReports_2',
+ signinId: 'kgon2',
+ code: 'AAAAA',
+ depth: 1,
+ rank: '부본',
+ totalCalculate: '-55,388',
+ casinoReport: {
+ id: '1',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ profitLossMoney: '-1,240',
+ loosingRate: '50%',
+ meMoney: '-620',
+ bottomMoney: '33',
+ calculateMoney: '-105,700',
+ },
+ slotReport: {
+ id: '2',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ profitLossMoney: '-1,240',
+ loosingRate: '50%',
+ meMoney: '-620',
+ bottomMoney: '33',
+ calculateMoney: '-105,700',
+ },
+ },
+ {
+ id: 'lossingReports_4',
+ parentId: '0',
+ signinId: 'test1',
+ code: 'AAAB',
+ depth: 0,
+ rank: '본사',
+ totalCalculate: '-55,388',
+ casinoReport: {
+ id: '1',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ profitLossMoney: '-1,240',
+ loosingRate: '50%',
+ meMoney: '-620',
+ bottomMoney: '33',
+ calculateMoney: '-105,700',
+ },
+ slotReport: {
+ id: '2',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ profitLossMoney: '-1,240',
+ loosingRate: '50%',
+ meMoney: '-620',
+ bottomMoney: '33',
+ calculateMoney: '-105,700',
+ },
+ },
+ {
+ id: 'lossingReports_5',
+ parentId: 'lossingReports_4',
+ signinId: 'kgon2',
+ code: 'AAAAA',
+ depth: 1,
+ rank: '대본',
+ totalCalculate: '-55,388',
+ casinoReport: {
+ id: '1',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ profitLossMoney: '-1,240',
+ loosingRate: '50%',
+ meMoney: '-620',
+ bottomMoney: '33',
+ calculateMoney: '-105,700',
+ },
+ slotReport: {
+ id: '2',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ profitLossMoney: '-1,240',
+ loosingRate: '50%',
+ meMoney: '-620',
+ bottomMoney: '33',
+ calculateMoney: '-105,700',
+ },
+ },
+ {
+ id: 'lossingReports_6',
+ parentId: 'lossingReports_5',
+ signinId: 'kgon2',
+ code: 'AAAAA',
+ depth: 1,
+ rank: '부본',
+ totalCalculate: '-55,388',
+ casinoReport: {
+ id: '1',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ profitLossMoney: '-1,240',
+ loosingRate: '50%',
+ meMoney: '-620',
+ bottomMoney: '33',
+ calculateMoney: '-105,700',
+ },
+ slotReport: {
+ id: '2',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ profitLossMoney: '-1,240',
+ loosingRate: '50%',
+ meMoney: '-620',
+ bottomMoney: '33',
+ calculateMoney: '-105,700',
+ },
+ },
+];
diff --git a/src/app/modules/admin/report/loosing/components/index.ts b/src/app/modules/admin/report/loosing/components/index.ts
index 4e9e32b..2743e40 100644
--- a/src/app/modules/admin/report/loosing/components/index.ts
+++ b/src/app/modules/admin/report/loosing/components/index.ts
@@ -1,4 +1,5 @@
import { ListComponent } from './list.component';
-import { ViewComponent } from './view.component';
+import { View01Component } from './view-01.component';
+import { View02Component } from './view-02.component';
-export const COMPONENTS = [ListComponent, ViewComponent];
+export const COMPONENTS = [ListComponent, View01Component, View02Component];
diff --git a/src/app/modules/admin/report/loosing/components/list.component.html b/src/app/modules/admin/report/loosing/components/list.component.html
index 06284e0..3ce66a5 100644
--- a/src/app/modules/admin/report/loosing/components/list.component.html
+++ b/src/app/modules/admin/report/loosing/components/list.component.html
@@ -123,7 +123,7 @@
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
- (click)="__viewLoosingDetail(info, '0')"
+ (click)="__viewLoosingDetail(info, '1')"
>
상세보기
상세보기
@@ -58,18 +61,18 @@ | 아이디 | @@ -77,7 +80,7 @@ | 코드 | @@ -231,6 +234,7 @@ *matHeaderCellDef aria-label="row actions" [attr.rowspan]="2" + [attr.colspan]="2" style="border-left: 1px solid #e0e0e0; padding-left: 30px" > diff --git a/src/app/modules/admin/report/loosing/components/view.component.ts b/src/app/modules/admin/report/loosing/components/view-01.component.ts similarity index 91% rename from src/app/modules/admin/report/loosing/components/view.component.ts rename to src/app/modules/admin/report/loosing/components/view-01.component.ts index 7c6b7e6..16fd99a 100644 --- a/src/app/modules/admin/report/loosing/components/view.component.ts +++ b/src/app/modules/admin/report/loosing/components/view-01.component.ts @@ -23,8 +23,8 @@ import { MatTableDataSource } from '@angular/material/table'; import { LoosingReport } from '../models/loosing-report'; @Component({ - selector: 'loosing-view', - templateUrl: './view.component.html', + selector: 'loosing-view-01', + templateUrl: './view-01.component.html', styles: [ /* language=SCSS */ ` @@ -49,12 +49,10 @@ import { LoosingReport } from '../models/loosing-report'; changeDetection: ChangeDetectionStrategy.OnPush, animations: fuseAnimations, }) -export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { +export class View01Component implements OnInit, AfterViewInit, OnDestroy { @ViewChild(MatPaginator) private _paginator!: MatPaginator; @ViewChild(MatSort) private _sort!: MatSort; - loosings$!: Observable
---|
+ | + + {{ info.signinId }} + + | ++ 아이디 + | ++ | + + {{ info.code }} + + | ++ 코드 + | +윈로스 | ++ {{ + info.casinoReport.betWinLossMoneny + }} + | +롤링 | +
+
+ {{ info.casinoReport.rollingMoney }}
+ + {{ info.casinoReport.rollingBottomMoney }} + + {{ info.casinoReport.rollingMeMoney }} + + |
+ 손익 | ++ + {{ info.casinoReport.profitLossMoney }} + + | +루징요율 | ++ {{ + info.casinoReport.loosingRate + }} + | +본인 | ++ {{ + info.casinoReport.meMoney + }} + | +하부 | ++ {{ + info.casinoReport.bottomMoney + }} + | +실정산금 | ++ {{ + info.casinoReport.calculateMoney + }} + | +윈로스 | ++ {{ + info.slotReport.betWinLossMoneny + }} + | +롤링 | +
+
+ {{ info.slotReport.rollingMoney }}
+ + {{ info.slotReport.rollingBottomMoney }} + + {{ info.slotReport.rollingMeMoney }} + + |
+ 손익 | ++ + {{ info.slotReport.profitLossMoney }} + + | +루징요율 | ++ {{ + info.slotReport.loosingRate + }} + | +본인 | ++ {{ + info.slotReport.meMoney + }} + | +하부 | ++ {{ + info.slotReport.bottomMoney + }} + | +실정산금 | ++ {{ + info.slotReport.calculateMoney + }} + | ++ {{ + info.totalCalculate + }} + | ++ 총실정산금 + | ++ 카지노루징 + | ++ 슬롯루징 + | +
---|