diff --git a/src/app/mock-api/apps/report/loosing/api.ts b/src/app/mock-api/apps/report/loosing/api.ts
index c44541c..85343a3 100644
--- a/src/app/mock-api/apps/report/loosing/api.ts
+++ b/src/app/mock-api/apps/report/loosing/api.ts
@@ -1,14 +1,17 @@
import { Injectable } from '@angular/core';
import { assign, cloneDeep } from 'lodash-es';
import { FuseMockApiService, FuseMockApiUtils } from '@fuse/lib/mock-api';
-import { loosings as loosingsData } from './data';
+import {
+ loosings as loosingsData,
+ loosingReports as loosingReportsData,
+} from './data';
@Injectable({
providedIn: 'root',
})
export class ReportLoosingMockApi {
private _loosings: any[] = loosingsData;
-
+ private _loosingReports: any[] = loosingReportsData;
/**
* Constructor
*/
@@ -106,13 +109,13 @@ export class ReportLoosingMockApi {
const id = request.params.get('id');
// Clone the loosings
- const loosings = cloneDeep(this._loosings);
+ const loosingReports = cloneDeep(this._loosingReports);
// Find the loosing
- const loosing = loosings.find((item: any) => item.id === id);
+ // const loosing = loosings.find((item: any) => item.id === id);
// Return the response
- return [200, loosing];
+ return [200, loosingReports];
});
// -----------------------------------------------------------------------------------------------------
diff --git a/src/app/mock-api/apps/report/loosing/data.ts b/src/app/mock-api/apps/report/loosing/data.ts
index c8fcf26..88bb12d 100644
--- a/src/app/mock-api/apps/report/loosing/data.ts
+++ b/src/app/mock-api/apps/report/loosing/data.ts
@@ -2,7 +2,7 @@
export const loosings = [
{
- id: '1',
+ id: 'loosing_1',
startDate: '2022-06-01 15:38',
endDate: '2022-06-12 15:38',
registDate: '2022-06-12 15:38',
@@ -10,7 +10,7 @@ export const loosings = [
loosingCount: '15',
},
{
- id: '2',
+ id: 'loosing_2',
startDate: '2022-06-01 15:38',
endDate: '2022-06-12 15:38',
registDate: '2022-06-12 15:38',
@@ -18,7 +18,7 @@ export const loosings = [
loosingCount: '16',
},
{
- id: '3',
+ id: 'loosing_3',
startDate: '2022-06-01 15:38',
endDate: '2022-06-12 15:38',
registDate: '2022-06-12 15:38',
@@ -26,3 +26,222 @@ export const loosings = [
loosingCount: '11',
},
];
+
+export const loosingReports = [
+ {
+ id: 'lossingReports_1',
+ parentId: '0',
+ signinId: 'kgon1',
+ code: 'AAA',
+ depth: 0,
+ rank: '본사',
+ casinoReport: {
+ id: '1',
+ betMoneny: '123,000',
+ betTieMoneny: '6,000',
+ betCancelMoneny: '0',
+ validMoneny: '117,000',
+ betWinMoneny: '121,900',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ loosingRate: '50%',
+ meMoney: '-620',
+ },
+ slotReport: {
+ id: '2',
+ betMoneny: '75,400',
+ betTieMoneny: '',
+ betCancelMoneny: '',
+ validMoneny: '',
+ betWinMoneny: '181,100',
+ betWinLossMoneny: '-105,700',
+ rollingMoney: '3,770',
+ rollingBottomMoney: '1,659',
+ rollingMeMoney: '2,111',
+ loosingRate: '50%',
+ meMoney: '-54,735',
+ },
+ },
+ {
+ id: 'lossingReports_2',
+ parentId: 'lossingReports_1',
+ signinId: 'kgon2',
+ code: 'AAAAA',
+ depth: 1,
+ rank: '대본',
+ casinoReport: {
+ id: '1',
+ betMoneny: '123,000',
+ betTieMoneny: '6,000',
+ betCancelMoneny: '0',
+ validMoneny: '117,000',
+ betWinMoneny: '121,900',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ loosingRate: '50%',
+ meMoney: '-620',
+ },
+ slotReport: {
+ id: '2',
+ betMoneny: '75,400',
+ betTieMoneny: '',
+ betCancelMoneny: '',
+ validMoneny: '',
+ betWinMoneny: '181,100',
+ betWinLossMoneny: '-105,700',
+ rollingMoney: '3,770',
+ rollingBottomMoney: '1,659',
+ rollingMeMoney: '2,111',
+ loosingRate: '50%',
+ meMoney: '-54,735',
+ },
+ },
+ {
+ id: 'lossingReports_3',
+ parentId: 'lossingReports_2',
+ signinId: 'kgon2',
+ code: 'AAAAA',
+ depth: 1,
+ rank: '부본',
+ casinoReport: {
+ id: '3',
+ betMoneny: '123,000',
+ betTieMoneny: '6,000',
+ betCancelMoneny: '0',
+ validMoneny: '117,000',
+ betWinMoneny: '121,900',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ loosingRate: '50%',
+ meMoney: '-620',
+ },
+ slotReport: {
+ id: '4',
+ betMoneny: '75,400',
+ betTieMoneny: '',
+ betCancelMoneny: '',
+ validMoneny: '',
+ betWinMoneny: '181,100',
+ betWinLossMoneny: '-105,700',
+ rollingMoney: '3,770',
+ rollingBottomMoney: '1,659',
+ rollingMeMoney: '2,111',
+ loosingRate: '50%',
+ meMoney: '-54,735',
+ },
+ },
+ {
+ id: 'lossingReports_4',
+ parentId: '0',
+ signinId: 'test1',
+ code: 'AAAB',
+ depth: 0,
+ rank: '본사',
+ casinoReport: {
+ id: '1',
+ betMoneny: '123,000',
+ betTieMoneny: '6,000',
+ betCancelMoneny: '0',
+ validMoneny: '117,000',
+ betWinMoneny: '121,900',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ loosingRate: '50%',
+ meMoney: '-620',
+ },
+ slotReport: {
+ id: '2',
+ betMoneny: '75,400',
+ betTieMoneny: '',
+ betCancelMoneny: '',
+ validMoneny: '',
+ betWinMoneny: '181,100',
+ betWinLossMoneny: '-105,700',
+ rollingMoney: '3,770',
+ rollingBottomMoney: '1,659',
+ rollingMeMoney: '2,111',
+ loosingRate: '50%',
+ meMoney: '-54,735',
+ },
+ },
+ {
+ id: 'lossingReports_5',
+ parentId: 'lossingReports_4',
+ signinId: 'kgon2',
+ code: 'AAAAA',
+ depth: 1,
+ rank: '대본',
+ casinoReport: {
+ id: '1',
+ betMoneny: '123,000',
+ betTieMoneny: '6,000',
+ betCancelMoneny: '0',
+ validMoneny: '117,000',
+ betWinMoneny: '121,900',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ loosingRate: '50%',
+ meMoney: '-620',
+ },
+ slotReport: {
+ id: '2',
+ betMoneny: '75,400',
+ betTieMoneny: '',
+ betCancelMoneny: '',
+ validMoneny: '',
+ betWinMoneny: '181,100',
+ betWinLossMoneny: '-105,700',
+ rollingMoney: '3,770',
+ rollingBottomMoney: '1,659',
+ rollingMeMoney: '2,111',
+ loosingRate: '50%',
+ meMoney: '-54,735',
+ },
+ },
+ {
+ id: 'lossingReports_6',
+ parentId: 'lossingReports_5',
+ signinId: 'kgon2',
+ code: 'AAAAA',
+ depth: 1,
+ rank: '부본',
+ casinoReport: {
+ id: '3',
+ betMoneny: '123,000',
+ betTieMoneny: '6,000',
+ betCancelMoneny: '0',
+ validMoneny: '117,000',
+ betWinMoneny: '121,900',
+ betWinLossMoneny: '1,100',
+ rollingMoney: '2,340',
+ rollingBottomMoney: '1,755',
+ rollingMeMoney: '585',
+ loosingRate: '50%',
+ meMoney: '-620',
+ },
+ slotReport: {
+ id: '4',
+ betMoneny: '75,400',
+ betTieMoneny: '',
+ betCancelMoneny: '',
+ validMoneny: '',
+ betWinMoneny: '181,100',
+ betWinLossMoneny: '-105,700',
+ rollingMoney: '3,770',
+ rollingBottomMoney: '1,659',
+ rollingMeMoney: '2,111',
+ loosingRate: '50%',
+ meMoney: '-54,735',
+ },
+ },
+];
diff --git a/src/app/modules/admin/report/loosing/components/view.component.html b/src/app/modules/admin/report/loosing/components/view.component.html
index 5dbdf90..0e5b02a 100644
--- a/src/app/modules/admin/report/loosing/components/view.component.html
+++ b/src/app/modules/admin/report/loosing/components/view.component.html
@@ -46,27 +46,41 @@
[dataSource]="loosingDataSource"
>
+
+
+
+ {{ info.signinId }}
+
+
+
아이디
-
-
- {{ i + 1 }}
-
-
+
+
+ {{ info.code }}
+
+
+
코드
-
-
- {{ info.startDate }}
-
-