From 78060e6bf8938f4f2a877eb5471de197184f203a Mon Sep 17 00:00:00 2001 From: JUNG YI DAM Date: Fri, 22 Jul 2022 04:58:29 +0000 Subject: [PATCH] =?UTF-8?q?=EC=A0=84=EC=B2=B4=ED=8C=8C=ED=8A=B8=EB=84=88?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/mock-api/apps/member/partner/api.ts | 4 +- src/app/mock-api/apps/member/partner/data.ts | 38 +- .../components/all-list.component.html | 384 ++++-------------- .../partner/components/all-list.component.ts | 12 +- .../admin/member/partner/models/partner.ts | 13 +- 5 files changed, 131 insertions(+), 320 deletions(-) diff --git a/src/app/mock-api/apps/member/partner/api.ts b/src/app/mock-api/apps/member/partner/api.ts index aec6a86..f957c34 100644 --- a/src/app/mock-api/apps/member/partner/api.ts +++ b/src/app/mock-api/apps/member/partner/api.ts @@ -33,7 +33,7 @@ export class MemberPartnerMockApi { .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 MemberPartnerMockApi { let partners: any[] | null = cloneDeep(this._partners); // Sort the partners - if (sort === 'sku' || sort === 'name' || sort === 'active') { + if (sort === 'signinId' || sort === 'nickname' || sort === 'state') { partners.sort((a, b) => { const fieldA = a[sort].toString().toUpperCase(); const fieldB = b[sort].toString().toUpperCase(); diff --git a/src/app/mock-api/apps/member/partner/data.ts b/src/app/mock-api/apps/member/partner/data.ts index 66280ff..6ee949b 100644 --- a/src/app/mock-api/apps/member/partner/data.ts +++ b/src/app/mock-api/apps/member/partner/data.ts @@ -2,7 +2,8 @@ export const partners = [ { - id: 'kgon1', + id: '7eb7c859-1347-4317-96b6-9476a7e2ba3c', + signinId: 'kgon1', nickname: '본사', rank: '본사', branchCount: 2, @@ -15,16 +16,43 @@ export const partners = [ holdingMoney: 253675, accountHolder: '본사', phoneNumber: '010-0000-0000', - comp: 100737, - coupon: 1900000, + ownCash: 253675, + ownComp: 100737, + ownCoupon: 1900000, ownCharge: 460000, bottomCharge: 54020000, ownExchange: 100000, bottomExchange: 19970000, ownRevenue: 360000, bottomRevenue: 34050000, - accession: '2021-10-14 10:53', + registDate: '2021-10-14 10:53', + state: '정상', + }, + { + id: '00b0292f-3d50-4669-a0c4-7a9d85efc98d', + signinId: 'test11', + nickname: '본사', + rank: '본사', + branchCount: 2, + divisionCount: 2, + officeCount: 1, + storeCount: 1, + memberCount: 5, + level: '1', + calculateType: '롤링', + holdingMoney: 253675, + accountHolder: '테스트', + phoneNumber: '010-1234-5678', + ownCash: 0, + ownComp: 6485, + ownCoupon: 0, + ownCharge: 0, + bottomCharge: 1000000, + ownExchange: 0, + bottomExchange: 0, + ownRevenue: 0, + bottomRevenue: 1000000, + registDate: '2022-04-22 18:55', state: '정상', - note: '대본등록', }, ]; diff --git a/src/app/modules/admin/member/partner/components/all-list.component.html b/src/app/modules/admin/member/partner/components/all-list.component.html index 258fa76..65c5198 100644 --- a/src/app/modules/admin/member/partner/components/all-list.component.html +++ b/src/app/modules/admin/member/partner/components/all-list.component.html @@ -13,56 +13,18 @@
전체목록
- - - - - - - - - +
+ 총회원수:38   + 총 보유머니:21,437,873   + 총 콤프:394,860   + 총 합계:21,832,733 +
-
-
- - - - - - - - - - - - - - - - - - - + + + + + + +
@@ -117,238 +73,68 @@
- - - - - {{ partner.rank }} - - - {{ partner.nickname }} - - - - -