diff --git a/src/app/mock-api/apps/board/notice-oneline/api.ts b/src/app/mock-api/apps/board/notice-oneline/api.ts
index af9ed95..c107c15 100644
--- a/src/app/mock-api/apps/board/notice-oneline/api.ts
+++ b/src/app/mock-api/apps/board/notice-oneline/api.ts
@@ -33,29 +33,13 @@ export class BoardNoticeOnelineMockApi {
.reply(({ request }) => {
// Get available queries
const search = request.params.get('search');
- const sort = request.params.get('sort') || 'name';
- const order = request.params.get('order') || 'asc';
+
const page = parseInt(request.params.get('page') ?? '1', 10);
const size = parseInt(request.params.get('size') ?? '10', 10);
// Clone the noticeOnelines
let noticeOnelines: any[] | null = cloneDeep(this._noticeOnelines);
- // Sort the noticeOnelines
- if (sort === 'sku' || sort === 'name' || sort === 'active') {
- noticeOnelines.sort((a, b) => {
- const fieldA = a[sort].toString().toUpperCase();
- const fieldB = b[sort].toString().toUpperCase();
- return order === 'asc'
- ? fieldA.localeCompare(fieldB)
- : fieldB.localeCompare(fieldA);
- });
- } else {
- noticeOnelines.sort((a, b) =>
- order === 'asc' ? a[sort] - b[sort] : b[sort] - a[sort]
- );
- }
-
// If search exists...
if (search) {
// Filter the noticeOnelines
diff --git a/src/app/mock-api/apps/board/notice-oneline/data.ts b/src/app/mock-api/apps/board/notice-oneline/data.ts
index d629dc9..558160f 100644
--- a/src/app/mock-api/apps/board/notice-oneline/data.ts
+++ b/src/app/mock-api/apps/board/notice-oneline/data.ts
@@ -2,6 +2,7 @@
export const noticeOnelines = [
{
+ id: '1',
idx: 25,
site: 'All',
title: '-입금문의안내(필독)-',
@@ -10,4 +11,44 @@ export const noticeOnelines = [
views: 65,
state: '노출',
},
+ {
+ id: '2',
+ idx: 26,
+ site: 'All',
+ title: '-입금문의안내(필독)-',
+ writer: '관리자',
+ writeDate: '2021-06-08 00:43',
+ views: 65,
+ state: '노출',
+ },
+ {
+ id: '3',
+ idx: 27,
+ site: 'All',
+ title: '-입금문의안내(필독)-',
+ writer: '관리자',
+ writeDate: '2021-06-08 00:43',
+ views: 65,
+ state: '노출',
+ },
+ {
+ id: '4',
+ idx: 28,
+ site: 'All',
+ title: '-입금문의안내(필독)-',
+ writer: '관리자',
+ writeDate: '2021-06-08 00:43',
+ views: 65,
+ state: '노출',
+ },
+ {
+ id: '5',
+ idx: 29,
+ site: 'All',
+ title: '-입금문의안내(필독)-',
+ writer: '관리자',
+ writeDate: '2021-06-08 00:43',
+ views: 65,
+ state: '노출',
+ },
];
diff --git a/src/app/mock-api/apps/board/notice/api.ts b/src/app/mock-api/apps/board/notice/api.ts
index 5974981..fc51b73 100644
--- a/src/app/mock-api/apps/board/notice/api.ts
+++ b/src/app/mock-api/apps/board/notice/api.ts
@@ -33,29 +33,13 @@ export class BoardNoticeMockApi {
.reply(({ request }) => {
// Get available queries
const search = request.params.get('search');
- const sort = request.params.get('sort') || 'name';
- const order = request.params.get('order') || 'asc';
+
const page = parseInt(request.params.get('page') ?? '1', 10);
const size = parseInt(request.params.get('size') ?? '10', 10);
// Clone the notices
let notices: any[] | null = cloneDeep(this._notices);
- // Sort the notices
- if (sort === 'sku' || sort === 'name' || sort === 'active') {
- notices.sort((a, b) => {
- const fieldA = a[sort].toString().toUpperCase();
- const fieldB = b[sort].toString().toUpperCase();
- return order === 'asc'
- ? fieldA.localeCompare(fieldB)
- : fieldB.localeCompare(fieldA);
- });
- } else {
- notices.sort((a, b) =>
- order === 'asc' ? a[sort] - b[sort] : b[sort] - a[sort]
- );
- }
-
// If search exists...
if (search) {
// Filter the notices
diff --git a/src/app/mock-api/apps/board/notice/data.ts b/src/app/mock-api/apps/board/notice/data.ts
index f416a0e..8a52f37 100644
--- a/src/app/mock-api/apps/board/notice/data.ts
+++ b/src/app/mock-api/apps/board/notice/data.ts
@@ -2,6 +2,40 @@
export const notices = [
{
+ id: '1',
+ idx: 80,
+ site: '',
+ title:
+ '게임멈춤,튕기는 현상및 계좌문의시 확인및 입금전후 확인사항 대한 공지사항',
+ writer: '관리자',
+ writeDate: '2021-10-25 02:25',
+ views: 136,
+ state: '노출',
+ },
+ {
+ id: '2',
+ idx: 80,
+ site: '',
+ title:
+ '게임멈춤,튕기는 현상및 계좌문의시 확인및 입금전후 확인사항 대한 공지사항',
+ writer: '관리자',
+ writeDate: '2021-10-25 02:25',
+ views: 136,
+ state: '노출',
+ },
+ {
+ id: '3',
+ idx: 80,
+ site: 'all',
+ title:
+ '게임멈춤,튕기는 현상및 계좌문의시 확인및 입금전후 확인사항 대한 공지사항',
+ writer: '관리자',
+ writeDate: '2021-10-25 02:25',
+ views: 136,
+ state: '노출',
+ },
+ {
+ id: '4',
idx: 80,
site: '',
title:
diff --git a/src/app/mock-api/apps/member/coupon-money-log/data.ts b/src/app/mock-api/apps/member/coupon-money-log/data.ts
index 94594ec..0d42b6c 100644
--- a/src/app/mock-api/apps/member/coupon-money-log/data.ts
+++ b/src/app/mock-api/apps/member/coupon-money-log/data.ts
@@ -9,13 +9,47 @@ export const couponMoneyLogs = [
takeCouponId: 'on04',
takeCouponRank: '매장',
giveCouponBeforeMoney: 0,
- giveCouponVarianceMoney: -50000,
+ giveCouponChangeMoney: -50000,
giveCouponAfterMoney: 0,
takeCouponBeforeMoney: 0,
- takeCouponVarianceMoney: 50000,
+ takeCouponChangeMoney: 50000,
takeCouponAfterMoney: 50000,
couponContents: '오링쿠폰',
giveCouponRegistrationDate: '2022-06-12 16:22',
takeCouponRegistrationDate: '2022-06-12 16:22',
},
+ {
+ id: '00b0292f-3d50-4669-a0c4-7a9d85efc98d',
+ idx: 14,
+ giveCouponId: 'ADMIN',
+ giveCouponRank: 'ADMIN',
+ takeCouponId: 'on03',
+ takeCouponRank: '총판',
+ giveCouponBeforeMoney: 0,
+ giveCouponChangeMoney: -50000,
+ giveCouponAfterMoney: 0,
+ takeCouponBeforeMoney: 0,
+ takeCouponChangeMoney: 50000,
+ takeCouponAfterMoney: 50000,
+ couponContents: '쿠폰테스스',
+ giveCouponRegistrationDate: '2022-06-12 16:22',
+ takeCouponRegistrationDate: '2022-06-12 16:22',
+ },
+ {
+ id: 'b899ec30-b85a-40ab-bb1f-18a596d5c6de',
+ idx: 13,
+ giveCouponId: 'on00',
+ giveCouponRank: '본사',
+ takeCouponId: 'ADMIN',
+ takeCouponRank: 'ADMIN',
+ giveCouponBeforeMoney: 100000,
+ giveCouponChangeMoney: -50000,
+ giveCouponAfterMoney: 50000,
+ takeCouponBeforeMoney: 0,
+ takeCouponChangeMoney: 50000,
+ takeCouponAfterMoney: 0,
+ couponContents: '쿠폰테스스',
+ giveCouponRegistrationDate: '2022-06-12 16:17',
+ takeCouponRegistrationDate: '2022-06-12 16:17',
+ },
];
diff --git a/src/app/mock-api/apps/report/comp-log/api.ts b/src/app/mock-api/apps/report/comp-log/api.ts
index 197cef5..c2068b7 100644
--- a/src/app/mock-api/apps/report/comp-log/api.ts
+++ b/src/app/mock-api/apps/report/comp-log/api.ts
@@ -33,7 +33,7 @@ export class ReportCompLogMockApi {
.reply(({ request }) => {
// Get available queries
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 page = parseInt(request.params.get('page') ?? '1', 10);
const size = parseInt(request.params.get('size') ?? '10', 10);
@@ -42,7 +42,7 @@ export class ReportCompLogMockApi {
let compLogs: any[] | null = cloneDeep(this._compLogs);
// Sort the compLogs
- if (sort === 'sku' || sort === 'name' || sort === 'active') {
+ if (sort === 'signinId' || sort === 'nickname' || sort === 'type') {
compLogs.sort((a, b) => {
const fieldA = a[sort].toString().toUpperCase();
const fieldB = b[sort].toString().toUpperCase();
diff --git a/src/app/mock-api/apps/report/comp-log/data.ts b/src/app/mock-api/apps/report/comp-log/data.ts
index f927297..10d2325 100644
--- a/src/app/mock-api/apps/report/comp-log/data.ts
+++ b/src/app/mock-api/apps/report/comp-log/data.ts
@@ -2,32 +2,39 @@
export const compLogs = [
{
- id: 'on00',
- totalPartnerCount: '5',
- totalHoldingMoney: 303675,
- totalComp: 108933,
- total: 412608,
- branchCount: 1,
- divisionCount: 1,
- officeCount: 1,
- storeCount: 1,
- memberCount: 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: '',
+ id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
+ idx: 17183,
+ rank: '매장',
+ signinId: 'kgon5',
+ nickname: '매장',
+ rate: 1.5,
+ bettingMoney: 800,
+ beforeComp: 28418.37,
+ changeComp: 12.0,
+ afterComp: 28430.37,
+ type: '적립',
+ compContents: '슬롯콤프',
+ registrationDate: '2022-06-20 11:43:37',
+ memo: '',
+ bettingId: 'test1111',
+ bettingNumber: 5970,
+ },
+ {
+ id: '00b0292f-3d50-4669-a0c4-7a9d85efc98d',
+ idx: 17182,
+ rank: '총판',
+ signinId: 'kgon4',
+ nickname: '총판',
+ rate: 0.3,
+ bettingMoney: 800,
+ beforeComp: 32925.03,
+ changeComp: 2.4,
+ afterComp: 32927.43,
+ type: '적립',
+ compContents: '슬롯콤프',
+ registrationDate: '2022-06-20 11:43:37',
+ memo: '',
+ bettingId: 'test1111',
+ bettingNumber: 5970,
},
];
diff --git a/src/app/mock-api/apps/report/loosing/api.ts b/src/app/mock-api/apps/report/loosing/api.ts
index b1c751f..f1bf097 100644
--- a/src/app/mock-api/apps/report/loosing/api.ts
+++ b/src/app/mock-api/apps/report/loosing/api.ts
@@ -1,14 +1,19 @@
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,
+ loosing01Reports as loosing01ReportsData,
+ loosing02Reports as loosing02ReportsData,
+} from './data';
@Injectable({
providedIn: 'root',
})
export class ReportLoosingMockApi {
private _loosings: any[] = loosingsData;
-
+ private _loosing01Reports: any[] = loosing01ReportsData;
+ private _loosing02Reports: any[] = loosing02ReportsData;
/**
* Constructor
*/
@@ -33,29 +38,14 @@ export class ReportLoosingMockApi {
.reply(({ request }) => {
// Get available queries
const search = request.params.get('search');
- const sort = request.params.get('sort') || 'name';
- const order = request.params.get('order') || 'asc';
+ // const sort = request.params.get('sort') || 'name';
+ // const order = request.params.get('order') || 'asc';
const page = parseInt(request.params.get('page') ?? '1', 10);
const size = parseInt(request.params.get('size') ?? '10', 10);
// Clone the loosings
let loosings: any[] | null = cloneDeep(this._loosings);
- // Sort the loosings
- if (sort === 'sku' || sort === 'name' || sort === 'active') {
- loosings.sort((a, b) => {
- const fieldA = a[sort].toString().toUpperCase();
- const fieldB = b[sort].toString().toUpperCase();
- return order === 'asc'
- ? fieldA.localeCompare(fieldB)
- : fieldB.localeCompare(fieldA);
- });
- } else {
- loosings.sort((a, b) =>
- order === 'asc' ? a[sort] - b[sort] : b[sort] - a[sort]
- );
- }
-
// If search exists...
if (search) {
// Filter the loosings
@@ -119,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 loosings = cloneDeep(this._loosings);
+ if (type === '1') {
+ result = cloneDeep(this._loosing01Reports);
+ } else {
+ result = cloneDeep(this._loosing02Reports);
+ }
// 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, 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 a57e1ac..e4f4b5e 100644
--- a/src/app/mock-api/apps/report/loosing/data.ts
+++ b/src/app/mock-api/apps/report/loosing/data.ts
@@ -2,32 +2,447 @@
export const loosings = [
{
- id: 'on00',
- totalPartnerCount: '5',
- totalHoldingMoney: 303675,
- totalComp: 108933,
- total: 412608,
- branchCount: 1,
- divisionCount: 1,
- officeCount: 1,
- storeCount: 1,
- memberCount: 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,
+ id: 'loosing_1',
+ startDate: '2022-06-01 15:38',
+ endDate: '2022-06-12 15:38',
registDate: '2022-06-12 15:38',
- finalSigninDate: '',
- ip: '',
- state: '정상',
- note: '',
+ defaultCount: '15',
+ loosingCount: '15',
+ },
+ {
+ id: 'loosing_2',
+ startDate: '2022-06-01 15:38',
+ endDate: '2022-06-12 15:38',
+ registDate: '2022-06-12 15:38',
+ defaultCount: '14',
+ loosingCount: '16',
+ },
+ {
+ id: 'loosing_3',
+ startDate: '2022-06-01 15:38',
+ endDate: '2022-06-12 15:38',
+ registDate: '2022-06-12 15:38',
+ defaultCount: '12',
+ loosingCount: '11',
+ },
+];
+
+export const loosing01Reports = [
+ {
+ 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',
+ },
+ },
+];
+
+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/mock-api/apps/report/modification-log/api.ts b/src/app/mock-api/apps/report/modification-log/api.ts
index 402e0b2..b172abc 100644
--- a/src/app/mock-api/apps/report/modification-log/api.ts
+++ b/src/app/mock-api/apps/report/modification-log/api.ts
@@ -33,7 +33,7 @@ export class ReportModificationLogMockApi {
.reply(({ request }) => {
// Get available queries
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 page = parseInt(request.params.get('page') ?? '1', 10);
const size = parseInt(request.params.get('size') ?? '10', 10);
@@ -42,7 +42,7 @@ export class ReportModificationLogMockApi {
let modificationLogs: any[] | null = cloneDeep(this._modificationLogs);
// Sort the modificationLogs
- if (sort === 'sku' || sort === 'name' || sort === 'active') {
+ if (sort === 'signinId' || sort === 'rank' || sort === 'history') {
modificationLogs.sort((a, b) => {
const fieldA = a[sort].toString().toUpperCase();
const fieldB = b[sort].toString().toUpperCase();
diff --git a/src/app/mock-api/apps/report/modification-log/data.ts b/src/app/mock-api/apps/report/modification-log/data.ts
index a7c41c1..06fb659 100644
--- a/src/app/mock-api/apps/report/modification-log/data.ts
+++ b/src/app/mock-api/apps/report/modification-log/data.ts
@@ -2,32 +2,111 @@
export const modificationLogs = [
{
- id: 'on00',
- totalPartnerCount: '5',
- totalHoldingMoney: 303675,
- totalComp: 108933,
- total: 412608,
- branchCount: 1,
- divisionCount: 1,
- officeCount: 1,
- storeCount: 1,
- memberCount: 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: '',
+ id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
+ idx: 109,
+ 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: 108,
+ 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: 107,
+ 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',
},
];
diff --git a/src/app/mock-api/apps/report/money-log/api.ts b/src/app/mock-api/apps/report/money-log/api.ts
index 081cc10..0288f4c 100644
--- a/src/app/mock-api/apps/report/money-log/api.ts
+++ b/src/app/mock-api/apps/report/money-log/api.ts
@@ -33,7 +33,7 @@ export class ReportMoneyLogMockApi {
.reply(({ request }) => {
// Get available queries
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 page = parseInt(request.params.get('page') ?? '1', 10);
const size = parseInt(request.params.get('size') ?? '10', 10);
@@ -42,7 +42,7 @@ export class ReportMoneyLogMockApi {
let moneyLogs: any[] | null = cloneDeep(this._moneyLogs);
// Sort the moneyLogs
- if (sort === 'sku' || sort === 'name' || sort === 'active') {
+ if (sort === 'signinId' || sort === 'nickname' || sort === 'momo') {
moneyLogs.sort((a, b) => {
const fieldA = a[sort].toString().toUpperCase();
const fieldB = b[sort].toString().toUpperCase();
diff --git a/src/app/mock-api/apps/report/money-log/data.ts b/src/app/mock-api/apps/report/money-log/data.ts
index 3781426..8ff67eb 100644
--- a/src/app/mock-api/apps/report/money-log/data.ts
+++ b/src/app/mock-api/apps/report/money-log/data.ts
@@ -2,32 +2,39 @@
export const moneyLogs = [
{
- id: 'on00',
- totalPartnerCount: '5',
- totalHoldingMoney: 303675,
- totalComp: 108933,
- total: 412608,
- branchCount: 1,
- divisionCount: 1,
- officeCount: 1,
- storeCount: 1,
- memberCount: 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: '',
+ id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
+ finalSigninDate: '2022-06-21 16:17:30',
+ signinId: 'aa100',
+ nickname: 'aa100',
+ history: '[출금]카지노 게임 입금',
+ beforeMoney: 67131,
+ changeMoney: -67131,
+ afterMoney: 0,
+ memo: '',
+ bettingNumber: 0,
+ },
+ {
+ id: '00b0292f-3d50-4669-a0c4-7a9d85efc98d',
+ finalSigninDate: '2022-06-19 22:03:10',
+ signinId: 'aa100',
+ nickname: 'aa100',
+ history: '[입금]카지노 게임 출금',
+ beforeMoney: 0,
+ changeMoney: 67131,
+ afterMoney: 67131,
+ memo: '',
+ bettingNumber: 0,
+ },
+ {
+ id: 'b899ec30-b85a-40ab-bb1f-18a596d5c6de',
+ finalSigninDate: '2022-06-17 16:27:03',
+ signinId: 'onon6',
+ nickname: '가가가',
+ history: '[회수]관리자차감',
+ beforeMoney: 263737,
+ changeMoney: -263737,
+ afterMoney: 0,
+ memo: '',
+ bettingNumber: 0,
},
];
diff --git a/src/app/mock-api/apps/report/payment-log/api.ts b/src/app/mock-api/apps/report/payment-log/api.ts
index 6f98a33..18ea648 100644
--- a/src/app/mock-api/apps/report/payment-log/api.ts
+++ b/src/app/mock-api/apps/report/payment-log/api.ts
@@ -33,7 +33,7 @@ export class ReportPaymentLogMockApi {
.reply(({ request }) => {
// Get available queries
const search = request.params.get('search');
- const sort = request.params.get('sort') || 'name';
+ const sort = request.params.get('sort') || 'giveId';
const order = request.params.get('order') || 'asc';
const page = parseInt(request.params.get('page') ?? '1', 10);
const size = parseInt(request.params.get('size') ?? '10', 10);
@@ -42,7 +42,7 @@ export class ReportPaymentLogMockApi {
let paymentLogs: any[] | null = cloneDeep(this._paymentLogs);
// Sort the paymentLogs
- if (sort === 'sku' || sort === 'name' || sort === 'active') {
+ if (sort === 'giveId' || sort === 'takeId' || sort === 'idx') {
paymentLogs.sort((a, b) => {
const fieldA = a[sort].toString().toUpperCase();
const fieldB = b[sort].toString().toUpperCase();
diff --git a/src/app/mock-api/apps/report/payment-log/data.ts b/src/app/mock-api/apps/report/payment-log/data.ts
index 98e4bc4..ffc8a6d 100644
--- a/src/app/mock-api/apps/report/payment-log/data.ts
+++ b/src/app/mock-api/apps/report/payment-log/data.ts
@@ -2,32 +2,99 @@
export const paymentLogs = [
{
- id: 'on00',
- totalPartnerCount: '5',
- totalHoldingMoney: 303675,
- totalComp: 108933,
- total: 412608,
- branchCount: 1,
- divisionCount: 1,
- officeCount: 1,
- storeCount: 1,
- memberCount: 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: '',
+ id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c',
+ idx: 6,
+ giveRank: '회원',
+ takeRank: '총판',
+ giveId: 'onon6',
+ takeId: 'on03',
+ giveBeforeMoney: 0,
+ giveChangeMoney: 10000,
+ giveAfterMoney: 10000,
+ takeBeforeMoney: 213940,
+ takeChangeMoney: -10000,
+ takeAfterMoney: 203940,
+ giveRegistrationDate: '2022-06-12 17:43',
+ takeRegistrationDate: '2022-06-12 17:43',
+ },
+ {
+ id: '00b0292f-3d50-4669-a0c4-7a9d85efc98d',
+ idx: 5,
+ giveRank: '매장',
+ takeRank: '회원',
+ giveId: 'on04',
+ takeId: 'onon6',
+ giveBeforeMoney: 0,
+ giveChangeMoney: 200000,
+ giveAfterMoney: 200000,
+ takeBeforeMoney: 200000,
+ takeChangeMoney: -200000,
+ takeAfterMoney: 0,
+ giveRegistrationDate: '2022-06-12 16:22',
+ takeRegistrationDate: '2022-06-12 16:22',
+ },
+ {
+ id: 'b899ec30-b85a-40ab-bb1f-18a596d5c6de',
+ idx: 4,
+ giveRank: '총판',
+ takeRank: '매장',
+ giveId: 'on03',
+ takeId: 'on04',
+ giveBeforeMoney: 0,
+ giveChangeMoney: 200000,
+ giveAfterMoney: 200000,
+ takeBeforeMoney: 200000,
+ takeChangeMoney: -200000,
+ takeAfterMoney: 0,
+ giveRegistrationDate: '2022-06-12 16:21',
+ takeRegistrationDate: '2022-06-12 16:21',
+ },
+ {
+ id: '8fcce528-d878-4cc8-99f7-bd3451ed5405',
+ idx: 3,
+ giveRank: '부본사',
+ takeRank: '총판',
+ giveId: 'on02',
+ takeId: 'on03',
+ giveBeforeMoney: 0,
+ giveChangeMoney: 200000,
+ giveAfterMoney: 200000,
+ takeBeforeMoney: 200000,
+ takeChangeMoney: -200000,
+ takeAfterMoney: 0,
+ giveRegistrationDate: '2022-06-12 16:20',
+ takeRegistrationDate: '2022-06-12 16:20',
+ },
+ {
+ id: '8fcce528-d878-4cc8-99f7-bd3451ed5406',
+ idx: 2,
+ giveRank: '대본사',
+ takeRank: '부본사',
+ giveId: 'on01',
+ takeId: 'on02',
+ giveBeforeMoney: 0,
+ giveChangeMoney: 200000,
+ giveAfterMoney: 200000,
+ takeBeforeMoney: 250000,
+ takeChangeMoney: -200000,
+ takeAfterMoney: 50000,
+ giveRegistrationDate: '2022-06-12 16:16',
+ takeRegistrationDate: '2022-06-12 16:16',
+ },
+ {
+ id: 'd7a47d7c-4cdf-4319-bbaa-37ade38c622c',
+ idx: 1,
+ giveRank: '본사',
+ takeRank: '대본사',
+ giveId: 'on00',
+ takeId: 'on01',
+ giveBeforeMoney: 0,
+ giveChangeMoney: 250000,
+ giveAfterMoney: 250000,
+ takeBeforeMoney: 300000,
+ takeChangeMoney: -250000,
+ takeAfterMoney: 50000,
+ giveRegistrationDate: '2022-06-12 16:11',
+ takeRegistrationDate: '2022-06-12 16:11',
},
];
diff --git a/src/app/modules/admin/board/notice-oneline/components/index.ts b/src/app/modules/admin/board/notice-oneline/components/index.ts
index 04759eb..d187813 100644
--- a/src/app/modules/admin/board/notice-oneline/components/index.ts
+++ b/src/app/modules/admin/board/notice-oneline/components/index.ts
@@ -1,3 +1,4 @@
import { ListComponent } from './list.component';
+import { ReditComponent } from './redit.component';
-export const COMPONENTS = [ListComponent];
+export const COMPONENTS = [ListComponent, ReditComponent];
diff --git a/src/app/modules/admin/board/notice-oneline/components/list.component.html b/src/app/modules/admin/board/notice-oneline/components/list.component.html
index 280858f..48919ac 100644
--- a/src/app/modules/admin/board/notice-oneline/components/list.component.html
+++ b/src/app/modules/admin/board/notice-oneline/components/list.component.html
@@ -12,115 +12,80 @@
-
-
-
-
-
-
-
- 아이디
- 닉네임
- 이름
- 사이트
-
-
+
-
-
-
-
-
+
+
+
+
+
+ 등록
+
+
+
+
+
+
+
+
+
+
+
-
- 검색하기
+
+ Search
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -130,21 +95,25 @@
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto"
>
- 0; else noNoticeOneline">
+ 0; else noUser">
-
번호
-
사이트
-
제목
-
작성자
-
작성일
-
조회
-
상태
+
번호
+
사이트
+
제목
+
+ 작성자
+
+ 작성일
+
+
+ 조회
+
+ 상태
+
@@ -158,37 +127,39 @@
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
>
-
+
{{ noticeOneline.idx }}
-
+
{{ noticeOneline.site }}
-
+
{{ noticeOneline.title }}
-
-
+
+
{{ noticeOneline.writer }}
-
-
-
+
+
{{ noticeOneline.writeDate }}
-
-
+
+
{{ noticeOneline.views }}
-
-
-
+
+
{{ noticeOneline.state }}
+
+
-
-
등록
@@ -204,11 +175,11 @@
-
+
- There are no noticeOnelines!
+ There are no data!
diff --git a/src/app/modules/admin/board/notice-oneline/components/list.component.ts b/src/app/modules/admin/board/notice-oneline/components/list.component.ts
index 27e8944..94bbd15 100644
--- a/src/app/modules/admin/board/notice-oneline/components/list.component.ts
+++ b/src/app/modules/admin/board/notice-oneline/components/list.component.ts
@@ -8,28 +8,13 @@ import {
ViewChild,
ViewEncapsulation,
} from '@angular/core';
-import {
- FormBuilder,
- FormControl,
- FormGroup,
- Validators,
-} from '@angular/forms';
-import { MatCheckboxChange } from '@angular/material/checkbox';
-import { MatPaginator } from '@angular/material/paginator';
-import { MatSort } from '@angular/material/sort';
-import {
- debounceTime,
- map,
- merge,
- Observable,
- Subject,
- switchMap,
- takeUntil,
-} from 'rxjs';
-import { fuseAnimations } from '@fuse/animations';
-import { FuseConfirmationService } from '@fuse/services/confirmation';
+import { FormBuilder, FormControl } from '@angular/forms';
+
+import { MatPaginator } from '@angular/material/paginator';
+
+import { Observable, Subject, takeUntil } from 'rxjs';
+import { fuseAnimations } from '@fuse/animations';
-import { User } from '../../../member/user/models/user';
import { NoticeOneline } from '../models/notice-oneline';
import { NoticeOnelinePagination } from '../models/notice-oneline-pagination';
import { NoticeOnelineService } from '../services/notice-oneline.service';
@@ -42,18 +27,18 @@ import { Router } from '@angular/router';
/* language=SCSS */
`
.inventory-grid {
- grid-template-columns: 60px auto 40px;
+ grid-template-columns: 40px 40px auto 200px 200px;
@screen sm {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px;
+ grid-template-columns: 40px 40px auto 200px 200px;
}
@screen md {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px 60px;
+ grid-template-columns: 40px 40px auto 300px 200px;
}
@screen lg {
- grid-template-columns: 60px 70px 70px 70px 70px 100px 60px 60px auto 60px 60px 60px 60px;
+ grid-template-columns: 40px 40px auto 300px 200px;
}
}
`,
@@ -64,16 +49,16 @@ import { Router } from '@angular/router';
})
export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild(MatPaginator) private _paginator!: MatPaginator;
- @ViewChild(MatSort) private _sort!: MatSort;
noticeOnelines$!: Observable
;
- users$!: Observable;
isLoading = false;
searchInputControl = new FormControl();
selectedNoticeOneline?: NoticeOneline;
pagination?: NoticeOnelinePagination;
+ __isSearchOpened = false;
+
private _unsubscribeAll: Subject = new Subject();
/**
@@ -81,8 +66,6 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
*/
constructor(
private _changeDetectorRef: ChangeDetectorRef,
- private _fuseConfirmationService: FuseConfirmationService,
- private _formBuilder: FormBuilder,
private _noticeOnelineService: NoticeOnelineService,
private router: Router
) {}
@@ -113,45 +96,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
/**
* After view init
*/
- ngAfterViewInit(): void {
- if (this._sort && this._paginator) {
- // Set the initial sort
- this._sort.sort({
- id: 'name',
- start: 'asc',
- disableClear: true,
- });
-
- // Mark for check
- this._changeDetectorRef.markForCheck();
-
- // If the noticeOneline changes the sort order...
- this._sort.sortChange
- .pipe(takeUntil(this._unsubscribeAll))
- .subscribe(() => {
- // Reset back to the first page
- this._paginator.pageIndex = 0;
- });
-
- // Get products if sort or page changes
- merge(this._sort.sortChange, this._paginator.page)
- .pipe(
- switchMap(() => {
- this.isLoading = true;
- return this._noticeOnelineService.getNoticeOnelines(
- this._paginator.pageIndex,
- this._paginator.pageSize,
- this._sort.active,
- this._sort.direction
- );
- }),
- map(() => {
- this.isLoading = false;
- })
- )
- .subscribe();
- }
- }
+ ngAfterViewInit(): void {}
/**
* On destroy
@@ -166,14 +111,24 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
// @ Public methods
// -----------------------------------------------------------------------------------------------------
- viewUserDetail(id: string): void {
- let url: string = 'member/user/' + id;
- this.router.navigateByUrl(url);
- }
// -----------------------------------------------------------------------------------------------------
// @ Private methods
// -----------------------------------------------------------------------------------------------------
+ /**
+ * toggle the search
+ * Used in 'bar'
+ */
+ __onClickTItle(noticeOneline: NoticeOneline): void {}
+ __onClickSearch(): void {
+ this.__isSearchOpened = !this.__isSearchOpened;
+ }
+
+ __onClickReditBtn(event: MouseEvent, id: string): void {
+ const param = id === '0' ? '' : id;
+ let url: string = 'board/notice-oneline/redit/' + param;
+ this.router.navigateByUrl(url);
+ }
/**
* Create product
*/
diff --git a/src/app/modules/admin/board/notice-oneline/components/redit.component.html b/src/app/modules/admin/board/notice-oneline/components/redit.component.html
new file mode 100644
index 0000000..c20167f
--- /dev/null
+++ b/src/app/modules/admin/board/notice-oneline/components/redit.component.html
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+ 한줄공지 {{ !noticeOneline ? "등록" : "수정" }}
+
+
+
+
+
+
+
+ 취소
+
+
+
+ {{ !noticeOneline ? "등록" : "수정" }}
+
+
+
+
+
+
+
+
diff --git a/src/app/modules/admin/board/notice-oneline/components/registration.component.ts b/src/app/modules/admin/board/notice-oneline/components/redit.component.ts
similarity index 56%
rename from src/app/modules/admin/board/notice-oneline/components/registration.component.ts
rename to src/app/modules/admin/board/notice-oneline/components/redit.component.ts
index be1797c..c0b797b 100644
--- a/src/app/modules/admin/board/notice-oneline/components/registration.component.ts
+++ b/src/app/modules/admin/board/notice-oneline/components/redit.component.ts
@@ -8,33 +8,20 @@ import {
ViewChild,
ViewEncapsulation,
} from '@angular/core';
-import {
- FormBuilder,
- FormControl,
- FormGroup,
- Validators,
-} from '@angular/forms';
-import { MatCheckboxChange } from '@angular/material/checkbox';
+
+import { ActivatedRoute, Router } from '@angular/router';
+import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
-import {
- debounceTime,
- map,
- merge,
- Observable,
- Subject,
- switchMap,
- takeUntil,
-} from 'rxjs';
+import { Subject, takeUntil } from 'rxjs';
import { fuseAnimations } from '@fuse/animations';
import { FuseConfirmationService } from '@fuse/services/confirmation';
-
-import { User } from 'app/modules/admin/member/user/models/user';
-import { UserService } from 'app/modules/admin/member/user/services/user.service';
+import { NoticeOnelineService } from '../services/notice-oneline.service';
+import { NoticeOneline } from '../models/notice-oneline';
@Component({
- selector: 'notice-oneline-registration',
- templateUrl: './registration.component.html',
+ selector: 'notice-oneline-redit',
+ templateUrl: './redit.component.html',
styles: [
/* language=SCSS */
`
@@ -59,14 +46,20 @@ import { UserService } from 'app/modules/admin/member/user/services/user.service
changeDetection: ChangeDetectionStrategy.OnPush,
animations: fuseAnimations,
})
-export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
+export class ReditComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild(MatPaginator) private _paginator!: MatPaginator;
@ViewChild(MatSort) private _sort!: MatSort;
isLoading = false;
searchInputControl = new FormControl();
- selectedProductForm!: FormGroup;
- selectedUser?: User;
+ noticeOnelineForm!: FormGroup;
+ editMode: boolean = false;
+
+ noticeType = NOTICE_ONELINE_TYPE;
+ siteType = SITE_NOTICE_ONELINE_TYPE;
+ useOrNotType = USE_OR_NOT_NOTICE_ONELINE_TYPE;
+
+ noticeOneline!: NoticeOneline;
private _unsubscribeAll: Subject = new Subject();
@@ -77,7 +70,9 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
private _changeDetectorRef: ChangeDetectorRef,
private _fuseConfirmationService: FuseConfirmationService,
private _formBuilder: FormBuilder,
- private _userService: UserService
+ private _route: ActivatedRoute,
+ private _router: Router,
+ private _noticeOnelineService: NoticeOnelineService
) {}
// -----------------------------------------------------------------------------------------------------
@@ -88,53 +83,32 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
* On init
*/
ngOnInit(): void {
- this.selectedProductForm = this._formBuilder.group({
- id: [''],
- signinId: [{ value: '', disabled: true }],
- signinPw: [{ value: '' }],
- exchangePw: [''],
- description: [''],
- tags: [[]],
- nickname: [{ value: '', disabled: true }],
- ownCash: [''],
- phoneNumber: [''],
- level: [''],
- status: [''],
- isExcahngeMoney: [''],
- bankname: [''],
- accountNumber: [''],
- accountHolder: [''],
- comp: [''],
- coupon: [''],
- recommender: [{ value: '', disabled: true }],
- changeSite: [''],
- recommendCount: [''],
- hodingGameMoney: [{ value: '0', disabled: true }],
- memo: [''],
- bacaraRate: [],
- rulletRate: [],
- dragonRate: [],
- etcRate: [],
- slotRate: [],
- casinoRusingRate: [],
- slotRusingRate: [],
+ // Create the contact form
+ this.noticeOnelineForm = this._formBuilder.group({
+ writer: ['관리자'],
+ noticeType: [''],
+ useOrNot: [''],
+ widthSize: [''],
+ site: [''],
+ title: [''],
+ writerDate: [''],
+ views: ['0'],
+ content: [''],
});
- // Get the User
- this._userService.user$
+ this._noticeOnelineService.noticeOneline$
.pipe(takeUntil(this._unsubscribeAll))
- .subscribe((user: User | undefined) => {
- if (!user) {
+ .subscribe((noticeOneline: NoticeOneline | undefined) => {
+ if (!noticeOneline) {
return;
}
- this.selectedUser = user;
- this.selectedProductForm.patchValue(user);
+ this.noticeOneline = noticeOneline;
+ this.noticeOnelineForm.patchValue(noticeOneline);
+
// Mark for check
this._changeDetectorRef.markForCheck();
});
-
- /* this.user$ = this._userService.user$; */
}
/**
@@ -159,6 +133,14 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
// @ Private methods
// -----------------------------------------------------------------------------------------------------
+ __onClickeCancel(): void {
+ /* let url: string = 'board/customer-template/';
+ this._router.navigateByUrl(url); */
+ }
+ __onClickReditBtn(noticeOneline: NoticeOneline): void {
+ console.log('click: ', noticeOneline);
+ }
+
/**
* Create product
*/
@@ -171,6 +153,22 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
*/
__toggleDetails(productId: string): void {}
+ /**
+ * Toggle edit mode
+ *
+ * @param editMode
+ */
+ toggleEditMode(editMode: boolean | null = null): void {
+ if (editMode === null) {
+ this.editMode = !this.editMode;
+ } else {
+ this.editMode = editMode;
+ }
+
+ // Mark for check
+ this._changeDetectorRef.markForCheck();
+ }
+
/**
* Track by function for ngFor loops
*
@@ -181,3 +179,28 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
return item.id || index;
}
}
+
+export const NOTICE_ONELINE_TYPE = [
+ {
+ key: '0',
+ value: '흐르는공지',
+ },
+];
+
+export const SITE_NOTICE_ONELINE_TYPE = [
+ {
+ key: '0',
+ value: '--전체--',
+ },
+];
+
+export const USE_OR_NOT_NOTICE_ONELINE_TYPE = [
+ {
+ key: '0',
+ value: '사용(노출)',
+ },
+ {
+ key: '1',
+ value: '미사용',
+ },
+];
diff --git a/src/app/modules/admin/board/notice-oneline/components/registration.component.html b/src/app/modules/admin/board/notice-oneline/components/registration.component.html
deleted file mode 100644
index cccc15f..0000000
--- a/src/app/modules/admin/board/notice-oneline/components/registration.component.html
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/src/app/modules/admin/board/notice-oneline/components/view.component.html b/src/app/modules/admin/board/notice-oneline/components/view.component.html
deleted file mode 100644
index 79fed21..0000000
--- a/src/app/modules/admin/board/notice-oneline/components/view.component.html
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/src/app/modules/admin/board/notice-oneline/models/notice-oneline.ts b/src/app/modules/admin/board/notice-oneline/models/notice-oneline.ts
index 8e8e85d..a744714 100644
--- a/src/app/modules/admin/board/notice-oneline/models/notice-oneline.ts
+++ b/src/app/modules/admin/board/notice-oneline/models/notice-oneline.ts
@@ -1,4 +1,5 @@
export interface NoticeOneline {
+ id: string;
idx?: number;
site?: string;
title?: string;
diff --git a/src/app/modules/admin/board/notice-oneline/notice-oneline.module.ts b/src/app/modules/admin/board/notice-oneline/notice-oneline.module.ts
index a72789f..71f81cf 100644
--- a/src/app/modules/admin/board/notice-oneline/notice-oneline.module.ts
+++ b/src/app/modules/admin/board/notice-oneline/notice-oneline.module.ts
@@ -15,6 +15,8 @@ import { MatGridListModule } from '@angular/material/grid-list';
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { MatRadioModule } from '@angular/material/radio';
import { MatCheckboxModule } from '@angular/material/checkbox';
+import { MatDatepickerModule } from '@angular/material/datepicker';
+import { MatMomentDateModule } from '@angular/material-moment-adapter';
import { TranslocoModule } from '@ngneat/transloco';
@@ -45,6 +47,8 @@ import { noticeOnelineRoutes } from './notice-oneline.routing';
MatSlideToggleModule,
MatRadioModule,
MatCheckboxModule,
+ MatDatepickerModule,
+ MatMomentDateModule,
],
})
export class NoticeOnelineModule {}
diff --git a/src/app/modules/admin/board/notice-oneline/notice-oneline.routing.ts b/src/app/modules/admin/board/notice-oneline/notice-oneline.routing.ts
index 06471ca..9247b39 100644
--- a/src/app/modules/admin/board/notice-oneline/notice-oneline.routing.ts
+++ b/src/app/modules/admin/board/notice-oneline/notice-oneline.routing.ts
@@ -1,24 +1,35 @@
import { Route } from '@angular/router';
import { ListComponent } from './components/list.component';
-import { ViewComponent } from '../../member/user/components/view.component';
+import { ReditComponent } from './components/redit.component';
-import { NoticeOnelinesResolver } from './resolvers/notice-oneline.resolver';
-import { UserResolver } from '../../member/user/resolvers/user.resolver';
+import {
+ NoticeOnelinesResolver,
+ NoticeOnelineResolver,
+} from './resolvers/notice-oneline.resolver';
export const noticeOnelineRoutes: Route[] = [
{
path: '',
+ pathMatch: 'full',
+ redirectTo: 'list',
+ },
+ {
+ path: 'list',
component: ListComponent,
resolve: {
noticeOnelines: NoticeOnelinesResolver,
},
},
{
- path: ':id',
- component: ViewComponent,
+ path: 'redit',
+ component: ReditComponent,
+ },
+ {
+ path: 'redit/:id',
+ component: ReditComponent,
resolve: {
- users: UserResolver,
+ noticeOneline: NoticeOnelineResolver,
},
},
];
diff --git a/src/app/modules/admin/board/notice-oneline/resolvers/notice-oneline.resolver.ts b/src/app/modules/admin/board/notice-oneline/resolvers/notice-oneline.resolver.ts
index 4ca837c..9cf54c8 100644
--- a/src/app/modules/admin/board/notice-oneline/resolvers/notice-oneline.resolver.ts
+++ b/src/app/modules/admin/board/notice-oneline/resolvers/notice-oneline.resolver.ts
@@ -38,7 +38,7 @@ export class NoticeOnelineResolver implements Resolve {
state: RouterStateSnapshot
): Observable {
return this._noticeOnelineService
- .getNoticeOnelineById(route.paramMap.get('title'))
+ .getNoticeOnelineById(route.paramMap.get('id'))
.pipe(
// Error here means the requested product is not available
catchError((error) => {
diff --git a/src/app/modules/admin/board/notice/components/index.ts b/src/app/modules/admin/board/notice/components/index.ts
index 04759eb..d187813 100644
--- a/src/app/modules/admin/board/notice/components/index.ts
+++ b/src/app/modules/admin/board/notice/components/index.ts
@@ -1,3 +1,4 @@
import { ListComponent } from './list.component';
+import { ReditComponent } from './redit.component';
-export const COMPONENTS = [ListComponent];
+export const COMPONENTS = [ListComponent, ReditComponent];
diff --git a/src/app/modules/admin/board/notice/components/list.component.html b/src/app/modules/admin/board/notice/components/list.component.html
index 753facc..c404905 100644
--- a/src/app/modules/admin/board/notice/components/list.component.html
+++ b/src/app/modules/admin/board/notice/components/list.component.html
@@ -12,132 +12,99 @@
-
-
-
-
-
-
-
- 작성자
- 글제목
- 글내용
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Search
+
+
+
+
+
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- 검색하기
+
+ 등록
+
+
+
+ 숨김
+
+
+
+ 완전삭제
@@ -149,22 +116,28 @@
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto"
>
- 0; else noNotice">
+ 0; else noUser">
-
선택
-
번호
-
사이트
-
제목
-
작성자
-
작성일
-
조회
-
상태
+
+
+
+
번호
+
사이트
+
제목
+
+ 작성자
+
+ 작성일
+
+
+ 조회
+
+ 상태
+
@@ -174,44 +147,44 @@
-
-
+
-
+
{{ notice.idx }}
-
+
{{ notice.site }}
-
+
{{ notice.title }}
-
-
+
+
{{ notice.writer }}
-
-
-
+
+
{{ notice.writeDate }}
-
-
+
+
{{ notice.views }}
-
-
-
+
+
{{ notice.state }}
+
+
-
등록
-
숨김
-
완전삭제
-
+
- There are no notices!
+ There are no data!
diff --git a/src/app/modules/admin/board/notice/components/list.component.ts b/src/app/modules/admin/board/notice/components/list.component.ts
index 812f993..b32b8fd 100644
--- a/src/app/modules/admin/board/notice/components/list.component.ts
+++ b/src/app/modules/admin/board/notice/components/list.component.ts
@@ -42,18 +42,18 @@ import { Router } from '@angular/router';
/* language=SCSS */
`
.inventory-grid {
- grid-template-columns: 60px auto 40px;
+ grid-template-columns: 40px 40px 40px auto 200px 200px;
@screen sm {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px;
+ grid-template-columns: 40px 40px 40px auto 200px 200px;
}
@screen md {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px 60px;
+ grid-template-columns: 40px 40px 40px auto 300px 200px;
}
@screen lg {
- grid-template-columns: 60px 70px 70px 70px 70px 100px 60px 60px auto 60px 60px 60px 60px;
+ grid-template-columns: 40px 40px 40px auto 300px 200px;
}
}
`,
@@ -67,13 +67,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild(MatSort) private _sort!: MatSort;
notices$!: Observable
;
- users$!: Observable;
isLoading = false;
searchInputControl = new FormControl();
selectedNotice?: Notice;
pagination?: NoticePagination;
+ __isSearchOpened = false;
+
private _unsubscribeAll: Subject = new Subject();
/**
@@ -113,45 +114,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
/**
* After view init
*/
- ngAfterViewInit(): void {
- if (this._sort && this._paginator) {
- // Set the initial sort
- this._sort.sort({
- id: 'name',
- start: 'asc',
- disableClear: true,
- });
-
- // Mark for check
- this._changeDetectorRef.markForCheck();
-
- // If the notice changes the sort order...
- this._sort.sortChange
- .pipe(takeUntil(this._unsubscribeAll))
- .subscribe(() => {
- // Reset back to the first page
- this._paginator.pageIndex = 0;
- });
-
- // Get products if sort or page changes
- merge(this._sort.sortChange, this._paginator.page)
- .pipe(
- switchMap(() => {
- this.isLoading = true;
- return this._noticeService.getNotices(
- this._paginator.pageIndex,
- this._paginator.pageSize,
- this._sort.active,
- this._sort.direction
- );
- }),
- map(() => {
- this.isLoading = false;
- })
- )
- .subscribe();
- }
- }
+ ngAfterViewInit(): void {}
/**
* On destroy
@@ -166,14 +129,19 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
// @ Public methods
// -----------------------------------------------------------------------------------------------------
- viewUserDetail(id: string): void {
- let url: string = 'member/user/' + id;
- this.router.navigateByUrl(url);
- }
// -----------------------------------------------------------------------------------------------------
// @ Private methods
// -----------------------------------------------------------------------------------------------------
+ __onClickReditBtn(event: MouseEvent, id: string): void {
+ const param = id === '0' ? '' : id;
+ let url: string = 'board/notice/redit/' + param;
+ this.router.navigateByUrl(url);
+ }
+ __onClickSearch(): void {
+ this.__isSearchOpened = !this.__isSearchOpened;
+ }
+
/**
* Create product
*/
diff --git a/src/app/modules/admin/board/notice/components/redit.component.html b/src/app/modules/admin/board/notice/components/redit.component.html
new file mode 100644
index 0000000..7b7431b
--- /dev/null
+++ b/src/app/modules/admin/board/notice/components/redit.component.html
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+ 공지사항 {{ !notice ? "등록" : "수정" }}
+
+
+
+
+
+
+ 글쓴이(아이디)
+
+
+
+
+
+
+
+ 공지적용
+
+
+
+ {{ type.value }}
+
+
+
+
+
+
+
+
+
+ 제목
+
+
+
+
+
+
+ 등록시간
+
+
+
예) 2001-01-01 23시22분(2001년 1월1일 오후 11시21분)-
+ 미등록시 현재일로 등록
+
+
+
+
+
+
+ 내용
+
+
+
+
+
+
+
+
+ 취소
+
+
+
+ {{ !notice ? "등록" : "수정" }}
+
+
+ 숨김
+
+
+
+
+
+
+
+
diff --git a/src/app/modules/admin/board/notice/components/view.component.ts b/src/app/modules/admin/board/notice/components/redit.component.ts
similarity index 62%
rename from src/app/modules/admin/board/notice/components/view.component.ts
rename to src/app/modules/admin/board/notice/components/redit.component.ts
index 67e7c80..a7a72a0 100644
--- a/src/app/modules/admin/board/notice/components/view.component.ts
+++ b/src/app/modules/admin/board/notice/components/redit.component.ts
@@ -8,33 +8,20 @@ import {
ViewChild,
ViewEncapsulation,
} from '@angular/core';
-import {
- FormBuilder,
- FormControl,
- FormGroup,
- Validators,
-} from '@angular/forms';
-import { MatCheckboxChange } from '@angular/material/checkbox';
+
+import { ActivatedRoute, Router } from '@angular/router';
+import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
-import {
- debounceTime,
- map,
- merge,
- Observable,
- Subject,
- switchMap,
- takeUntil,
-} from 'rxjs';
+import { Subject, takeUntil } from 'rxjs';
import { fuseAnimations } from '@fuse/animations';
import { FuseConfirmationService } from '@fuse/services/confirmation';
-
-import { User } from 'app/modules/admin/member/user/models/user';
-import { UserService } from 'app/modules/admin/member/user/services/user.service';
+import { NoticeService } from '../services/notice.service';
+import { Notice } from '../models/notice';
@Component({
- selector: 'notice-view',
- templateUrl: './view.component.html',
+ selector: 'notice-redit',
+ templateUrl: './redit.component.html',
styles: [
/* language=SCSS */
`
@@ -59,14 +46,18 @@ import { UserService } from 'app/modules/admin/member/user/services/user.service
changeDetection: ChangeDetectionStrategy.OnPush,
animations: fuseAnimations,
})
-export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
+export class ReditComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild(MatPaginator) private _paginator!: MatPaginator;
@ViewChild(MatSort) private _sort!: MatSort;
isLoading = false;
searchInputControl = new FormControl();
- selectedProductForm!: FormGroup;
- selectedUser?: User;
+ noticeForm!: FormGroup;
+ editMode: boolean = false;
+
+ noticeType = NOTICE_TYPE;
+
+ notice!: Notice;
private _unsubscribeAll: Subject = new Subject();
@@ -77,7 +68,9 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
private _changeDetectorRef: ChangeDetectorRef,
private _fuseConfirmationService: FuseConfirmationService,
private _formBuilder: FormBuilder,
- private _userService: UserService
+ private _route: ActivatedRoute,
+ private _router: Router,
+ private _noticeService: NoticeService
) {}
// -----------------------------------------------------------------------------------------------------
@@ -88,53 +81,28 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
* On init
*/
ngOnInit(): void {
- this.selectedProductForm = this._formBuilder.group({
- id: [''],
- signinId: [{ value: '', disabled: true }],
- signinPw: [{ value: '' }],
- exchangePw: [''],
- description: [''],
- tags: [[]],
- nickname: [{ value: '', disabled: true }],
- ownCash: [''],
- phoneNumber: [''],
- level: [''],
- status: [''],
- isExcahngeMoney: [''],
- bankname: [''],
- accountNumber: [''],
- accountHolder: [''],
- comp: [''],
- coupon: [''],
- recommender: [{ value: '', disabled: true }],
- changeSite: [''],
- recommendCount: [''],
- hodingGameMoney: [{ value: '0', disabled: true }],
- memo: [''],
- bacaraRate: [],
- rulletRate: [],
- dragonRate: [],
- etcRate: [],
- slotRate: [],
- casinoRusingRate: [],
- slotRusingRate: [],
+ // Create the contact form
+ this.noticeForm = this._formBuilder.group({
+ writer: ['관리자'],
+ noticeType: [''],
+ title: [''],
+ writerDate: [''],
+ content: [''],
});
- // Get the User
- this._userService.user$
+ this._noticeService.notice$
.pipe(takeUntil(this._unsubscribeAll))
- .subscribe((user: User | undefined) => {
- if (!user) {
+ .subscribe((notice: Notice | undefined) => {
+ if (!notice) {
return;
}
- this.selectedUser = user;
- this.selectedProductForm.patchValue(user);
+ this.notice = notice;
+ this.noticeForm.patchValue(notice);
+
// Mark for check
this._changeDetectorRef.markForCheck();
});
-
- /* this.user$ = this._userService.user$; */
}
/**
@@ -159,6 +127,14 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
// @ Private methods
// -----------------------------------------------------------------------------------------------------
+ __onClickeCancel(): void {
+ /* let url: string = 'board/customer-template/';
+ this._router.navigateByUrl(url); */
+ }
+ __onClickReditBtn(event: MouseEvent, notice: Notice): void {
+ console.log('click: ', notice);
+ }
+
/**
* Create product
*/
@@ -171,6 +147,22 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
*/
__toggleDetails(productId: string): void {}
+ /**
+ * Toggle edit mode
+ *
+ * @param editMode
+ */
+ toggleEditMode(editMode: boolean | null = null): void {
+ if (editMode === null) {
+ this.editMode = !this.editMode;
+ } else {
+ this.editMode = editMode;
+ }
+
+ // Mark for check
+ this._changeDetectorRef.markForCheck();
+ }
+
/**
* Track by function for ngFor loops
*
@@ -181,3 +173,14 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
return item.id || index;
}
}
+
+export const NOTICE_TYPE = [
+ {
+ key: '0',
+ value: '공지사항',
+ },
+ {
+ key: '1',
+ value: '파트너공지',
+ },
+];
diff --git a/src/app/modules/admin/board/notice/components/view.component.html b/src/app/modules/admin/board/notice/components/view.component.html
deleted file mode 100644
index 07b309a..0000000
--- a/src/app/modules/admin/board/notice/components/view.component.html
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/src/app/modules/admin/board/notice/models/notice.ts b/src/app/modules/admin/board/notice/models/notice.ts
index c322533..71394e5 100644
--- a/src/app/modules/admin/board/notice/models/notice.ts
+++ b/src/app/modules/admin/board/notice/models/notice.ts
@@ -1,5 +1,5 @@
export interface Notice {
- id?: string;
+ id: string;
idx?: number;
site?: string;
title?: string;
diff --git a/src/app/modules/admin/board/notice/notice.module.ts b/src/app/modules/admin/board/notice/notice.module.ts
index 0ffebc2..10181be 100644
--- a/src/app/modules/admin/board/notice/notice.module.ts
+++ b/src/app/modules/admin/board/notice/notice.module.ts
@@ -15,6 +15,8 @@ import { MatGridListModule } from '@angular/material/grid-list';
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { MatRadioModule } from '@angular/material/radio';
import { MatCheckboxModule } from '@angular/material/checkbox';
+import { MatDatepickerModule } from '@angular/material/datepicker';
+import { MatMomentDateModule } from '@angular/material-moment-adapter';
import { TranslocoModule } from '@ngneat/transloco';
@@ -45,6 +47,8 @@ import { noticeRoutes } from './notice.routing';
MatSlideToggleModule,
MatRadioModule,
MatCheckboxModule,
+ MatDatepickerModule,
+ MatMomentDateModule,
],
})
export class NoticeModule {}
diff --git a/src/app/modules/admin/board/notice/notice.routing.ts b/src/app/modules/admin/board/notice/notice.routing.ts
index 04c30c6..ef85069 100644
--- a/src/app/modules/admin/board/notice/notice.routing.ts
+++ b/src/app/modules/admin/board/notice/notice.routing.ts
@@ -1,24 +1,32 @@
import { Route } from '@angular/router';
import { ListComponent } from './components/list.component';
-import { ViewComponent } from '../../member/user/components/view.component';
+import { ReditComponent } from './components/redit.component';
-import { NoticesResolver } from './resolvers/notice.resolver';
-import { UserResolver } from '../../member/user/resolvers/user.resolver';
+import { NoticesResolver, NoticeResolver } from './resolvers/notice.resolver';
export const noticeRoutes: Route[] = [
{
path: '',
+ pathMatch: 'full',
+ redirectTo: 'list',
+ },
+ {
+ path: 'list',
component: ListComponent,
resolve: {
notices: NoticesResolver,
},
},
{
- path: ':id',
- component: ViewComponent,
+ path: 'redit',
+ component: ReditComponent,
+ },
+ {
+ path: 'redit/:id',
+ component: ReditComponent,
resolve: {
- users: UserResolver,
+ notice: NoticeResolver,
},
},
];
diff --git a/src/app/modules/admin/board/popup/components/list.component.html b/src/app/modules/admin/board/popup/components/list.component.html
index 376bda2..0ecc8a2 100644
--- a/src/app/modules/admin/board/popup/components/list.component.html
+++ b/src/app/modules/admin/board/popup/components/list.component.html
@@ -9,6 +9,7 @@
팝업 관리
+
;
- users$!: Observable;
isLoading = false;
searchInputControl = new FormControl();
diff --git a/src/app/modules/admin/board/popup/components/redit.component.ts b/src/app/modules/admin/board/popup/components/redit.component.ts
index cb8f2f3..b889715 100644
--- a/src/app/modules/admin/board/popup/components/redit.component.ts
+++ b/src/app/modules/admin/board/popup/components/redit.component.ts
@@ -55,7 +55,6 @@ export class ReditComponent implements OnInit, AfterViewInit, OnDestroy {
searchInputControl = new FormControl();
popupForm!: FormGroup;
editMode: boolean = false;
- contact = contacts[0];
categories = categories;
popup: Popup | undefined;
@@ -159,20 +158,7 @@ export class ReditComponent implements OnInit, AfterViewInit, OnDestroy {
// Mark for check
this._changeDetectorRef.markForCheck();
}
- /**
- * Get country info by iso code
- *
- * @param iso
- */
- getCountryByIso(iso: string): Country {
- return {
- id: '19430ee3-b0fe-4987-a7c8-74453ad5504d',
- iso: 'af',
- name: 'Afghanistan',
- code: '+93',
- flagImagePos: '-1px -3180px',
- } as Country;
- }
+
/**
* Track by function for ngFor loops
*
@@ -184,52 +170,6 @@ export class ReditComponent implements OnInit, AfterViewInit, OnDestroy {
}
}
-export const contacts = [
- {
- id: 'cd5fa417-b667-482d-b208-798d9da3213c',
- avatar: 'assets/images/avatars/male-01.jpg',
- background: 'assets/images/cards/14-640x480.jpg',
- name: 'Dejesus Michael',
- emails: [
- {
- email: 'dejesusmichael@mail.org',
- label: '가로',
- },
- {
- email: 'michael.dejesus@vitricomp.io',
- label: '세로',
- },
- ],
- phoneNumbers: [
- {
- country: 'bs',
- phoneNumber: 'TOP',
- label: 'Mobile',
- },
- {
- country: 'bs',
- phoneNumber: 'LEFT',
- label: 'Work',
- },
- ],
- title: 'Track Service Worker',
- company: 'Vitricomp',
- birthday: '1975-01-10T12:00:00.000Z',
- address: '279 Independence Avenue, Calvary, Guam, PO4127',
- notes:
- 'Do incididunt cillum duis eu pariatur enim proident minim officia amet proident consequat consequat qui consequat magna magna occaecat aliquip culpa pariatur velit nisi nostrud irure eu ullamco exercitation sint.
Cillum deserunt laborum laborum quis nisi enim et aliquip labore excepteur in excepteur labore amet in ipsum ipsum nostrud deserunt lorem nisi voluptate dolor minim enim ut eu cupidatat enim.
',
- tags: ['56ddbd47-4078-4ddd-8448-73c5e88d5f59'],
- },
-];
-
-export interface Country {
- id: string;
- iso: string;
- name: string;
- code: string;
- flagImagePos: string;
-}
-
export const categories = [
{
id: 'b899ec30-b85a-40ab-bb1f-18a596d5c6de',
diff --git a/src/app/modules/admin/board/popup/popup.module.ts b/src/app/modules/admin/board/popup/popup.module.ts
index 2e38a79..ee8ad45 100644
--- a/src/app/modules/admin/board/popup/popup.module.ts
+++ b/src/app/modules/admin/board/popup/popup.module.ts
@@ -15,6 +15,8 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatTableModule } from '@angular/material/table';
import { MatDividerModule } from '@angular/material/divider';
import { MatMenuModule } from '@angular/material/menu';
+import { MatDatepickerModule } from '@angular/material/datepicker';
+import { MatMomentDateModule } from '@angular/material-moment-adapter';
import { TranslocoModule } from '@ngneat/transloco';
@@ -45,6 +47,8 @@ import { popupRoutes } from './popup.routing';
MatTableModule,
MatDividerModule,
MatMenuModule,
+ MatDatepickerModule,
+ MatMomentDateModule,
],
})
export class PopupModule {}
diff --git a/src/app/modules/admin/member/coupon-money-log/components/list.component.html b/src/app/modules/admin/member/coupon-money-log/components/list.component.html
index 7cf958a..fbed494 100644
--- a/src/app/modules/admin/member/coupon-money-log/components/list.component.html
+++ b/src/app/modules/admin/member/coupon-money-log/components/list.component.html
@@ -97,7 +97,7 @@
{{ couponMoneyLog.giveCouponRank
}} {{ couponMoneyLog.takeCouponRank }}지급
+ >{{ couponMoneyLog.takeCouponRank }}지급or회수
{{ couponMoneyLog.giveCouponRank
@@ -114,19 +114,19 @@
}}{{ couponMoneyLog.giveCouponId }}
- {{ couponMoneyLog.takeCouponBeforeMoney }}
+ {{ couponMoneyLog.takeCouponBeforeMoney }}원
- {{ couponMoneyLog.giveCouponBeforeMoney }}
+ {{ couponMoneyLog.giveCouponBeforeMoney }}원
- {{ couponMoneyLog.takeCouponVarianceMoney }}
+ {{ couponMoneyLog.takeCouponChangeMoney }}원
- {{ couponMoneyLog.giveCouponVarianceMoney }}
+ {{ couponMoneyLog.giveCouponChangeMoney }}원
- {{ couponMoneyLog.takeCouponAfterMoney }}
+ {{ couponMoneyLog.takeCouponAfterMoney }}원
- {{ couponMoneyLog.giveCouponAfterMoney }}
+ {{ couponMoneyLog.giveCouponAfterMoney }}원
{{ couponMoneyLog.couponContents }}
diff --git a/src/app/modules/admin/member/coupon-money-log/components/list.component.ts b/src/app/modules/admin/member/coupon-money-log/components/list.component.ts
index d4df12f..f1b29e3 100644
--- a/src/app/modules/admin/member/coupon-money-log/components/list.component.ts
+++ b/src/app/modules/admin/member/coupon-money-log/components/list.component.ts
@@ -42,22 +42,22 @@ import { Router } from '@angular/router';
/* language=SCSS */
`
.inventory-grid {
- /* 번호 비고 정보 아이디 이전 */
- grid-template-columns: 20px 140px 140px auto 140px;
+ /* 번호 비고 정보 아이디 이전 */
+ grid-template-columns: 100px 200px auto 100px 100px;
@screen sm {
- /* 번호 비고 정보 아이디 이전 변동 */
- grid-template-columns: 20px 140px 140px auto 140px 40px 140px 140px;
+ /* 번호 비고 정보 아이디 이전 변동 */
+ grid-template-columns: 100px 200px auto 100px 100px 100px;
}
@screen md {
- /* 번호 비고 정보 아이디 이전 변동 이후 */
- grid-template-columns: 20px 140px 140px auto 140px 40px 140px;
+ /* 번호 비고 정보 아이디 이전 변동 이후 */
+ grid-template-columns: 100px 200px auto 100px 100px 100px 140px;
}
@screen lg {
- /* 번호 비고 정보 아이디 이전 변동 이후 내용 등록시간 */
- grid-template-columns: 20px 140px 140px auto 140px 140px 140px 140px 140px;
+ /* 번호 비고 정보 아이디 이전 변동 이후 내용 등록시간 */
+ grid-template-columns: 100px 200px auto 100px 100px 100px 140px 140px 140px;
}
}
`,
diff --git a/src/app/modules/admin/member/coupon-money-log/models/coupon-money-log.ts b/src/app/modules/admin/member/coupon-money-log/models/coupon-money-log.ts
index 661a40b..0200eda 100644
--- a/src/app/modules/admin/member/coupon-money-log/models/coupon-money-log.ts
+++ b/src/app/modules/admin/member/coupon-money-log/models/coupon-money-log.ts
@@ -3,41 +3,17 @@ export interface CouponMoneyLog {
idx?: number;
giveCouponId?: string; // 쿠폰지급 해준 아이디
giveCouponRank?: string; // 쿠폰지급 해준 등급
- takeCouponId?: string; // 쿠폰지급 받은 아이디
- takeCouponRank?: string; // 쿠폰지급 받은 등급
- useCouponId?: string; // 쿠폰사용 아이디
- useCouponRank?: string; // 쿠폰사용 등급
- retrieveCouponId?: string; // 쿠폰 회수 아이디
- retrieveCouponRank?: string; // 쿠폰 회수 등급
+ takeCouponId?: string; // 쿠폰 받은 아이디
+ takeCouponRank?: string; // 쿠폰 받은 등급
giveCouponBeforeMoney?: number; // 지급자의 이전금액
- giveCouponVarianceMoney?: number; // 지급자의 변동금액
+ giveCouponChangeMoney?: number; // 지급자의 변동금액
giveCouponAfterMoney?: number; // 지급자의 이후금액
takeCouponBeforeMoney?: number; // 받은자의 이전금액
- takeCouponVarianceMoney?: number; // 받은자의 변동금액
+ takeCouponChangeMoney?: number; // 받은자의 변동금액
takeCouponAfterMoney?: number; // 받은자의 이후금액
-
- useCouponBeforeMoney?: number; // 쿠폰사용자의 이전금액
- useCouponVarianceMoney?: number; // 쿠폰사용자의 변동금액
- useCouponAfterMoney?: number; // 쿠폰사용자의 이후금액
-
- retrieveCouponBeforeMoney?: number; // 쿠폰회수자의 이전금액
- retrieveCouponVarianceMoney?: number; // 쿠폰회수자의 변동금액
- retrieveCouponAfterMoney?: number; // 쿠폰회수자의 이후금액
-
couponContents?: string; // 내용
giveCouponRegistrationDate?: Date; // 지급자의 등록시간
takeCouponRegistrationDate?: Date; // 받은자의 등록시간
- useCouponRegistrationDate?: Date; // 쿠폰사용자의 등록시간
- retrieveCouponRegistrationDate?: Date; // 쿠폰회수자의 등록시간
}
-
-// issued
-// 생성, 발행
-
-// give - take
-// 쿠폰지급 - 쿠폰지급 받음
-
-// use - retrieve
-// 쿠폰사용 - 쿠폰회수
diff --git a/src/app/modules/admin/report/comp-log/components/list.component.html b/src/app/modules/admin/report/comp-log/components/list.component.html
index 28dcac1..e58806d 100644
--- a/src/app/modules/admin/report/comp-log/components/list.component.html
+++ b/src/app/modules/admin/report/comp-log/components/list.component.html
@@ -10,113 +10,50 @@
-
+
-
-
-
+
+
+ 콤프합계:7,600 콤프
+
+
+
+
+
+
+
+
+
+
-
-
- 40
- 60
- 80
- 100
-
-
-
-
- LV.1
- LV.2
- LV.3
- LV.4
-
-
-
-
- 정상
- 대기
- 탈퇴
- 휴면
- 블랙
- 정지
-
-
-
-
- 카지노제한
- 슬롯제한
-
-
-
-
- 계좌입금
-
-
-
+
+ 내용
카지노콤프
슬롯콤프
배팅콤프
첫충콤프
+ 매충콤프
-
-
- 검색하기
+
+ Search
- 엑셀저장
- 카지노머니확인
+
+
+ 관리자지급/회수
+
+
-
@@ -157,29 +97,29 @@
-
+
번호
+
+ 아이디
+
+ 닉네임
+
+
등급
요율
-
상부트리
-
관리
-
매장수
-
회원수
-
아이디
-
닉네임
-
예금주
-
연락처
-
정산
-
보유금
-
게임중머니
-
카지노->캐쉬
-
금일콤프
-
총입출
-
로그
-
상태
-
회원수
-
비고
+
배팅금액
+
+ 이전콤프
+
+ 변동콤프
+
+ 이후콤프
+
+
타입
+
내용
+
등록일시
+
메모
+
배팅ID
+
배팅번호
@@ -189,142 +129,41 @@
-
-
+
+ {{ compLog.idx }}
-
-
-
- 요율
-
-
-
-
-
-
- 보유금지급/회수
- 수수료설정
- 콤프지급/회수
- 쿠폰머니지급/회수
- 쪽지보내기
- 베팅리스트
- 강제로그아웃
-
-
-
-
-
-
-
-
- {{ compLog.branchCount }}
-
-
- {{ compLog.divisionCount }}
-
-
- {{ compLog.officeCount }}
-
-
- {{ compLog.storeCount }}
-
-
-
-
-
- {{ compLog.memberCount }}
-
-
-
-
-
-
- {{ compLog.id }}
-
-
-
-
-
+
+ {{ compLog.signinId }}
+
{{ compLog.nickname }}
-
-
- {{ compLog.accountHolder }}
+
+ {{ compLog.rank }}
-
-
- {{ compLog.phoneNumber }}
+
{{ compLog.rate }}%
+
{{ compLog.bettingMoney }}원
+
+ {{ compLog.beforeComp }}P
+
+ {{ compLog.changeComp }}P
+
+ {{ compLog.afterComp }}P
-
-
- {{ compLog.calculateType }}
+
{{ compLog.type }}
+
+ {{ compLog.compContents }}
-
-
- 캐쉬{{ compLog.ownCash }} 콤프{{ compLog.ownComp }} 쿠폰{{
- compLog.ownCoupon
- }}
+
+ {{ compLog.registrationDate }}
-
-
- {{ compLog.gameMoney }}
+
+ {{ compLog.memo }}
-
-
-
- 게임머니확인
-
-
- 게임머니회수
-
+
+ {{ compLog.bettingId }}
-
-
- {{ compLog.todayComp }}P
-
-
-
- 입금{{ compLog.totalDeposit }} 출금{{
- compLog.totalWithdraw
- }}
- 차익{{ compLog.balance }}
-
-
-
- 가입{{ compLog.registDate }} 최종{{
- compLog.finalSigninDate
- }}
- IP{{ compLog.ip }}
-
-
-
- {{ compLog.state }}
-
-
-
- {{ compLog.memberCount }}
-
-
-
-
- {{ compLog.note }}
-
+
+ {{ compLog.bettingNumber }}
@@ -347,7 +186,7 @@
- There are no compLogs!
+ There are no data!
diff --git a/src/app/modules/admin/report/comp-log/components/list.component.ts b/src/app/modules/admin/report/comp-log/components/list.component.ts
index a6c187c..972f3ac 100644
--- a/src/app/modules/admin/report/comp-log/components/list.component.ts
+++ b/src/app/modules/admin/report/comp-log/components/list.component.ts
@@ -42,18 +42,22 @@ import { Router } from '@angular/router';
/* language=SCSS */
`
.inventory-grid {
- grid-template-columns: 60px auto 40px;
+ /* 번호 아이디 등급 요율 배팅금액 콤프 */
+ grid-template-columns: 60px 60px 60px 60px 60px auto;
@screen sm {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px;
+ /* 번호 아이디 등급 요율 배팅금액 콤프 타입 내용 등록일*/
+ grid-template-columns: 60px 60px 60px 60px 60px auto 60px 60px 60px;
}
@screen md {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px 60px;
+ /* 번호 아이디 등급 요율 배팅금액 콤프 타입 내용 등록일 메모 */
+ grid-template-columns: 60px 60px 60px 60px 60px auto 60px 60px 60px 60px;
}
@screen lg {
- grid-template-columns: 60px 70px 70px 70px 70px 100px 60px 60px auto 60px 60px 60px 60px;
+ /* 번호 아이디 등급 요율 배팅금액 콤프 타입 내용 등록일 메모 배팅ID 배팅번호 */
+ grid-template-columns: 60px 60px 60px 60px 60px auto 60px 60px 60px 60px 60px 60px;
}
}
`,
@@ -69,6 +73,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
compLogs$!: Observable
;
users$!: Observable;
+ __isSearchOpened = false;
isLoading = false;
searchInputControl = new FormControl();
selectedCompLog?: CompLog;
@@ -117,7 +122,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
if (this._sort && this._paginator) {
// Set the initial sort
this._sort.sort({
- id: 'name',
+ id: 'signinId',
start: 'asc',
disableClear: true,
});
@@ -186,6 +191,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
*/
__toggleDetails(productId: string): void {}
+ /**
+ * toggle the search
+ * Used in 'bar'
+ */
+ __onClickSearch(): void {
+ this.__isSearchOpened = !this.__isSearchOpened;
+ }
+
/**
* Track by function for ngFor loops
*
diff --git a/src/app/modules/admin/report/comp-log/models/comp-log.ts b/src/app/modules/admin/report/comp-log/models/comp-log.ts
index 4e1e7c4..82b3d41 100644
--- a/src/app/modules/admin/report/comp-log/models/comp-log.ts
+++ b/src/app/modules/admin/report/comp-log/models/comp-log.ts
@@ -1,29 +1,18 @@
export interface CompLog {
- id?: string;
- totalPartnerCount?: number;
- totalHoldingMoney?: number;
- totalComp?: number;
- total?: number;
- branchCount?: number;
- divisionCount?: number;
- officeCount?: number;
- storeCount?: number;
- memberCount?: number;
+ id: string;
+ idx?: number;
+ rank?: string;
+ signinId?: string;
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;
+ rate?: number; // 요율
+ bettingMoney?: number;
+ beforeComp?: number; // 이전콤프
+ changeComp?: number; // 변동콤프
+ afterComp?: number; // 이후콤프
+ type?: string;
+ compContents?: string; // 내용
+ registrationDate?: Date; // 등록일시
+ memo?: string;
+ bettingId?: string; // 배팅ID
+ bettingNumber?: number; // 배팅번호
}
diff --git a/src/app/modules/admin/report/loosing/components/index.ts b/src/app/modules/admin/report/loosing/components/index.ts
index 04759eb..2743e40 100644
--- a/src/app/modules/admin/report/loosing/components/index.ts
+++ b/src/app/modules/admin/report/loosing/components/index.ts
@@ -1,3 +1,5 @@
import { ListComponent } from './list.component';
+import { View01Component } from './view-01.component';
+import { View02Component } from './view-02.component';
-export const COMPONENTS = [ListComponent];
+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 d570cd0..3ce66a5 100644
--- a/src/app/modules/admin/report/loosing/components/list.component.html
+++ b/src/app/modules/admin/report/loosing/components/list.component.html
@@ -1,355 +1,192 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 40
- 60
- 80
- 100
-
-
-
-
- LV.1
- LV.2
- LV.3
- LV.4
-
-
-
-
- 정상
- 대기
- 탈퇴
- 휴면
- 블랙
- 정지
-
-
-
-
- 카지노제한
- 슬롯제한
-
-
-
-
- 계좌입금
-
-
-
-
- 카지노콤프
- 슬롯콤프
- 배팅콤프
- 첫충콤프
-
-
-
-
-
-
-
-
-
-
-
- 검색하기
-
- 엑셀저장
- 카지노머니확인
-
-
-
-
-
-
-
-
- 0; else noLoosing">
-
-
-
-
-
요율
-
상부트리
-
관리
-
매장수
-
회원수
-
아이디
-
닉네임
-
예금주
-
연락처
-
정산
-
보유금
-
게임중머니
-
카지노->캐쉬
-
금일콤프
-
총입출
-
로그
-
상태
-
회원수
-
비고
-
-
-
-
-
-
-
-
-
-
-
- 요율
-
-
-
-
-
-
- 보유금지급/회수
- 수수료설정
- 콤프지급/회수
- 쿠폰머니지급/회수
- 쪽지보내기
- 베팅리스트
- 강제로그아웃
-
-
-
-
-
-
-
-
- {{ loosing.branchCount }}
-
-
- {{ loosing.divisionCount }}
-
-
- {{ loosing.officeCount }}
-
-
- {{ loosing.storeCount }}
-
-
-
-
-
- {{ loosing.memberCount }}
-
-
-
-
-
-
- {{ loosing.id }}
-
-
-
-
-
- {{ loosing.nickname }}
-
-
-
- {{ loosing.accountHolder }}
-
-
-
- {{ loosing.phoneNumber }}
-
-
-
- {{ loosing.calculateType }}
-
-
-
- 캐쉬{{ loosing.ownCash }} 콤프{{ loosing.ownComp }} 쿠폰{{
- loosing.ownCoupon
- }}
-
-
-
- {{ loosing.gameMoney }}
-
-
-
-
- 게임머니확인
-
-
- 게임머니회수
-
-
-
-
- {{ loosing.todayComp }}P
-
-
-
- 입금{{ loosing.totalDeposit }} 출금{{
- loosing.totalWithdraw
- }}
- 차익{{ loosing.balance }}
-
-
-
- 가입{{ loosing.registDate }} 최종{{
- loosing.finalSigninDate
- }}
- IP{{ loosing.ip }}
-
-
-
- {{ loosing.state }}
-
-
-
- {{ loosing.memberCount }}
-
-
-
-
- {{ loosing.note }}
-
-
-
-
-
+
+
+
+
+
+
+
+ 루징 관리
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 기본데이터생성
+
+
+
-
-
- There are no loosing datas!
+
+
+
+
+ 번호
+
+
+ {{ i + 1 }}
+
+
+
+
+
+
+ 시작일
+
+
+ {{ info.startDate }}
+
+
+
+
+
+ 종료일
+
+
+ {{ info.endDate }}
+
+
+
+
+
+
+
+ 기본데이터
+
+
+ {{
+ info.defaultCount
+ }}
+
+
+
+
+
+ 상세보기
+
+
+
+
+
+
+
+ 루징데이터
+
+
+ {{
+ info.loosingCount
+ }}
+
+
+
+
+
+ 상세보기
+
+
+
+
+
+
+ 삭제
+
+
+ 삭제
+
+
+
+
+
+
+
+
-
+
diff --git a/src/app/modules/admin/report/loosing/components/list.component.ts b/src/app/modules/admin/report/loosing/components/list.component.ts
index 1d0addc..6b885d6 100644
--- a/src/app/modules/admin/report/loosing/components/list.component.ts
+++ b/src/app/modules/admin/report/loosing/components/list.component.ts
@@ -8,32 +8,23 @@ import {
ViewChild,
ViewEncapsulation,
} from '@angular/core';
-import {
- FormBuilder,
- FormControl,
- FormGroup,
- Validators,
-} from '@angular/forms';
-import { MatCheckboxChange } from '@angular/material/checkbox';
+import { FormBuilder, FormGroup } from '@angular/forms';
+
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
-import {
- debounceTime,
- map,
- merge,
- Observable,
- Subject,
- switchMap,
- takeUntil,
-} from 'rxjs';
+import { map, merge, Observable, Subject, switchMap, takeUntil } from 'rxjs';
import { fuseAnimations } from '@fuse/animations';
import { FuseConfirmationService } from '@fuse/services/confirmation';
-import { User } from '../../../member/user/models/user';
import { Loosing } from '../models/loosing';
-import { LoosingPagination } from '../models/loosing-pagination';
+
import { LoosingService } from '../services/loosing.service';
-import { Router } from '@angular/router';
+import {
+ NavigationBehaviorOptions,
+ NavigationExtras,
+ Router,
+} from '@angular/router';
+import { MatTableDataSource } from '@angular/material/table';
@Component({
selector: 'loosing-list',
@@ -45,15 +36,15 @@ import { Router } from '@angular/router';
grid-template-columns: 60px auto 40px;
@screen sm {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px;
+ grid-template-columns: 40px 70px 70px 70px 70px 100px;
}
@screen md {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px 60px;
+ grid-template-columns: 40px 70px 70px 70px 70px 100px;
}
@screen lg {
- grid-template-columns: 60px 70px 70px 70px 70px 100px 60px 60px auto 60px 60px 60px 60px;
+ grid-template-columns: 40px 70px 70px 70px 70px 100px;
}
}
`,
@@ -67,15 +58,35 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild(MatSort) private _sort!: MatSort;
loosings$!: Observable
;
- users$!: Observable;
isLoading = false;
- searchInputControl = new FormControl();
- selectedLoosing?: Loosing;
- pagination?: LoosingPagination;
+
+ loosingDataSource: MatTableDataSource = new MatTableDataSource();
private _unsubscribeAll: Subject = new Subject();
+ headerTableColumns: string[] = [
+ 'index',
+ 'startDate',
+ 'endDate',
+ 'defaultDataTotalCount',
+ 'loosingDataTotalCount',
+ 'removeBtn',
+ ];
+
+ displayedTableColumns: string[] = [
+ 'index',
+ 'startDate',
+ 'endDate',
+ 'defaultDataTotalCount',
+ 'defaultDataViewBtn',
+ 'loosingDataTotalCount',
+ 'loosingDataViewBtn',
+ 'removeBtn',
+ ];
+
+ configForm!: FormGroup;
+
/**
* Constructor
*/
@@ -95,63 +106,46 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
* On init
*/
ngOnInit(): void {
- // Get the pagination
- this._loosingService.pagination$
+ this.configForm = this._formBuilder.group({
+ title: '알림',
+ message:
+ '정말로 삭제하시겠습니까? 삭제! ',
+ icon: this._formBuilder.group({
+ show: true,
+ name: 'heroicons_outline:exclamation',
+ color: 'warn',
+ }),
+ actions: this._formBuilder.group({
+ confirm: this._formBuilder.group({
+ show: true,
+ label: '삭제',
+ color: 'warn',
+ }),
+ cancel: this._formBuilder.group({
+ show: true,
+ label: '취소',
+ }),
+ }),
+ dismissible: true,
+ });
+ // Get the products
+ this._loosingService.loosings$
.pipe(takeUntil(this._unsubscribeAll))
- .subscribe((pagination: LoosingPagination | undefined) => {
- // Update the pagination
- this.pagination = pagination;
+ .subscribe((loosings: Loosing[] | undefined) => {
+ if (!loosings) {
+ return;
+ }
+ this.loosingDataSource.data = loosings;
// Mark for check
this._changeDetectorRef.markForCheck();
});
-
- // Get the products
- this.loosings$ = this._loosingService.loosings$;
}
/**
* After view init
*/
- ngAfterViewInit(): void {
- if (this._sort && this._paginator) {
- // Set the initial sort
- this._sort.sort({
- id: 'name',
- start: 'asc',
- disableClear: true,
- });
-
- // Mark for check
- this._changeDetectorRef.markForCheck();
-
- // If the loosing changes the sort order...
- this._sort.sortChange
- .pipe(takeUntil(this._unsubscribeAll))
- .subscribe(() => {
- // Reset back to the first page
- this._paginator.pageIndex = 0;
- });
-
- // Get products if sort or page changes
- merge(this._sort.sortChange, this._paginator.page)
- .pipe(
- switchMap(() => {
- this.isLoading = true;
- return this._loosingService.getLoosings(
- this._paginator.pageIndex,
- this._paginator.pageSize,
- this._sort.active,
- this._sort.direction
- );
- }),
- map(() => {
- this.isLoading = false;
- })
- )
- .subscribe();
- }
- }
+ ngAfterViewInit(): void {}
/**
* On destroy
@@ -166,14 +160,42 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
// @ Public methods
// -----------------------------------------------------------------------------------------------------
- viewUserDetail(id: string): void {
+ /* viewUserDetail(id: string): void {
let url: string = 'member/user/' + id;
this.router.navigateByUrl(url);
- }
+ } */
// -----------------------------------------------------------------------------------------------------
// @ Private methods
// -----------------------------------------------------------------------------------------------------
+ __viewLoosingDetail(loosing: Loosing, type: string): void {
+ let url: string = '';
+
+ if (type === '1') {
+ url = 'report/loosing/01/' + loosing.id + `?type=${type}`;
+ } else {
+ url = 'report/loosing/02/' + loosing.id + `?type=${type}`;
+ }
+
+ let extras: NavigationBehaviorOptions = {
+ state: {
+ viewType: type,
+ startDate: loosing.startDate,
+ endDate: loosing.endDate,
+ },
+ };
+ this.router.navigateByUrl(url, extras);
+ }
+
+ __onClickRemoveBtn(event: MouseEvent, id: string): void {
+ // Open the dialog and save the reference of it
+ const dialogRef = this._fuseConfirmationService.open(this.configForm.value);
+
+ // Subscribe to afterClosed from the dialog reference
+ dialogRef.afterClosed().subscribe((result) => {
+ console.log(result);
+ });
+ }
/**
* Create product
*/
diff --git a/src/app/modules/admin/report/loosing/components/view-01.component.html b/src/app/modules/admin/report/loosing/components/view-01.component.html
new file mode 100644
index 0000000..d92352f
--- /dev/null
+++ b/src/app/modules/admin/report/loosing/components/view-01.component.html
@@ -0,0 +1,291 @@
+
+
+
+
+
+
+
+ 루징 관리
+
+
+
+
+
+
+
+
+
+
+ 목록으로
+
+
+
+ 루징데이터보기
+
+
+
+
+
+
+
+
+
+
+
+ {{ info.signinId }}
+
+
+
+
+
+ 아이디
+
+
+
+
+
+
+
+
+ {{ info.code }}
+
+
+
+
+
+ 코드
+
+
+
+
+
+
+ 베팅
+
+
+ {{ info.casinoReport.betMoneny }}
+
+ {{ info.casinoReport.betTieMoneny }}
+
+ {{ info.casinoReport.betCancelMoneny }}
+
+ {{ info.casinoReport.validMoneny }}
+
+
+
+
+
+
+ 당첨
+
+ {{
+ info.casinoReport.betWinMoneny
+ }}
+
+
+
+
+
+ 윈로스
+
+ {{
+ info.casinoReport.betWinLossMoneny
+ }}
+
+
+
+
+
+ 롤링
+
+
+ {{ info.casinoReport.rollingMoney }}
+
+ {{ info.casinoReport.rollingBottomMoney }}
+
+ {{ info.casinoReport.rollingMeMoney }}
+
+
+
+
+
+
+ 루징요율
+
+ {{
+ info.casinoReport.loosingRate
+ }}
+
+
+
+
+ 본인
+
+ {{
+ info.casinoReport.meMoney
+ }}
+
+
+
+
+
+
+
+
+ 베팅
+
+
+
+ {{ info.slotReport.betMoneny }}
+
+
+
+
+
+
+ 당첨
+
+ {{
+ info.slotReport.betWinMoneny
+ }}
+
+
+
+
+
+ 윈로스
+
+ {{
+ info.slotReport.betWinLossMoneny
+ }}
+
+
+
+
+
+ 롤링
+
+
+ {{ info.slotReport.rollingMoney }}
+
+ {{ info.slotReport.rollingBottomMoney }}
+
+ {{ info.slotReport.rollingMeMoney }}
+
+
+
+
+
+
+ 루징요율
+
+ {{
+ info.slotReport.loosingRate
+ }}
+
+
+
+
+ 본인
+
+ {{
+ info.slotReport.meMoney
+ }}
+
+
+
+
+
+
+
+
+
+ 카지노루징
+
+
+
+
+
+
+ 슬롯루징
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/modules/admin/board/notice-oneline/components/view.component.ts b/src/app/modules/admin/report/loosing/components/view-01.component.ts
similarity index 55%
rename from src/app/modules/admin/board/notice-oneline/components/view.component.ts
rename to src/app/modules/admin/report/loosing/components/view-01.component.ts
index d7f1a89..16fd99a 100644
--- a/src/app/modules/admin/board/notice-oneline/components/view.component.ts
+++ b/src/app/modules/admin/report/loosing/components/view-01.component.ts
@@ -8,49 +8,39 @@ import {
ViewChild,
ViewEncapsulation,
} from '@angular/core';
-import {
- FormBuilder,
- FormControl,
- FormGroup,
- Validators,
-} from '@angular/forms';
-import { MatCheckboxChange } from '@angular/material/checkbox';
+
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
-import {
- debounceTime,
- map,
- merge,
- Observable,
- Subject,
- switchMap,
- takeUntil,
-} from 'rxjs';
+import { map, merge, Observable, Subject, switchMap, takeUntil } from 'rxjs';
import { fuseAnimations } from '@fuse/animations';
import { FuseConfirmationService } from '@fuse/services/confirmation';
-import { User } from 'app/modules/admin/member/user/models/user';
-import { UserService } from 'app/modules/admin/member/user/services/user.service';
+import { Loosing } from '../models/loosing';
+
+import { LoosingService } from '../services/loosing.service';
+import { Router } from '@angular/router';
+import { MatTableDataSource } from '@angular/material/table';
+import { LoosingReport } from '../models/loosing-report';
@Component({
- selector: 'notice-oneline-view',
- templateUrl: './view.component.html',
+ selector: 'loosing-view-01',
+ templateUrl: './view-01.component.html',
styles: [
/* language=SCSS */
`
.inventory-grid {
- grid-template-columns: 48px auto 40px;
+ grid-template-columns: 60px auto 40px;
@screen sm {
- grid-template-columns: 48px auto 112px 72px;
+ grid-template-columns: 40px 70px 70px 70px 70px 100px;
}
@screen md {
- grid-template-columns: 48px 112px auto 112px 72px;
+ grid-template-columns: 40px 70px 70px 70px 70px 100px;
}
@screen lg {
- grid-template-columns: 48px 112px auto 112px 96px 96px 72px;
+ grid-template-columns: 40px 70px 70px 70px 70px 100px;
}
}
`,
@@ -59,25 +49,41 @@ import { UserService } from 'app/modules/admin/member/user/services/user.service
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;
isLoading = false;
- searchInputControl = new FormControl();
- selectedProductForm!: FormGroup;
- selectedUser?: User;
+
+ loosingDataSource: MatTableDataSource = new MatTableDataSource();
private _unsubscribeAll: Subject = new Subject();
+ displayedTableColumns: string[] = [
+ 'userId',
+ 'userCode',
+ 'casinoBet',
+ 'casinoWin',
+ 'casinoWinLoss',
+ 'casinoRolling',
+ 'casinoLoosing',
+ 'casinoSelf',
+ 'slotBet',
+ 'slotWin',
+ 'slotWinLoss',
+ 'slotRolling',
+ 'slotLoosing',
+ 'slotSelf',
+ ];
+
/**
* Constructor
*/
constructor(
private _changeDetectorRef: ChangeDetectorRef,
private _fuseConfirmationService: FuseConfirmationService,
- private _formBuilder: FormBuilder,
- private _userService: UserService
+ private _loosingService: LoosingService,
+ private _router: Router
) {}
// -----------------------------------------------------------------------------------------------------
@@ -88,53 +94,18 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
* On init
*/
ngOnInit(): void {
- this.selectedProductForm = this._formBuilder.group({
- id: [''],
- signinId: [{ value: '', disabled: true }],
- signinPw: [{ value: '' }],
- exchangePw: [''],
- description: [''],
- tags: [[]],
- nickname: [{ value: '', disabled: true }],
- ownCash: [''],
- phoneNumber: [''],
- level: [''],
- status: [''],
- isExcahngeMoney: [''],
- bankname: [''],
- accountNumber: [''],
- accountHolder: [''],
- comp: [''],
- coupon: [''],
- recommender: [{ value: '', disabled: true }],
- changeSite: [''],
- recommendCount: [''],
- hodingGameMoney: [{ value: '0', disabled: true }],
- memo: [''],
- bacaraRate: [],
- rulletRate: [],
- dragonRate: [],
- etcRate: [],
- slotRate: [],
- casinoRusingRate: [],
- slotRusingRate: [],
- });
-
- // Get the User
- this._userService.user$
+ // Get the products
+ this._loosingService.loosing$
.pipe(takeUntil(this._unsubscribeAll))
- .subscribe((user: User | undefined) => {
- if (!user) {
+ .subscribe((loosingReport: LoosingReport[] | undefined) => {
+ if (!loosingReport) {
return;
}
- this.selectedUser = user;
- this.selectedProductForm.patchValue(user);
+ this.loosingDataSource.data = loosingReport;
// Mark for check
this._changeDetectorRef.markForCheck();
});
-
- /* this.user$ = this._userService.user$; */
}
/**
@@ -155,6 +126,10 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
// @ Public methods
// -----------------------------------------------------------------------------------------------------
+ /* viewUserDetail(id: string): void {
+ let url: string = 'member/user/' + id;
+ this.router.navigateByUrl(url);
+ } */
// -----------------------------------------------------------------------------------------------------
// @ Private methods
// -----------------------------------------------------------------------------------------------------
@@ -164,6 +139,14 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
*/
__createProduct(): void {}
+ __onClickPrev(event: MouseEvent): void {
+ this._router.navigateByUrl('/report/loosing');
+ }
+
+ __onClickNext(event: MouseEvent): void {
+ this._router.navigateByUrl('/report/loosing/02/loosing_1?type=2');
+ }
+
/**
* Toggle product details
*
diff --git a/src/app/modules/admin/report/loosing/components/view-02.component.html b/src/app/modules/admin/report/loosing/components/view-02.component.html
new file mode 100644
index 0000000..175d12f
--- /dev/null
+++ b/src/app/modules/admin/report/loosing/components/view-02.component.html
@@ -0,0 +1,314 @@
+
+
+
+
+
+
+
+ 루징데이터
+
+
+
+
+
+
+
+
+
+
+ 목록으로
+
+
+
+ 이전페이지
+
+
+
+ 엑셀저장
+
+
+
+
+
+
+
+
+
+
+
+ {{ 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
+ }}
+
+
+
+
+ 총실정산금
+
+
+
+
+
+
+ 카지노루징
+
+
+
+
+
+
+ 슬롯루징
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/modules/admin/report/loosing/components/view-02.component.ts b/src/app/modules/admin/report/loosing/components/view-02.component.ts
new file mode 100644
index 0000000..98e8234
--- /dev/null
+++ b/src/app/modules/admin/report/loosing/components/view-02.component.ts
@@ -0,0 +1,167 @@
+import {
+ AfterViewInit,
+ ChangeDetectionStrategy,
+ ChangeDetectorRef,
+ Component,
+ OnDestroy,
+ OnInit,
+ ViewChild,
+ ViewEncapsulation,
+} from '@angular/core';
+
+import { MatPaginator } from '@angular/material/paginator';
+import { MatSort } from '@angular/material/sort';
+import { map, merge, Observable, Subject, switchMap, takeUntil } from 'rxjs';
+import { fuseAnimations } from '@fuse/animations';
+import { FuseConfirmationService } from '@fuse/services/confirmation';
+
+import { Loosing } from '../models/loosing';
+
+import { LoosingService } from '../services/loosing.service';
+import { Router } from '@angular/router';
+import { MatTableDataSource } from '@angular/material/table';
+import { LoosingReport } from '../models/loosing-report';
+
+@Component({
+ selector: 'loosing-view-02',
+ templateUrl: './view-02.component.html',
+ styles: [
+ /* language=SCSS */
+ `
+ .inventory-grid {
+ grid-template-columns: 60px auto 40px;
+
+ @screen sm {
+ grid-template-columns: 40px 70px 70px 70px 70px 100px;
+ }
+
+ @screen md {
+ grid-template-columns: 40px 70px 70px 70px 70px 100px;
+ }
+
+ @screen lg {
+ grid-template-columns: 40px 70px 70px 70px 70px 100px;
+ }
+ }
+ `,
+ ],
+ encapsulation: ViewEncapsulation.None,
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ animations: fuseAnimations,
+})
+export class View02Component implements OnInit, AfterViewInit, OnDestroy {
+ @ViewChild(MatPaginator) private _paginator!: MatPaginator;
+ @ViewChild(MatSort) private _sort!: MatSort;
+
+ loosings$!: Observable;
+
+ isLoading = false;
+
+ loosingDataSource: MatTableDataSource = new MatTableDataSource();
+
+ private _unsubscribeAll: Subject = new Subject();
+
+ displayedTableColumns: string[] = [
+ 'userId',
+ 'userCode',
+ 'casinoWinLoss',
+ 'casinoRolling',
+ 'casinoProfitLoss',
+ 'casinoLoosing',
+ 'casinoSelf',
+ 'casinoBottom',
+ 'casinoCalculate',
+ 'slotWinLoss',
+ 'slotRolling',
+ 'slotSelf',
+ 'slotProfitLoss',
+ 'slotLoosing',
+ 'slotBottom',
+ 'slotCalculate',
+ 'totalCalculate',
+ ];
+
+ /**
+ * Constructor
+ */
+ constructor(
+ private _changeDetectorRef: ChangeDetectorRef,
+ private _fuseConfirmationService: FuseConfirmationService,
+ private _loosingService: LoosingService,
+ private _router: Router
+ ) {}
+
+ // -----------------------------------------------------------------------------------------------------
+ // @ Lifecycle hooks
+ // -----------------------------------------------------------------------------------------------------
+
+ /**
+ * On init
+ */
+ ngOnInit(): void {
+ // Get the products
+ this._loosingService.loosing$
+ .pipe(takeUntil(this._unsubscribeAll))
+ .subscribe((loosingReport: LoosingReport[] | undefined) => {
+ if (!loosingReport) {
+ return;
+ }
+
+ this.loosingDataSource.data = loosingReport;
+ // Mark for check
+ this._changeDetectorRef.markForCheck();
+ });
+ }
+
+ /**
+ * After view init
+ */
+ ngAfterViewInit(): void {}
+
+ /**
+ * On destroy
+ */
+ ngOnDestroy(): void {
+ // Unsubscribe from all subscriptions
+ this._unsubscribeAll.next(null);
+ this._unsubscribeAll.complete();
+ }
+
+ // -----------------------------------------------------------------------------------------------------
+ // @ Public methods
+ // -----------------------------------------------------------------------------------------------------
+
+ /* viewUserDetail(id: string): void {
+ let url: string = 'member/user/' + id;
+ this.router.navigateByUrl(url);
+ } */
+ // -----------------------------------------------------------------------------------------------------
+ // @ Private methods
+ // -----------------------------------------------------------------------------------------------------
+
+ /**
+ * Create product
+ */
+ __createProduct(): void {}
+
+ __onClickPrev(event: MouseEvent): void {
+ this._router.navigateByUrl('/report/loosing');
+ }
+
+ /**
+ * Toggle product details
+ *
+ * @param productId
+ */
+ __toggleDetails(productId: string): void {}
+
+ /**
+ * Track by function for ngFor loops
+ *
+ * @param index
+ * @param item
+ */
+ __trackByFn(index: number, item: any): any {
+ return item.id || index;
+ }
+}
diff --git a/src/app/modules/admin/report/loosing/loosing.module.ts b/src/app/modules/admin/report/loosing/loosing.module.ts
index c4c6d07..09fe6c9 100644
--- a/src/app/modules/admin/report/loosing/loosing.module.ts
+++ b/src/app/modules/admin/report/loosing/loosing.module.ts
@@ -15,6 +15,9 @@ import { MatGridListModule } from '@angular/material/grid-list';
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { MatRadioModule } from '@angular/material/radio';
import { MatCheckboxModule } from '@angular/material/checkbox';
+import { MatDatepickerModule } from '@angular/material/datepicker';
+import { MatMomentDateModule } from '@angular/material-moment-adapter';
+import { MatTableModule } from '@angular/material/table';
import { TranslocoModule } from '@ngneat/transloco';
@@ -45,6 +48,9 @@ import { loosingRoutes } from './loosing.routing';
MatSlideToggleModule,
MatRadioModule,
MatCheckboxModule,
+ MatDatepickerModule,
+ MatMomentDateModule,
+ MatTableModule,
],
})
export class LoosingModule {}
diff --git a/src/app/modules/admin/report/loosing/loosing.routing.ts b/src/app/modules/admin/report/loosing/loosing.routing.ts
index c20ec61..15b6c78 100644
--- a/src/app/modules/admin/report/loosing/loosing.routing.ts
+++ b/src/app/modules/admin/report/loosing/loosing.routing.ts
@@ -1,10 +1,13 @@
import { Route } from '@angular/router';
import { ListComponent } from './components/list.component';
-import { ViewComponent } from '../../member/user/components/view.component';
+import { View01Component } from './components/view-01.component';
+import { View02Component } from './components/view-02.component';
-import { LoosingsResolver } from './resolvers/loosing.resolver';
-import { UserResolver } from '../../member/user/resolvers/user.resolver';
+import {
+ LoosingsResolver,
+ LoosingResolver,
+} from './resolvers/loosing.resolver';
export const loosingRoutes: Route[] = [
{
@@ -15,10 +18,17 @@ export const loosingRoutes: Route[] = [
},
},
{
- path: ':id',
- component: ViewComponent,
+ path: '01/:id',
+ component: View01Component,
resolve: {
- users: UserResolver,
+ loosing: LoosingResolver,
+ },
+ },
+ {
+ path: '02/:id',
+ component: View02Component,
+ resolve: {
+ loosing: LoosingResolver,
},
},
];
diff --git a/src/app/modules/admin/report/loosing/models/bet-calculate.ts b/src/app/modules/admin/report/loosing/models/bet-calculate.ts
new file mode 100644
index 0000000..6d472ce
--- /dev/null
+++ b/src/app/modules/admin/report/loosing/models/bet-calculate.ts
@@ -0,0 +1,17 @@
+export interface BetCalculate {
+ id: string;
+ betMoneny?: string;
+ betTieMoneny?: string;
+ betCancelMoneny?: string;
+ validMoneny?: string;
+ betWinMoneny?: string;
+ betWinLossMoneny?: string;
+ rollingMoney?: string;
+ rollingBottomMoney?: string;
+ rollingMeMoney?: string;
+ loosingRate?: string;
+ meMoney?: string;
+ profitLossMoney?: string;
+ bottomMoney?: string;
+ calculateMoney?: string;
+}
diff --git a/src/app/modules/admin/report/loosing/models/loosing-report.ts b/src/app/modules/admin/report/loosing/models/loosing-report.ts
new file mode 100644
index 0000000..9175136
--- /dev/null
+++ b/src/app/modules/admin/report/loosing/models/loosing-report.ts
@@ -0,0 +1,13 @@
+import { BetCalculate } from './bet-calculate';
+
+export interface LoosingReport {
+ id: string;
+ parentId: string;
+ signinId?: string;
+ code?: string;
+ depth?: number;
+ rank?: string;
+ totalCalculate?: string;
+ casinoCalculate?: BetCalculate;
+ slotCalculate?: BetCalculate;
+}
diff --git a/src/app/modules/admin/report/loosing/models/loosing.ts b/src/app/modules/admin/report/loosing/models/loosing.ts
index 6432397..09a6724 100644
--- a/src/app/modules/admin/report/loosing/models/loosing.ts
+++ b/src/app/modules/admin/report/loosing/models/loosing.ts
@@ -1,29 +1,7 @@
export interface Loosing {
id?: string;
- totalPartnerCount?: number;
- totalHoldingMoney?: number;
- totalComp?: number;
- total?: number;
- branchCount?: number;
- divisionCount?: number;
- 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;
+ signinId?: string;
+ startDate?: string;
+ endDate?: string;
registDate?: string;
- finalSigninDate?: string;
- ip?: string;
- state?: string;
- note?: string;
}
diff --git a/src/app/modules/admin/report/loosing/resolvers/loosing.resolver.ts b/src/app/modules/admin/report/loosing/resolvers/loosing.resolver.ts
index c1a0d3d..e702848 100644
--- a/src/app/modules/admin/report/loosing/resolvers/loosing.resolver.ts
+++ b/src/app/modules/admin/report/loosing/resolvers/loosing.resolver.ts
@@ -9,6 +9,7 @@ import { catchError, Observable, throwError } from 'rxjs';
import { Loosing } from '../models/loosing';
import { LoosingPagination } from '../models/loosing-pagination';
+import { LoosingReport } from '../models/loosing-report';
import { LoosingService } from '../services/loosing.service';
@Injectable({
@@ -36,23 +37,28 @@ export class LoosingResolver implements Resolve {
resolve(
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot
- ): Observable {
- return this._loosingService.getLoosingById(route.paramMap.get('id')).pipe(
- // Error here means the requested product is not available
- catchError((error) => {
- // Log the error
- console.error(error);
+ ): Observable {
+ return this._loosingService
+ .getLoosingById(
+ route.paramMap.get('id') as string,
+ state.root.queryParamMap.get('type') as string
+ )
+ .pipe(
+ // Error here means the requested product is not available
+ catchError((error) => {
+ // Log the error
+ console.error(error);
- // Get the parent url
- const parentUrl = state.url.split('/').slice(0, -1).join('/');
+ // Get the parent url
+ const parentUrl = state.url.split('/').slice(0, -1).join('/');
- // Navigate to there
- this._router.navigateByUrl(parentUrl);
+ // Navigate to there
+ this._router.navigateByUrl(parentUrl);
- // Throw an error
- return throwError(error);
- })
- );
+ // Throw an error
+ return throwError(error);
+ })
+ );
}
}
diff --git a/src/app/modules/admin/report/loosing/services/loosing.service.ts b/src/app/modules/admin/report/loosing/services/loosing.service.ts
index 8bd9d1e..5781088 100644
--- a/src/app/modules/admin/report/loosing/services/loosing.service.ts
+++ b/src/app/modules/admin/report/loosing/services/loosing.service.ts
@@ -14,6 +14,7 @@ import {
import { Loosing } from '../models/loosing';
import { LoosingPagination } from '../models/loosing-pagination';
+import { LoosingReport } from '../models/loosing-report';
@Injectable({
providedIn: 'root',
@@ -23,7 +24,9 @@ export class LoosingService {
private __pagination = new BehaviorSubject(
undefined
);
- private __loosing = new BehaviorSubject(undefined);
+ private __loosing = new BehaviorSubject(
+ undefined
+ );
private __loosings = new BehaviorSubject(undefined);
/**
@@ -45,7 +48,7 @@ export class LoosingService {
/**
* Getter for loosing
*/
- get loosing$(): Observable {
+ get loosing$(): Observable {
return this.__loosing.asObservable();
}
@@ -104,27 +107,19 @@ export class LoosingService {
/**
* Get product by id
*/
- getLoosingById(id: string | null): Observable {
- return this.__loosings.pipe(
- take(1),
- map((loosings) => {
- // Find the product
- const loosing = loosings?.find((item) => item.id === id) || undefined;
-
- // Update the product
- this.__loosing.next(loosing);
-
- // Return the product
- return loosing;
- }),
- switchMap((product) => {
- if (!product) {
- return throwError('Could not found product with id of ' + id + '!');
- }
-
- return of(product);
+ getLoosingById(
+ id: string = '1',
+ type: string = '1'
+ ): Observable {
+ return this._httpClient
+ .get('api/apps/report/loosing/loosing', {
+ params: { id, type },
})
- );
+ .pipe(
+ tap((response: LoosingReport[]) => {
+ this.__loosing.next(response);
+ })
+ );
}
/**
diff --git a/src/app/modules/admin/report/modification-log/components/list.component.html b/src/app/modules/admin/report/modification-log/components/list.component.html
index 10d018c..51522fc 100644
--- a/src/app/modules/admin/report/modification-log/components/list.component.html
+++ b/src/app/modules/admin/report/modification-log/components/list.component.html
@@ -13,110 +13,31 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
- 40
- 60
- 80
- 100
-
-
-
-
- LV.1
- LV.2
- LV.3
- LV.4
-
-
-
-
- 정상
- 대기
- 탈퇴
- 휴면
- 블랙
- 정지
-
-
-
-
- 카지노제한
- 슬롯제한
-
-
-
-
- 계좌입금
-
-
-
-
- 카지노콤프
- 슬롯콤프
- 배팅콤프
- 첫충콤프
-
-
-
-
- 검색하기
+
+ Search
- 엑셀저장
- 카지노머니확인
-
@@ -159,29 +78,16 @@
-
-
요율
-
상부트리
-
관리
-
매장수
-
회원수
-
아이디
-
닉네임
-
예금주
-
연락처
-
정산
-
보유금
-
게임중머니
-
카지노->캐쉬
-
금일콤프
-
총입출
-
로그
-
상태
-
회원수
-
비고
+
일련번호
+
아이디
+
등급
+
변경내역
+
관리자등급
+
관리자아이디
+
아이피
+
위치
+
수정시간
@@ -194,143 +100,28 @@
-
-
+
+ {{ modificationLog.idx }}
-
-
-
- 요율
-
-
-
-
-
-
- 보유금지급/회수
- 수수료설정
- 콤프지급/회수
- 쿠폰머니지급/회수
- 쪽지보내기
- 베팅리스트
- 강제로그아웃
-
-
-
-
+
+ {{ modificationLog.signinId }}
-
-
-
- {{ modificationLog.branchCount }}
-
-
- {{ modificationLog.divisionCount }}
-
-
- {{ modificationLog.officeCount }}
-
-
- {{ modificationLog.storeCount }}
-
+
+ {{ modificationLog.rank }}
-
-
-
- {{ modificationLog.memberCount }}
-
+
+ {{ modificationLog.history }}
-
-
-
-
- {{ modificationLog.id }}
-
-
-
-
-
- {{ modificationLog.nickname }}
+
{{ modificationLog.managementRank }}
+
+ {{ modificationLog.managementId }}
-
-
- {{ modificationLog.accountHolder }}
+
{{ modificationLog.ip }}
+
+ {{ modificationLog.location }}
-
-
- {{ modificationLog.phoneNumber }}
-
-
-
- {{ modificationLog.calculateType }}
-
-
-
- 캐쉬{{ modificationLog.ownCash }} 콤프{{
- modificationLog.ownComp
- }}
- 쿠폰{{ modificationLog.ownCoupon }}
-
-
-
- {{ modificationLog.gameMoney }}
-
-
-
-
- 게임머니확인
-
-
- 게임머니회수
-
-
-
-
- {{ modificationLog.todayComp }}P
-
-
-
- 입금{{ modificationLog.totalDeposit }} 출금{{
- modificationLog.totalWithdraw
- }}
- 차익{{ modificationLog.balance }}
-
-
-
- 가입{{ modificationLog.registDate }} 최종{{
- modificationLog.finalSigninDate
- }}
- IP{{ modificationLog.ip }}
-
-
-
- {{ modificationLog.state }}
-
-
-
- {{ modificationLog.memberCount }}
-
-
-
-
- {{ modificationLog.note }}
-
+
+ {{ modificationLog.modificationDate }}
@@ -353,7 +144,7 @@
- There are no modificationLogs!
+ There are no data!
diff --git a/src/app/modules/admin/report/modification-log/components/list.component.ts b/src/app/modules/admin/report/modification-log/components/list.component.ts
index e8ed02b..ecfa97f 100644
--- a/src/app/modules/admin/report/modification-log/components/list.component.ts
+++ b/src/app/modules/admin/report/modification-log/components/list.component.ts
@@ -42,18 +42,22 @@ import { Router } from '@angular/router';
/* language=SCSS */
`
.inventory-grid {
- grid-template-columns: 60px auto 40px;
+ /* 번호 아이디 등급 변경 관리자등급 관리자아이디 */
+ grid-template-columns: 60px 60px 60px auto 60px 60px;
@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 {
- 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 {
- 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
;
users$!: Observable;
+ __isSearchOpened = false;
isLoading = false;
searchInputControl = new FormControl();
selectedModificationLog?: ModificationLog;
@@ -186,6 +191,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
*/
__toggleDetails(productId: string): void {}
+ /**
+ * toggle the search
+ * Used in 'bar'
+ */
+ __onClickSearch(): void {
+ this.__isSearchOpened = !this.__isSearchOpened;
+ }
+
/**
* Track by function for ngFor loops
*
diff --git a/src/app/modules/admin/report/modification-log/models/modification-log.ts b/src/app/modules/admin/report/modification-log/models/modification-log.ts
index 5882a13..388ac5f 100644
--- a/src/app/modules/admin/report/modification-log/models/modification-log.ts
+++ b/src/app/modules/admin/report/modification-log/models/modification-log.ts
@@ -1,29 +1,12 @@
export interface ModificationLog {
- id?: string;
- totalPartnerCount?: number;
- totalHoldingMoney?: number;
- totalComp?: number;
- total?: number;
- branchCount?: number;
- divisionCount?: number;
- 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;
+ id: string;
+ idx?: number; // 일련번호
+ rank?: string;
+ signinId?: string;
+ history?: string;
+ managementRank?: string; // 관리등급
+ managementId?: string; // 관리아이디
ip?: string;
- state?: string;
- note?: string;
+ location?: string; // 위치
+ modificationDate?: Date; // 수정시간
}
diff --git a/src/app/modules/admin/report/money-log/components/list.component.html b/src/app/modules/admin/report/money-log/components/list.component.html
index 7b52769..56ed437 100644
--- a/src/app/modules/admin/report/money-log/components/list.component.html
+++ b/src/app/modules/admin/report/money-log/components/list.component.html
@@ -10,113 +10,37 @@
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
- 40
- 60
- 80
- 100
-
-
-
-
- LV.1
- LV.2
- LV.3
- LV.4
-
-
-
-
- 정상
- 대기
- 탈퇴
- 휴면
- 블랙
- 정지
-
-
-
-
- 카지노제한
- 슬롯제한
-
-
-
-
- 계좌입금
-
-
-
-
- 카지노콤프
- 슬롯콤프
- 배팅콤프
- 첫충콤프
-
-
-
-
- 검색하기
+
+ Search
+
+
+
+
+
+ 관리자지급/회수
+
+
+
+
+ 파트너지급/회수
- 엑셀저장
- 카지노머니확인
@@ -157,29 +91,23 @@
-
-
요율
-
상부트리
-
관리
-
매장수
-
회원수
-
아이디
-
닉네임
-
예금주
-
연락처
-
정산
-
보유금
-
게임중머니
-
카지노->캐쉬
-
금일콤프
-
총입출
-
로그
-
상태
-
회원수
-
비고
+
날짜
+
+ 대상아이디
+
+ 대상닉네임
+
+
내역
+
+ 이전금액
+
+ 변동금액
+
+ 이후금액
+
+
메모
+
배팅번호
@@ -189,142 +117,27 @@
-
-
-
-
-
-
- 요율
-
-
-
-
-
-
- 보유금지급/회수
- 수수료설정
- 콤프지급/회수
- 쿠폰머니지급/회수
- 쪽지보내기
- 베팅리스트
- 강제로그아웃
-
-
-
-
-
-
-
-
- {{ moneyLog.branchCount }}
-
-
- {{ moneyLog.divisionCount }}
-
-
- {{ moneyLog.officeCount }}
-
-
- {{ moneyLog.storeCount }}
-
-
-
-
-
- {{ moneyLog.memberCount }}
-
-
-
-
-
-
- {{ moneyLog.id }}
-
-
-
-
-
+
{{ moneyLog.finalSigninDate }}
+
+ {{ moneyLog.signinId }}
+
{{ moneyLog.nickname }}
-
-
- {{ moneyLog.accountHolder }}
+
+ {{ moneyLog.history }}
-
-
- {{ moneyLog.phoneNumber }}
+
+ {{ moneyLog.beforeMoney }}원
+
+ {{ moneyLog.changeMoney }}원
+
+ {{ moneyLog.afterMoney }}원
-
-
- {{ moneyLog.calculateType }}
+
+ {{ moneyLog.memo }}
-
-
- 캐쉬{{ moneyLog.ownCash }} 콤프{{ moneyLog.ownComp }} 쿠폰{{
- moneyLog.ownCoupon
- }}
-
-
-
- {{ moneyLog.gameMoney }}
-
-
-
-
- 게임머니확인
-
-
- 게임머니회수
-
-
-
-
- {{ moneyLog.todayComp }}P
-
-
-
- 입금{{ moneyLog.totalDeposit }} 출금{{
- moneyLog.totalWithdraw
- }}
- 차익{{ moneyLog.balance }}
-
-
-
- 가입{{ moneyLog.registDate }} 최종{{
- moneyLog.finalSigninDate
- }}
- IP{{ moneyLog.ip }}
-
-
-
- {{ moneyLog.state }}
-
-
-
- {{ moneyLog.memberCount }}
-
-
-
-
- {{ moneyLog.note }}
-
+
+ {{ moneyLog.bettingNumber }}
@@ -347,7 +160,7 @@
- There are no moneyLogs!
+ There are no data!
diff --git a/src/app/modules/admin/report/money-log/components/list.component.ts b/src/app/modules/admin/report/money-log/components/list.component.ts
index ec75941..abf011b 100644
--- a/src/app/modules/admin/report/money-log/components/list.component.ts
+++ b/src/app/modules/admin/report/money-log/components/list.component.ts
@@ -42,18 +42,22 @@ import { Router } from '@angular/router';
/* language=SCSS */
`
.inventory-grid {
- grid-template-columns: 60px auto 40px;
+ /* 날짜 아이디 내역 금액 메모 배팅번호 */
+ grid-template-columns: 100px 100px auto 100px 100px 100px;
@screen sm {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px;
+ /* 날짜 아이디 내역 금액 메모 배팅번호 */
+ grid-template-columns: 100px 100px auto 100px 100px 100px;
}
@screen md {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px 60px;
+ /* 날짜 아이디 내역 금액 메모 배팅번호 */
+ grid-template-columns: 100px 100px auto 100px 100px 100px;
}
@screen lg {
- grid-template-columns: 60px 70px 70px 70px 70px 100px 60px 60px auto 60px 60px 60px 60px;
+ /* 날짜 아이디 내역 금액 메모 배팅번호 */
+ grid-template-columns: 100px 100px auto 100px 100px 100px;
}
}
`,
@@ -69,6 +73,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
moneyLogs$!: Observable
;
users$!: Observable;
+ __isSearchOpened = false;
isLoading = false;
searchInputControl = new FormControl();
selectedMoneyLog?: MoneyLog;
@@ -117,7 +122,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
if (this._sort && this._paginator) {
// Set the initial sort
this._sort.sort({
- id: 'name',
+ id: 'signinId',
start: 'asc',
disableClear: true,
});
@@ -186,6 +191,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
*/
__toggleDetails(productId: string): void {}
+ /**
+ * toggle the search
+ * Used in 'bar'
+ */
+ __onClickSearch(): void {
+ this.__isSearchOpened = !this.__isSearchOpened;
+ }
+
/**
* Track by function for ngFor loops
*
diff --git a/src/app/modules/admin/report/money-log/models/money-log.ts b/src/app/modules/admin/report/money-log/models/money-log.ts
index f7b25f6..f7929ae 100644
--- a/src/app/modules/admin/report/money-log/models/money-log.ts
+++ b/src/app/modules/admin/report/money-log/models/money-log.ts
@@ -1,29 +1,12 @@
export interface MoneyLog {
- id?: string;
- totalPartnerCount?: number;
- totalHoldingMoney?: number;
- totalComp?: number;
- total?: number;
- branchCount?: number;
- divisionCount?: number;
- officeCount?: number;
- storeCount?: number;
- memberCount?: number;
+ id: string;
+ finalSigninDate?: Date;
+ signinId?: string;
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;
+ history?: string;
+ beforeMoney?: number;
+ changeMoney?: number;
+ afterMoney?: number;
+ memo?: string;
+ bettingNumber?: number;
}
diff --git a/src/app/modules/admin/report/money-log/money-log.module.ts b/src/app/modules/admin/report/money-log/money-log.module.ts
index b2a9bf5..747306f 100644
--- a/src/app/modules/admin/report/money-log/money-log.module.ts
+++ b/src/app/modules/admin/report/money-log/money-log.module.ts
@@ -12,9 +12,7 @@ import { MatSortModule } from '@angular/material/sort';
import { MatSelectModule } from '@angular/material/select';
import { MatTooltipModule } from '@angular/material/tooltip';
import { MatGridListModule } from '@angular/material/grid-list';
-import { MatSlideToggleModule } from '@angular/material/slide-toggle';
-import { MatRadioModule } from '@angular/material/radio';
-import { MatCheckboxModule } from '@angular/material/checkbox';
+import { MatDatepickerModule } from '@angular/material/datepicker';
import { TranslocoModule } from '@ngneat/transloco';
@@ -42,9 +40,7 @@ import { moneyLogRoutes } from './money-log.routing';
MatSelectModule,
MatTooltipModule,
MatGridListModule,
- MatSlideToggleModule,
- MatRadioModule,
- MatCheckboxModule,
+ MatDatepickerModule,
],
})
export class MoneyLogModule {}
diff --git a/src/app/modules/admin/report/payment-log/components/list.component.html b/src/app/modules/admin/report/payment-log/components/list.component.html
index 9e5f004..96b1d5e 100644
--- a/src/app/modules/admin/report/payment-log/components/list.component.html
+++ b/src/app/modules/admin/report/payment-log/components/list.component.html
@@ -10,113 +10,32 @@
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
- 40
- 60
- 80
- 100
-
-
-
-
- LV.1
- LV.2
- LV.3
- LV.4
-
-
-
-
- 정상
- 대기
- 탈퇴
- 휴면
- 블랙
- 정지
-
-
-
-
- 카지노제한
- 슬롯제한
-
-
-
-
- 계좌입금
-
-
-
-
- 카지노콤프
- 슬롯콤프
- 배팅콤프
- 첫충콤프
-
-
-
-
- 검색하기
+
+ Search
- 엑셀저장
- 카지노머니확인
-
@@ -157,29 +74,15 @@
-
-
요율
-
상부트리
-
관리
-
매장수
-
회원수
+
번호
+
비고
+
정보
아이디
-
닉네임
-
예금주
-
연락처
-
정산
-
보유금
-
게임중머니
-
카지노->캐쉬
-
금일콤프
-
총입출
-
로그
-
상태
-
회원수
-
비고
+
이전금액
+
변동금액
+
이후금액
+
등록시간
@@ -189,143 +92,43 @@
-
-
+
+ {{ paymentLog.idx }}
-
-
-
- 요율
-
-
-
-
-
-
- 보유금지급/회수
- 수수료설정
- 콤프지급/회수
- 쿠폰머니지급/회수
- 쪽지보내기
- 베팅리스트
- 강제로그아웃
-
-
-
-
+
+ {{ paymentLog.giveRank }}
+
+ {{ paymentLog.takeRank }}회수or지급
-
-
-
- {{ paymentLog.branchCount }}
-
-
- {{ paymentLog.divisionCount }}
-
-
- {{ paymentLog.officeCount }}
-
-
- {{ paymentLog.storeCount }}
-
+
+ {{ paymentLog.giveRank }}{{ paymentLog.giveId }}
+
+ {{ paymentLog.takeRank }}{{ paymentLog.takeId }}
-
-
-
- {{ paymentLog.memberCount }}
-
+
+ {{ paymentLog.takeRank }}{{ paymentLog.takeId }}
+
+ {{ paymentLog.giveRank }}{{ paymentLog.giveId }}
-
-
-
-
- {{ paymentLog.id }}
-
-
-
-
-
- {{ paymentLog.nickname }}
+
+ {{ paymentLog.takeBeforeMoney }}원
+
+ {{ paymentLog.giveBeforeMoney }}원
-
-
- {{ paymentLog.accountHolder }}
+
+ {{ paymentLog.takeChangeMoney }}원
+
+ {{ paymentLog.giveChangeMoney }}원
-
-
- {{ paymentLog.phoneNumber }}
+
+ {{ paymentLog.takeAfterMoney }}원
+
+ {{ paymentLog.giveAfterMoney }}원
-
-
- {{ paymentLog.calculateType }}
-
-
-
- 캐쉬{{ paymentLog.ownCash }} 콤프{{
- paymentLog.ownComp
- }}
- 쿠폰{{ paymentLog.ownCoupon }}
-
-
-
- {{ paymentLog.gameMoney }}
-
-
-
-
- 게임머니확인
-
-
- 게임머니회수
-
-
-
-
- {{ paymentLog.todayComp }}P
-
-
-
- 입금{{ paymentLog.totalDeposit }} 출금{{
- paymentLog.totalWithdraw
- }}
- 차익{{ paymentLog.balance }}
-
-
-
- 가입{{ paymentLog.registDate }} 최종{{
- paymentLog.finalSigninDate
- }}
- IP{{ paymentLog.ip }}
-
-
-
- {{ paymentLog.state }}
-
-
-
- {{ paymentLog.memberCount }}
-
-
-
-
- {{ paymentLog.note }}
-
+
+ {{ paymentLog.takeRegistrationDate }}
+
+ {{ paymentLog.giveRegistrationDate }}
@@ -348,7 +151,7 @@
- There are no paymentLogs!
+ There are no data!
diff --git a/src/app/modules/admin/report/payment-log/components/list.component.ts b/src/app/modules/admin/report/payment-log/components/list.component.ts
index fc148ad..67615e5 100644
--- a/src/app/modules/admin/report/payment-log/components/list.component.ts
+++ b/src/app/modules/admin/report/payment-log/components/list.component.ts
@@ -42,18 +42,22 @@ import { Router } from '@angular/router';
/* language=SCSS */
`
.inventory-grid {
- grid-template-columns: 60px auto 40px;
+ /* 번호 비고 정보 아이디 이전 변동 */
+ grid-template-columns: 100px 200px auto 100px 100px 100px;
@screen sm {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px;
+ /* 번호 비고 정보 아이디 이전 변동 이후 등록시간 */
+ grid-template-columns: 100px 200px auto 100px 100px 100px 100px 100px;
}
@screen md {
- grid-template-columns: 60px 60px 60px 60px 60px 60px auto 60px 60px;
+ /* 번호 비고 정보 아이디 이전 변동 이후 등록시간 */
+ grid-template-columns: 100px 200px auto 100px 100px 100px 100px 100px;
}
@screen lg {
- grid-template-columns: 60px 70px 70px 70px 70px 100px 60px 60px auto 60px 60px 60px 60px;
+ /* 번호 비고 정보 아이디 이전 변동 이후 등록시간 */
+ grid-template-columns: 100px 200px auto 100px 100px 100px 100px 100px;
}
}
`,
@@ -69,6 +73,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
paymentLogs$!: Observable
;
users$!: Observable;
+ __isSearchOpened = false;
isLoading = false;
searchInputControl = new FormControl();
selectedPaymentLog?: PaymentLog;
@@ -186,6 +191,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
*/
__toggleDetails(productId: string): void {}
+ /**
+ * toggle the search
+ * Used in 'bar'
+ */
+ __onClickSearch(): void {
+ this.__isSearchOpened = !this.__isSearchOpened;
+ }
+
/**
* Track by function for ngFor loops
*
diff --git a/src/app/modules/admin/report/payment-log/models/payment-log.ts b/src/app/modules/admin/report/payment-log/models/payment-log.ts
index dd5bef9..ee003fc 100644
--- a/src/app/modules/admin/report/payment-log/models/payment-log.ts
+++ b/src/app/modules/admin/report/payment-log/models/payment-log.ts
@@ -1,29 +1,16 @@
export interface PaymentLog {
- id?: string;
- totalPartnerCount?: number;
- totalHoldingMoney?: number;
- totalComp?: number;
- total?: number;
- branchCount?: number;
- divisionCount?: number;
- 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;
- state?: string;
- note?: string;
+ id: string;
+ idx?: number;
+ giveRank?: string; // 지급자 등급
+ giveId?: string; // 지급자 아이디
+ giveBeforeMoney?: number; // 지급자 이전금액
+ giveChangeMoney?: number; // 지급자 변동금액
+ giveAfterMoney?: number; // 지급자 이후금액
+ takeRank?: string; // 회수자 등급
+ takeId?: string; // 회수자 아이디
+ takeBeforeMoney?: number; // 회수자 이전금액
+ takeChangeMoney?: number; // 회수자 변동금액
+ takeAfterMoney?: number; // 회수자 이후금액
+ giveRegistrationDate?: Date; // 지급자 등록시간
+ takeRegistrationDate?: Date; // 회수자 등록시간
}