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 }} - - - - -