This commit is contained in:
Park Byung Eun 2022-07-13 02:47:08 +00:00
parent 39abd3aa29
commit ef7d282186
4 changed files with 20 additions and 31 deletions

View File

@ -42,7 +42,12 @@ export class MemberUnconnectedMockApi {
let unconnecteds: any[] | null = cloneDeep(this._unconnecteds);
// Sort the unconnecteds
if (sort === 'sku' || sort === 'name' || sort === 'active') {
if (
sort === 'id' ||
sort === 'signinId' ||
sort === 'nickname' ||
sort === 'state'
) {
unconnecteds.sort((a, b) => {
const fieldA = a[sort].toString().toUpperCase();
const fieldB = b[sort].toString().toUpperCase();

View File

@ -2,7 +2,7 @@
export const unconnecteds = [
{
id: 'on04',
id: '8fcce528-d878-4cc8-99f7-bd3451ed5402',
category: 'b899ec30-b85a-40ab-bb1f-18a596d5c6de',
name: 'Benton Mens Automatic Watch 44mm 5 ATM',
description:

View File

@ -40,20 +40,12 @@
matSortDisableClear
>
<div></div>
<div class="hidden sm:block" [mat-sort-header]="'rank'">등급</div>
<div class="hidden sm:block" [mat-sort-header]="'id'">아이디</div>
<div class="hidden sm:block" [mat-sort-header]="'nickname'">
닉네임
</div>
<div class="hidden sm:block" [mat-sort-header]="'accountHolder'">
예금주
</div>
<div class="hidden sm:block" [mat-sort-header]="'level'">
레벨
</div>
<div class="hidden sm:block" [mat-sort-header]="'calculateType'">
정산종류
</div>
<div class="hidden sm:block">등급</div>
<div class="hidden sm:block">아이디</div>
<div class="hidden sm:block">닉네임</div>
<div class="hidden sm:block">예금주</div>
<div class="hidden sm:block">레벨</div>
<div class="hidden sm:block">정산종류</div>
<div class="hidden sm:block" [mat-sort-header]="'contact'">
연락처
</div>
@ -62,9 +54,7 @@
<div class="hidden sm:block" [mat-sort-header]="'charge'">
충전금
</div>
<div class="hidden sm:block" [mat-sort-header]="'exchange'">
환전금
</div>
<div class="hidden sm:block">환전금</div>
<div class="hidden sm:block" [mat-sort-header]="'revenue'">
수익금
</div>
@ -77,16 +67,10 @@
<div class="hidden sm:block" [mat-sort-header]="'state'">
상태
</div>
<div class="hidden sm:block" [mat-sort-header]="''">쪽지</div>
<div class="hidden sm:block" [mat-sort-header]="'highest'">
최상부
</div>
<div class="hidden sm:block" [mat-sort-header]="'highRank'">
직속
</div>
<div class="hidden sm:block" [mat-sort-header]="'members'">
회원수
</div>
<div class="hidden sm:block">쪽지</div>
<div class="hidden sm:block">최상부</div>
<div class="hidden sm:block">직속</div>
<div class="hidden sm:block">회원수</div>
</div>
<!-- Rows -->
<ng-container *ngIf="unconnecteds$ | async as unconnecteds">
@ -104,7 +88,7 @@
<div
class="hidden sm:block truncate"
(click)="viewUserDetail(unconnected.id!)"
(click)="viewUserDetail(unconnected.id)"
>
{{ unconnected.id }}
</div>

View File

@ -1,5 +1,5 @@
export interface Unconnected {
id?: string;
id: string;
nickname?: string;
highRank?: string;
rank?: string;