Merge branch 'feature/BETERAN-BACKEND-APP-BROWSER-init' of https://gitlab.loafle.net/bet/beteran-backend-app-browser into feature/BETERAN-BACKEND-APP-BROWSER-init

This commit is contained in:
병준 박 2022-07-21 02:23:13 +00:00
commit f753247ea1
5 changed files with 121 additions and 6 deletions

View File

@ -37,7 +37,7 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
</div> </div>
<!-- Card expiration --> <!-- Card inception -->
<div class="col-span-2 sm:col-span-1"> <div class="col-span-2 sm:col-span-1">
<mat-form-field <mat-form-field
class="fuse-mat-no-subscript w-full" class="fuse-mat-no-subscript w-full"

View File

@ -102,6 +102,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
private _unsubscribeAll: Subject<any> = new Subject<any>(); private _unsubscribeAll: Subject<any> = new Subject<any>();
roles: any[]; roles: any[];
roles2: any[];
/** /**
* Constructor * Constructor
@ -132,6 +133,16 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
value: '슬롯', value: '슬롯',
}, },
]; ];
this.roles2 = [
{
label: '회원아이디',
value: '전체',
},
{
label: '닉네임',
value: '파워볼',
},
];
} }
// ----------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------
@ -157,9 +168,6 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
console.log(dailyPartners); console.log(dailyPartners);
this._changeDetectorRef.markForCheck(); this._changeDetectorRef.markForCheck();
}); });
// Get the products
this.dailyPartners$ = this._dailyPartnerService.dailyPartners$;
} }
/** /**

View File

@ -9,6 +9,96 @@
<div class="text-lg font-medium tracking-tight leading-6 truncate"> <div class="text-lg font-medium tracking-tight leading-6 truncate">
금일배팅자목록 금일배팅자목록
</div> </div>
<div>
<!-- Section -->
<div class="grid grid-cols-8 gap-6 w-full mt-8">
<!-- Card number -->
<div class="col-span-2 sm:col-span-1">
<mat-form-field class="fuse-mat-no subscript w-full">
<mat-select
[value]="'전체'"
disableOptionCentering
#roleSelect="matSelect"
>
<mat-select-trigger class="text-md">
<span class="ml-1 font-medium">{{
roleSelect.value | titlecase
}}</span>
</mat-select-trigger>
<ng-container *ngFor="let role of roles1">
<mat-option
class="h-auto py-4 leading-none"
[value]="role.value"
>
<div class="font-medium">{{ role.label }}</div>
</mat-option>
</ng-container>
</mat-select>
</mat-form-field>
</div>
<!-- Card inception -->
<div class="col-span-2 sm:col-span-1">
<mat-form-field
class="fuse-mat-no-subscript w-full"
[floatLabel]="'always'"
>
<input
matInput
[matDatepicker]="picker1"
[placeholder]="'Choose a date'"
/>
<mat-datepicker-toggle
matSuffix
[for]="picker1"
></mat-datepicker-toggle>
<mat-datepicker #picker1></mat-datepicker>
</mat-form-field>
</div>
<!-- Card expiration -->
<div class="col-span-2 sm:col-span-1">
<mat-form-field
class="fuse-mat-no-subscript w-full"
[floatLabel]="'always'"
>
<input
matInput
[matDatepicker]="picker2"
[placeholder]="'Choose a date'"
/>
<mat-datepicker-toggle
matSuffix
[for]="picker2"
></mat-datepicker-toggle>
<mat-datepicker #picker2></mat-datepicker>
</mat-form-field>
</div>
<!-- Card number -->
<div class="col-span-2 sm:col-span-1">
<mat-form-field class="fuse-mat-no subscript w-full">
<mat-select
[value]="'회원아이디'"
disableOptionCentering
#roleSelect="matSelect"
>
<mat-select-trigger class="text-md">
<span class="ml-1 font-medium">{{
roleSelect.value | titlecase
}}</span>
</mat-select-trigger>
<ng-container *ngFor="let role of roles2">
<mat-option
class="h-auto py-4 leading-none"
[value]="role.value"
>
<div class="font-medium">{{ role.label }}</div>
</mat-option>
</ng-container>
</mat-select>
</mat-form-field>
</div>
</div>
</div>
<div class="flex flex-col flex-auto mt-2 overflow-x-auto"> <div class="flex flex-col flex-auto mt-2 overflow-x-auto">
<form [formGroup]="todayBetForm" autocomplete="off"> <form [formGroup]="todayBetForm" autocomplete="off">
<table <table

View File

@ -103,7 +103,8 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
]; ];
private _unsubscribeAll: Subject<any> = new Subject<any>(); private _unsubscribeAll: Subject<any> = new Subject<any>();
roles: any[]; roles1: any[];
roles2: any[];
/** /**
* Constructor * Constructor
@ -115,7 +116,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
private _todayBetService: TodayBetService, private _todayBetService: TodayBetService,
private router: Router private router: Router
) { ) {
this.roles = [ this.roles1 = [
{ {
label: '전체', label: '전체',
value: '전체', value: '전체',
@ -133,6 +134,16 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
value: '슬롯', value: '슬롯',
}, },
]; ];
this.roles2 = [
{
label: '회원아이디',
value: '회원아이디',
},
{
label: '닉네임',
value: '닉네임',
},
];
} }
// ----------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------

View File

@ -16,6 +16,9 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { MatRadioModule } from '@angular/material/radio'; import { MatRadioModule } from '@angular/material/radio';
import { MatCheckboxModule } from '@angular/material/checkbox'; import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatTableModule } from '@angular/material/table'; import { MatTableModule } from '@angular/material/table';
import { MatDatepickerModule } from '@angular/material/datepicker';
import { MatMomentDateModule } from '@angular/material-moment-adapter';
import { MatDividerModule } from '@angular/material/divider';
import { TranslocoModule } from '@ngneat/transloco'; import { TranslocoModule } from '@ngneat/transloco';
@ -47,6 +50,9 @@ import { todayBetRoutes } from './today-bet.routing';
MatRadioModule, MatRadioModule,
MatCheckboxModule, MatCheckboxModule,
MatTableModule, MatTableModule,
MatDatepickerModule,
MatDividerModule,
MatMomentDateModule,
], ],
}) })
export class TodayBetModule {} export class TodayBetModule {}