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); let unconnecteds: any[] | null = cloneDeep(this._unconnecteds);
// Sort the unconnecteds // Sort the unconnecteds
if (sort === 'sku' || sort === 'name' || sort === 'active') { if (
sort === 'id' ||
sort === 'signinId' ||
sort === 'nickname' ||
sort === 'state'
) {
unconnecteds.sort((a, b) => { unconnecteds.sort((a, b) => {
const fieldA = a[sort].toString().toUpperCase(); const fieldA = a[sort].toString().toUpperCase();
const fieldB = b[sort].toString().toUpperCase(); const fieldB = b[sort].toString().toUpperCase();

View File

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

View File

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

View File

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