수정
This commit is contained in:
parent
b0e5604bec
commit
7c94200594
|
@ -33,7 +33,7 @@ export class MemberCasinoMoneyMockApi {
|
||||||
.reply(({ request }) => {
|
.reply(({ request }) => {
|
||||||
// Get available queries
|
// Get available queries
|
||||||
const search = request.params.get('search');
|
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 order = request.params.get('order') || 'asc';
|
||||||
const page = parseInt(request.params.get('page') ?? '1', 10);
|
const page = parseInt(request.params.get('page') ?? '1', 10);
|
||||||
const size = parseInt(request.params.get('size') ?? '10', 10);
|
const size = parseInt(request.params.get('size') ?? '10', 10);
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class MemberCouponLogMockApi {
|
||||||
.reply(({ request }) => {
|
.reply(({ request }) => {
|
||||||
// Get available queries
|
// Get available queries
|
||||||
const search = request.params.get('search');
|
const search = request.params.get('search');
|
||||||
const sort = request.params.get('sort') || 'name';
|
const sort = request.params.get('sort') || 'issuedCouponId';
|
||||||
const order = request.params.get('order') || 'asc';
|
const order = request.params.get('order') || 'asc';
|
||||||
const page = parseInt(request.params.get('page') ?? '1', 10);
|
const page = parseInt(request.params.get('page') ?? '1', 10);
|
||||||
const size = parseInt(request.params.get('size') ?? '10', 10);
|
const size = parseInt(request.params.get('size') ?? '10', 10);
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class MemberCouponMoneyLogMockApi {
|
||||||
.reply(({ request }) => {
|
.reply(({ request }) => {
|
||||||
// Get available queries
|
// Get available queries
|
||||||
const search = request.params.get('search');
|
const search = request.params.get('search');
|
||||||
const sort = request.params.get('sort') || 'name';
|
const sort = request.params.get('sort') || 'issuedCouponId';
|
||||||
const order = request.params.get('order') || 'asc';
|
const order = request.params.get('order') || 'asc';
|
||||||
const page = parseInt(request.params.get('page') ?? '1', 10);
|
const page = parseInt(request.params.get('page') ?? '1', 10);
|
||||||
const size = parseInt(request.params.get('size') ?? '10', 10);
|
const size = parseInt(request.params.get('size') ?? '10', 10);
|
||||||
|
@ -42,7 +42,11 @@ export class MemberCouponMoneyLogMockApi {
|
||||||
let couponMoneyLogs: any[] | null = cloneDeep(this._couponMoneyLogs);
|
let couponMoneyLogs: any[] | null = cloneDeep(this._couponMoneyLogs);
|
||||||
|
|
||||||
// Sort the couponMoneyLogs
|
// Sort the couponMoneyLogs
|
||||||
if (sort === 'sku' || sort === 'name' || sort === 'active') {
|
if (
|
||||||
|
sort === 'issuedCouponId' ||
|
||||||
|
sort === 'useCouponId' ||
|
||||||
|
sort === 'retrieveCouponId'
|
||||||
|
) {
|
||||||
couponMoneyLogs.sort((a, b) => {
|
couponMoneyLogs.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();
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class MemberCouponMockApi {
|
||||||
.reply(({ request }) => {
|
.reply(({ request }) => {
|
||||||
// Get available queries
|
// Get available queries
|
||||||
const search = request.params.get('search');
|
const search = request.params.get('search');
|
||||||
const sort = request.params.get('sort') || 'name';
|
const sort = request.params.get('sort') || 'issuedCouponId';
|
||||||
const order = request.params.get('order') || 'asc';
|
const order = request.params.get('order') || 'asc';
|
||||||
const page = parseInt(request.params.get('page') ?? '1', 10);
|
const page = parseInt(request.params.get('page') ?? '1', 10);
|
||||||
const size = parseInt(request.params.get('size') ?? '10', 10);
|
const size = parseInt(request.params.get('size') ?? '10', 10);
|
||||||
|
@ -42,7 +42,11 @@ export class MemberCouponMockApi {
|
||||||
let coupons: any[] | null = cloneDeep(this._coupons);
|
let coupons: any[] | null = cloneDeep(this._coupons);
|
||||||
|
|
||||||
// Sort the coupons
|
// Sort the coupons
|
||||||
if (sort === 'sku' || sort === 'name' || sort === 'active') {
|
if (
|
||||||
|
sort === 'issuedCouponId' ||
|
||||||
|
sort === 'couponGroupNumber' ||
|
||||||
|
sort === 'useOrNot'
|
||||||
|
) {
|
||||||
coupons.sort((a, b) => {
|
coupons.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();
|
||||||
|
|
|
@ -10,7 +10,7 @@ export const coupons = [
|
||||||
couponGroupNumber: '6L03ER50103AZOVS',
|
couponGroupNumber: '6L03ER50103AZOVS',
|
||||||
couponSerialNumber: '3GWL2T6RQJ4WJLRTQMBIRFEO',
|
couponSerialNumber: '3GWL2T6RQJ4WJLRTQMBIRFEO',
|
||||||
issuedCoupons: '1/1',
|
issuedCoupons: '1/1',
|
||||||
issuedCouponPrice: 50000,
|
issuedCouponMoney: 50000,
|
||||||
couponStartDate: '2022-06-12 00:00',
|
couponStartDate: '2022-06-12 00:00',
|
||||||
couponFinishDate: '2022-07-12 23:59',
|
couponFinishDate: '2022-07-12 23:59',
|
||||||
useOrNot: 'Y',
|
useOrNot: 'Y',
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class MemberPartnerBranchMockApi {
|
||||||
.reply(({ request }) => {
|
.reply(({ request }) => {
|
||||||
// Get available queries
|
// Get available queries
|
||||||
const search = request.params.get('search');
|
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 order = request.params.get('order') || 'asc';
|
||||||
const page = parseInt(request.params.get('page') ?? '1', 10);
|
const page = parseInt(request.params.get('page') ?? '1', 10);
|
||||||
const size = parseInt(request.params.get('size') ?? '10', 10);
|
const size = parseInt(request.params.get('size') ?? '10', 10);
|
||||||
|
@ -42,7 +42,11 @@ export class MemberPartnerBranchMockApi {
|
||||||
let partnerBranchs: any[] | null = cloneDeep(this._partnerBranchs);
|
let partnerBranchs: any[] | null = cloneDeep(this._partnerBranchs);
|
||||||
|
|
||||||
// Sort the partnerBranchs
|
// Sort the partnerBranchs
|
||||||
if (sort === 'sku' || sort === 'name' || sort === 'active') {
|
if (
|
||||||
|
sort === 'signinId' ||
|
||||||
|
sort === 'nickname' ||
|
||||||
|
sort === 'accountHolder'
|
||||||
|
) {
|
||||||
partnerBranchs.sort((a, b) => {
|
partnerBranchs.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();
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class MemberPartnerDivisionMockApi {
|
||||||
.reply(({ request }) => {
|
.reply(({ request }) => {
|
||||||
// Get available queries
|
// Get available queries
|
||||||
const search = request.params.get('search');
|
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 order = request.params.get('order') || 'asc';
|
||||||
const page = parseInt(request.params.get('page') ?? '1', 10);
|
const page = parseInt(request.params.get('page') ?? '1', 10);
|
||||||
const size = parseInt(request.params.get('size') ?? '10', 10);
|
const size = parseInt(request.params.get('size') ?? '10', 10);
|
||||||
|
@ -42,7 +42,11 @@ export class MemberPartnerDivisionMockApi {
|
||||||
let partnerDivisions: any[] | null = cloneDeep(this._partnerDivisions);
|
let partnerDivisions: any[] | null = cloneDeep(this._partnerDivisions);
|
||||||
|
|
||||||
// Sort the partnerDivisions
|
// Sort the partnerDivisions
|
||||||
if (sort === 'sku' || sort === 'name' || sort === 'active') {
|
if (
|
||||||
|
sort === 'signinId' ||
|
||||||
|
sort === 'nickname' ||
|
||||||
|
sort === 'accountHolder'
|
||||||
|
) {
|
||||||
partnerDivisions.sort((a, b) => {
|
partnerDivisions.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();
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class MemberPartnerOfficeMockApi {
|
||||||
.reply(({ request }) => {
|
.reply(({ request }) => {
|
||||||
// Get available queries
|
// Get available queries
|
||||||
const search = request.params.get('search');
|
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 order = request.params.get('order') || 'asc';
|
||||||
const page = parseInt(request.params.get('page') ?? '1', 10);
|
const page = parseInt(request.params.get('page') ?? '1', 10);
|
||||||
const size = parseInt(request.params.get('size') ?? '10', 10);
|
const size = parseInt(request.params.get('size') ?? '10', 10);
|
||||||
|
@ -42,7 +42,11 @@ export class MemberPartnerOfficeMockApi {
|
||||||
let partnerOffices: any[] | null = cloneDeep(this._partnerOffices);
|
let partnerOffices: any[] | null = cloneDeep(this._partnerOffices);
|
||||||
|
|
||||||
// Sort the partnerOffices
|
// Sort the partnerOffices
|
||||||
if (sort === 'sku' || sort === 'name' || sort === 'active') {
|
if (
|
||||||
|
sort === 'signinId' ||
|
||||||
|
sort === 'nickname' ||
|
||||||
|
sort === 'accountHolder'
|
||||||
|
) {
|
||||||
partnerOffices.sort((a, b) => {
|
partnerOffices.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();
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class MemberPartnerStoreMockApi {
|
||||||
.reply(({ request }) => {
|
.reply(({ request }) => {
|
||||||
// Get available queries
|
// Get available queries
|
||||||
const search = request.params.get('search');
|
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 order = request.params.get('order') || 'asc';
|
||||||
const page = parseInt(request.params.get('page') ?? '1', 10);
|
const page = parseInt(request.params.get('page') ?? '1', 10);
|
||||||
const size = parseInt(request.params.get('size') ?? '10', 10);
|
const size = parseInt(request.params.get('size') ?? '10', 10);
|
||||||
|
@ -42,7 +42,11 @@ export class MemberPartnerStoreMockApi {
|
||||||
let partnerStores: any[] | null = cloneDeep(this._partnerStores);
|
let partnerStores: any[] | null = cloneDeep(this._partnerStores);
|
||||||
|
|
||||||
// Sort the partnerStores
|
// Sort the partnerStores
|
||||||
if (sort === 'sku' || sort === 'name' || sort === 'active') {
|
if (
|
||||||
|
sort === 'signinId' ||
|
||||||
|
sort === 'nickname' ||
|
||||||
|
sort === 'accountHolder'
|
||||||
|
) {
|
||||||
partnerStores.sort((a, b) => {
|
partnerStores.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();
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class MemberUnconnectedMockApi {
|
||||||
.reply(({ request }) => {
|
.reply(({ request }) => {
|
||||||
// Get available queries
|
// Get available queries
|
||||||
const search = request.params.get('search');
|
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 order = request.params.get('order') || 'asc';
|
||||||
const page = parseInt(request.params.get('page') ?? '1', 10);
|
const page = parseInt(request.params.get('page') ?? '1', 10);
|
||||||
const size = parseInt(request.params.get('size') ?? '10', 10);
|
const size = parseInt(request.params.get('size') ?? '10', 10);
|
||||||
|
|
|
@ -124,27 +124,34 @@ export const defaultNavigation: FuseNavigationItem[] = [
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
id: 'member.coupon',
|
id: 'apps.coupon',
|
||||||
title: 'Coupon',
|
title: 'Coupon-management',
|
||||||
type: 'basic',
|
type: 'collapsable',
|
||||||
icon: 'heroicons_outline:academic-cap',
|
icon: 'heroicons_outline:shopping-cart',
|
||||||
link: '/member/coupon',
|
children: [
|
||||||
},
|
{
|
||||||
{
|
id: 'member.coupon',
|
||||||
id: 'member.coupon-money-log',
|
title: 'Coupon',
|
||||||
title: 'Coupon Money Log',
|
type: 'basic',
|
||||||
type: 'basic',
|
icon: 'heroicons_outline:academic-cap',
|
||||||
icon: 'heroicons_outline:academic-cap',
|
link: '/member/coupon',
|
||||||
link: '/member/coupon-money-log',
|
},
|
||||||
},
|
{
|
||||||
{
|
id: 'member.coupon-money-log',
|
||||||
id: 'member.coupon-log',
|
title: 'Coupon Money Log',
|
||||||
title: 'Coupon Log',
|
type: 'basic',
|
||||||
type: 'basic',
|
icon: 'heroicons_outline:academic-cap',
|
||||||
icon: 'heroicons_outline:academic-cap',
|
link: '/member/coupon-money-log',
|
||||||
link: '/member/coupon-log',
|
},
|
||||||
|
{
|
||||||
|
id: 'member.coupon-log',
|
||||||
|
title: 'Coupon Log',
|
||||||
|
type: 'basic',
|
||||||
|
icon: 'heroicons_outline:academic-cap',
|
||||||
|
link: '/member/coupon-log',
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -111,6 +111,7 @@
|
||||||
<hr style="margin: 7px 0px" />
|
<hr style="margin: 7px 0px" />
|
||||||
닉네임
|
닉네임
|
||||||
</div>
|
</div>
|
||||||
|
<div>금액</div>
|
||||||
<div class="hidden md:block">
|
<div class="hidden md:block">
|
||||||
쿠폰시작일
|
쿠폰시작일
|
||||||
<hr style="margin: 7px 0px" />
|
<hr style="margin: 7px 0px" />
|
||||||
|
@ -136,6 +137,9 @@
|
||||||
<hr style="margin: 7px 0px" />
|
<hr style="margin: 7px 0px" />
|
||||||
{{ coupon.issuedCouponNickname }}
|
{{ coupon.issuedCouponNickname }}
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
{{ coupon.issuedCouponMoney }}
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{{ coupon.issuedCoupons }}
|
{{ coupon.issuedCoupons }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,7 +7,7 @@ export interface Coupon {
|
||||||
couponGroupNumber?: string; // 쿠폰그룹번호
|
couponGroupNumber?: string; // 쿠폰그룹번호
|
||||||
couponSerialNumber?: string; // 쿠폰시리얼넘버
|
couponSerialNumber?: string; // 쿠폰시리얼넘버
|
||||||
issuedCoupons?: string; // 쿠폰발행수
|
issuedCoupons?: string; // 쿠폰발행수
|
||||||
issuedCouponPrice?: number; // 발행금액
|
issuedCouponMoney?: number; // 발행금액
|
||||||
couponStartDate?: Date; // 쿠폰시작일
|
couponStartDate?: Date; // 쿠폰시작일
|
||||||
couponFinishDate?: Date; // 쿠폰종료일
|
couponFinishDate?: Date; // 쿠폰종료일
|
||||||
useOrNot?: string;
|
useOrNot?: string;
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
"Partner Office": "Partner Office",
|
"Partner Office": "Partner Office",
|
||||||
"Partner Store": "Partner Store",
|
"Partner Store": "Partner Store",
|
||||||
"Partner Recommendation": "Recommendation",
|
"Partner Recommendation": "Recommendation",
|
||||||
|
"Coupon-management": "Coupon-management",
|
||||||
"Coupon": "Coupon",
|
"Coupon": "Coupon",
|
||||||
"Coupon Money Log": "Coupon Money Log",
|
"Coupon Money Log": "Coupon Money Log",
|
||||||
"Coupon Log": "Coupon Log",
|
"Coupon Log": "Coupon Log",
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
"Partner Office": "총판",
|
"Partner Office": "총판",
|
||||||
"Partner Store": "매장",
|
"Partner Store": "매장",
|
||||||
"Partner Recommendation": "추천코드등록",
|
"Partner Recommendation": "추천코드등록",
|
||||||
|
"Coupon-management": "쿠폰관리",
|
||||||
"Coupon": "쿠폰발행리스트",
|
"Coupon": "쿠폰발행리스트",
|
||||||
"Coupon Money Log": "쿠폰발행머니로그",
|
"Coupon Money Log": "쿠폰발행머니로그",
|
||||||
"Coupon Log": "쿠폰발행 로그",
|
"Coupon Log": "쿠폰발행 로그",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user