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 @@
한줄공지
-
- - - - - - - 아이디 - 닉네임 - 이름 - 사이트 - - +
- - - - - + + +
+
+ + +
+ +
+ + +
+ +
+ + + + + +
+ +
+ + + + + +
@@ -130,21 +95,25 @@ class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto" > - +
- - - - - - - + + + + +
@@ -158,37 +127,39 @@ class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b" > - + +
+ +
- - - 40 - 60 - 80 - 100 - - - - - LV.1 - LV.2 - LV.3 - LV.4 - - - - - 정상 - 대기 - 탈퇴 - 휴면 - 블랙 - 정지 - - - - - 카지노제한 - 슬롯제한 - - - - - 계좌입금 - - - - - 카지노콤프 - 슬롯콤프 - 배팅콤프 - 첫충콤프 - - - - -
-
@@ -159,29 +78,16 @@
- - - - - - - - - - - - - - - - - - - - +
일련번호
+
아이디
+
등급
+ +
관리자등급
+
관리자아이디
+
아이피
+ +
@@ -194,143 +100,28 @@
-