한줄공지리스트 page 추가
This commit is contained in:
parent
40ee141d0c
commit
ab645e42e2
|
@ -2,32 +2,12 @@
|
||||||
|
|
||||||
export const noticeOnelines = [
|
export const noticeOnelines = [
|
||||||
{
|
{
|
||||||
id: 'on00',
|
idx: 25,
|
||||||
totalPartnerCount: '5',
|
site: 'All',
|
||||||
totalHoldingMoney: 303675,
|
title: '-입금문의안내(필독)-',
|
||||||
totalComp: 108933,
|
writer: '관리자',
|
||||||
total: 412608,
|
writeDate: '2021-06-08 00:43',
|
||||||
branchCount: 1,
|
views: 65,
|
||||||
divisionCount: 1,
|
state: '노출',
|
||||||
officeCount: 1,
|
|
||||||
storeCount: 1,
|
|
||||||
memberCount: 1,
|
|
||||||
nickname: 'on00',
|
|
||||||
accountHolder: '11',
|
|
||||||
phoneNumber: '010-1111-1111',
|
|
||||||
calculateType: '롤링',
|
|
||||||
ownCash: 50000,
|
|
||||||
ownComp: 1711,
|
|
||||||
ownCoupon: 50000,
|
|
||||||
gameMoney: 0,
|
|
||||||
todayComp: 0,
|
|
||||||
totalDeposit: 0,
|
|
||||||
totalWithdraw: 0,
|
|
||||||
balance: 0,
|
|
||||||
registDate: '2022-06-12 15:38',
|
|
||||||
finalSigninDate: '',
|
|
||||||
ip: '',
|
|
||||||
state: '정상',
|
|
||||||
note: '',
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
</mat-form-field> -->
|
</mat-form-field> -->
|
||||||
|
|
||||||
<!-- SelectBox -->
|
<!-- SelectBox -->
|
||||||
<mat-form-field>
|
<!-- <mat-form-field>
|
||||||
<mat-select placeholder="리스트수">
|
<mat-select placeholder="리스트수">
|
||||||
<mat-option value="40">40</mat-option>
|
<mat-option value="40">40</mat-option>
|
||||||
<mat-option value="60">60</mat-option>
|
<mat-option value="60">60</mat-option>
|
||||||
|
@ -81,39 +81,19 @@
|
||||||
<mat-option value="">첫충콤프</mat-option>
|
<mat-option value="">첫충콤프</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- <mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select placeholder="입금">
|
<mat-select placeholder="입금">
|
||||||
<mat-option value="">계좌입금</mat-option>
|
<mat-option value="">계좌입금</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field> -->
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select placeholder="아이디">
|
<mat-select placeholder="아이디">
|
||||||
<mat-option value="">아이디</mat-option>
|
<mat-option value="">아이디</mat-option>
|
||||||
<mat-option value="">닉네임</mat-option>
|
<mat-option value="">닉네임</mat-option>
|
||||||
<mat-option value="">이름</mat-option>
|
<mat-option value="">이름</mat-option>
|
||||||
<mat-option value="">사이트</mat-option>
|
<mat-option value="">사이트</mat-option>
|
||||||
<mat-option value="">파트너수동지급</mat-option>
|
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="가입일 정렬">
|
|
||||||
<mat-option value="">가입일 정렬</mat-option>
|
|
||||||
<mat-option value="">아이디 정렬</mat-option>
|
|
||||||
<mat-option value="">닉네임 정렬</mat-option>
|
|
||||||
<mat-option value="">캐쉬 정렬</mat-option>
|
|
||||||
<mat-option value="">콤프 정렬</mat-option>
|
|
||||||
<mat-option value="">쿠폰 정렬</mat-option>
|
|
||||||
<mat-option value="">입금 정렬</mat-option>
|
|
||||||
<mat-option value="">출금 정렬</mat-option>
|
|
||||||
<mat-option value="">차익 정렬</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="내림차순">
|
|
||||||
<mat-option value="">내림차순</mat-option>
|
|
||||||
<mat-option value="">오름차순</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field> -->
|
|
||||||
<!-- Search -->
|
<!-- Search -->
|
||||||
<mat-form-field
|
<mat-form-field
|
||||||
class="fuse-mat-dense fuse-mat-no-subscript fuse-mat-rounded min-w-64"
|
class="fuse-mat-dense fuse-mat-no-subscript fuse-mat-rounded min-w-64"
|
||||||
|
@ -140,8 +120,6 @@
|
||||||
<!-- <mat-icon [svgIcon]="'heroicons_outline:plus'"></mat-icon> -->
|
<!-- <mat-icon [svgIcon]="'heroicons_outline:plus'"></mat-icon> -->
|
||||||
<span class="ml-2 mr-1">검색하기</span>
|
<span class="ml-2 mr-1">검색하기</span>
|
||||||
</button>
|
</button>
|
||||||
<button>엑셀저장</button>
|
|
||||||
<button>카지노머니확인</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -160,26 +138,13 @@
|
||||||
matSort
|
matSort
|
||||||
matSortDisableClear
|
matSortDisableClear
|
||||||
>
|
>
|
||||||
<div class="hidden sm:block"><mat-checkbox></mat-checkbox></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">작성자</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">예금주</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">총입출</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>
|
</div>
|
||||||
<!-- Rows -->
|
<!-- Rows -->
|
||||||
<ng-container *ngIf="noticeOnelines$ | async as noticeOnelines">
|
<ng-container *ngIf="noticeOnelines$ | async as noticeOnelines">
|
||||||
|
@ -192,146 +157,38 @@
|
||||||
<div
|
<div
|
||||||
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
|
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
|
||||||
>
|
>
|
||||||
|
<!-- 번호 -->
|
||||||
<div class="hidden sm:block truncate">
|
<div class="hidden sm:block truncate">
|
||||||
<mat-checkbox></mat-checkbox>
|
{{ noticeOneline.idx }}
|
||||||
</div>
|
</div>
|
||||||
<!-- rate -->
|
<!-- 사이트 -->
|
||||||
<div class="hidden sm:block truncate">
|
<div class="hidden sm:block truncate">
|
||||||
<button
|
{{ noticeOneline.site }}
|
||||||
mat-button
|
</div>
|
||||||
color="primary"
|
<!-- 제목 -->
|
||||||
matTooltip="요율확인
|
|
||||||
카지노-바카라: 0%
|
|
||||||
카지노-룰렛: 0%
|
|
||||||
카지노-드레곤타이거: 0%
|
|
||||||
카지노-그외: 0%
|
|
||||||
슬롯: 0%
|
|
||||||
카지노루징: 0%
|
|
||||||
슬롯루징: 0%"
|
|
||||||
>
|
|
||||||
요율
|
|
||||||
</button>
|
|
||||||
<div class="hidden sm:block truncate">
|
<div class="hidden sm:block truncate">
|
||||||
<!-- 관리 -->
|
{{ noticeOneline.title }}
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder="관리">
|
|
||||||
<mat-option value="">보유금지급/회수</mat-option>
|
|
||||||
<mat-option value="">수수료설정</mat-option>
|
|
||||||
<mat-option value="">콤프지급/회수</mat-option>
|
|
||||||
<mat-option value="">쿠폰머니지급/회수</mat-option>
|
|
||||||
<mat-option value="">쪽지보내기</mat-option>
|
|
||||||
<mat-option value="">베팅리스트</mat-option>
|
|
||||||
<mat-option value="">강제로그아웃</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<!-- 작성자 -->
|
||||||
<!-- 매장수 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
<div class="hidden sm:block truncate">
|
||||||
<button mat-flat-button [color]="'primary'">
|
{{ noticeOneline.writer }}
|
||||||
{{ noticeOneline.branchCount }}
|
|
||||||
</button>
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ noticeOneline.divisionCount }}
|
|
||||||
</button>
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ noticeOneline.officeCount }}
|
|
||||||
</button>
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ noticeOneline.storeCount }}
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 회원수 -->
|
<!-- 작성일 -->
|
||||||
<div class="hidden sm:block truncate">
|
<div class="hidden sm:block truncate">
|
||||||
<button mat-flat-button [color]="'primary'">
|
{{ noticeOneline.writeDate }}
|
||||||
{{ noticeOneline.memberCount }}
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- id -->
|
<!-- 조회 -->
|
||||||
<ng-container *ngIf="users$ | async as users">
|
|
||||||
<ng-container
|
|
||||||
*ngFor="let user of users; trackBy: __trackByFn"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="hidden sm:block truncate"
|
|
||||||
(click)="viewUserDetail(user.id!)"
|
|
||||||
>
|
|
||||||
{{ noticeOneline.id }}
|
|
||||||
</div>
|
|
||||||
</ng-container>
|
|
||||||
</ng-container>
|
|
||||||
<!-- nickname -->
|
|
||||||
<div class="hidden sm:block truncate">
|
<div class="hidden sm:block truncate">
|
||||||
{{ noticeOneline.nickname }}
|
{{ noticeOneline.views }}
|
||||||
</div>
|
</div>
|
||||||
<!-- accountHolder -->
|
<!-- 상태 -->
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ noticeOneline.accountHolder }}
|
|
||||||
</div>
|
|
||||||
<!-- 연락처 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ noticeOneline.phoneNumber }}
|
|
||||||
</div>
|
|
||||||
<!-- 정산 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ noticeOneline.calculateType }}
|
|
||||||
</div>
|
|
||||||
<!-- 보유금 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
캐쉬{{ noticeOneline.ownCash }} 콤프{{
|
|
||||||
noticeOneline.ownComp
|
|
||||||
}}
|
|
||||||
쿠폰{{ noticeOneline.ownCoupon }}
|
|
||||||
</div>
|
|
||||||
<!-- gameMoney -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ noticeOneline.gameMoney }}
|
|
||||||
</div>
|
|
||||||
<!-- casinoCash -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
게임머니확인
|
|
||||||
</button>
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
게임머니회수
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<!-- todayComp -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ noticeOneline.todayComp }}P
|
|
||||||
</div>
|
|
||||||
<!-- 총입출 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
입금{{ noticeOneline.totalDeposit }} 출금{{
|
|
||||||
noticeOneline.totalWithdraw
|
|
||||||
}}
|
|
||||||
차익{{ noticeOneline.balance }}
|
|
||||||
</div>
|
|
||||||
<!-- log -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
가입{{ noticeOneline.registDate }} 최종{{
|
|
||||||
noticeOneline.finalSigninDate
|
|
||||||
}}
|
|
||||||
IP{{ noticeOneline.ip }}
|
|
||||||
</div>
|
|
||||||
<!-- state -->
|
|
||||||
<div class="hidden sm:block truncate">
|
<div class="hidden sm:block truncate">
|
||||||
{{ noticeOneline.state }}
|
{{ noticeOneline.state }}
|
||||||
</div>
|
</div>
|
||||||
<!-- 회원수 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
{{ noticeOneline.memberCount }}
|
|
||||||
</div>
|
|
||||||
<!-- 비고 -->
|
|
||||||
<div class="hidden sm:block truncate">
|
|
||||||
<button mat-flat-button [color]="'primary'">
|
|
||||||
{{ noticeOneline.note }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
<!-- 등록 -->
|
||||||
|
<button mat-flat-button [color]="'primary'">등록</button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,29 +1,9 @@
|
||||||
export interface NoticeOneline {
|
export interface NoticeOneline {
|
||||||
id?: string;
|
idx?: number;
|
||||||
totalPartnerCount?: number;
|
site?: string;
|
||||||
totalHoldingMoney?: number;
|
title?: string;
|
||||||
totalComp?: number;
|
writer?: string;
|
||||||
total?: number;
|
writeDate?: Date;
|
||||||
branchCount?: number;
|
views?: number;
|
||||||
divisionCount?: number;
|
|
||||||
officeCount?: number;
|
|
||||||
storeCount?: number;
|
|
||||||
memberCount?: number;
|
|
||||||
nickname?: string;
|
|
||||||
accountHolder?: string;
|
|
||||||
phoneNumber?: string;
|
|
||||||
calculateType?: string;
|
|
||||||
ownCash?: number;
|
|
||||||
ownComp?: number;
|
|
||||||
ownCoupon?: number;
|
|
||||||
gameMoney?: number;
|
|
||||||
todayComp?: number;
|
|
||||||
totalDeposit?: number;
|
|
||||||
totalWithdraw?: number;
|
|
||||||
balance?: number;
|
|
||||||
registDate?: string;
|
|
||||||
finalSigninDate?: string;
|
|
||||||
ip?: string;
|
|
||||||
state?: string;
|
state?: string;
|
||||||
note?: string;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ export class NoticeOnelineResolver implements Resolve<any> {
|
||||||
state: RouterStateSnapshot
|
state: RouterStateSnapshot
|
||||||
): Observable<NoticeOneline | undefined> {
|
): Observable<NoticeOneline | undefined> {
|
||||||
return this._noticeOnelineService
|
return this._noticeOnelineService
|
||||||
.getNoticeOnelineById(route.paramMap.get('id'))
|
.getNoticeOnelineById(route.paramMap.get('title'))
|
||||||
.pipe(
|
.pipe(
|
||||||
// Error here means the requested product is not available
|
// Error here means the requested product is not available
|
||||||
catchError((error) => {
|
catchError((error) => {
|
||||||
|
|
|
@ -108,13 +108,14 @@ export class NoticeOnelineService {
|
||||||
/**
|
/**
|
||||||
* Get product by id
|
* Get product by id
|
||||||
*/
|
*/
|
||||||
getNoticeOnelineById(id: string | null): Observable<NoticeOneline> {
|
getNoticeOnelineById(title: string | null): Observable<NoticeOneline> {
|
||||||
return this.__noticeOnelines.pipe(
|
return this.__noticeOnelines.pipe(
|
||||||
take(1),
|
take(1),
|
||||||
map((noticeOnelines) => {
|
map((noticeOnelines) => {
|
||||||
// Find the product
|
// Find the product
|
||||||
const noticeOneline =
|
const noticeOneline =
|
||||||
noticeOnelines?.find((item) => item.id === id) || undefined;
|
noticeOnelines?.find((item) => !!item && !!item.title === !!title) ||
|
||||||
|
undefined;
|
||||||
|
|
||||||
// Update the product
|
// Update the product
|
||||||
this.__noticeOneline.next(noticeOneline);
|
this.__noticeOneline.next(noticeOneline);
|
||||||
|
@ -124,7 +125,9 @@ export class NoticeOnelineService {
|
||||||
}),
|
}),
|
||||||
switchMap((product) => {
|
switchMap((product) => {
|
||||||
if (!product) {
|
if (!product) {
|
||||||
return throwError('Could not found product with id of ' + id + '!');
|
return throwError(
|
||||||
|
'Could not found product with id of ' + title + '!'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return of(product);
|
return of(product);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
export interface Notice {
|
export interface Notice {
|
||||||
idx?: number;
|
idx?: number;
|
||||||
site?: string;
|
site?: string;
|
||||||
title?: number;
|
title?: string;
|
||||||
writer?: string;
|
writer?: string;
|
||||||
writeDate?: Date;
|
writeDate?: Date;
|
||||||
views?: number;
|
views?: number;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user