bug fix
This commit is contained in:
parent
d9c39cbb7b
commit
50827d9a67
|
@ -43,7 +43,7 @@
|
||||||
mat-flat-button
|
mat-flat-button
|
||||||
class="bet-mat-small-8"
|
class="bet-mat-small-8"
|
||||||
[color]="'primary'"
|
[color]="'primary'"
|
||||||
(click)="onClickDeposit(0)"
|
(click)="onClickDeposit(MemberBankDepositState.COMPLETE)"
|
||||||
>
|
>
|
||||||
입금처리
|
입금처리
|
||||||
</button>
|
</button>
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
mat-flat-button
|
mat-flat-button
|
||||||
class="bet-mat-small-8"
|
class="bet-mat-small-8"
|
||||||
[color]="'primary'"
|
[color]="'primary'"
|
||||||
(click)="onClickDeposit(1)"
|
(click)="onClickDeposit(MemberBankDepositState.PENDING)"
|
||||||
>
|
>
|
||||||
대기처리
|
대기처리
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -98,6 +98,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
searchInputControl = new FormControl();
|
searchInputControl = new FormControl();
|
||||||
selectedDeposit?: Deposit;
|
selectedDeposit?: Deposit;
|
||||||
pagination?: DepositPagination;
|
pagination?: DepositPagination;
|
||||||
|
MemberBankDepositState = MemberBankDepositState;
|
||||||
|
|
||||||
private _unsubscribeAll: Subject<any> = new Subject<any>();
|
private _unsubscribeAll: Subject<any> = new Subject<any>();
|
||||||
|
|
||||||
|
@ -253,19 +254,24 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
return item.id || index;
|
return item.id || index;
|
||||||
}
|
}
|
||||||
|
|
||||||
onClickDeposit(type: number): void {
|
onClickDeposit(typeNum: number): void {
|
||||||
if (this.__checkedDeposits.length === 0) {
|
if (this.__checkedDeposits.length === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let state =
|
||||||
|
typeNum === 3
|
||||||
|
? MemberBankDepositState.COMPLETE
|
||||||
|
: MemberBankDepositState.PENDING;
|
||||||
let req: UpdateMemberBankDepositForStateRequest;
|
let req: UpdateMemberBankDepositForStateRequest;
|
||||||
|
|
||||||
this.__checkedDeposits.map((v) => {
|
this.__checkedDeposits.map((v) => {
|
||||||
req = new UpdateMemberBankDepositForStateRequest();
|
req = new UpdateMemberBankDepositForStateRequest();
|
||||||
req.setId(v);
|
req.setId(v);
|
||||||
req.setState(2);
|
req.setState(state);
|
||||||
|
|
||||||
this._bankDepositService
|
this._bankDepositService
|
||||||
.updateMemberBankDepositForState()
|
.updateMemberBankDepositForState(req)
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log(result);
|
console.log(result);
|
||||||
})
|
})
|
||||||
|
|
|
@ -136,11 +136,11 @@ export class MemberBankDepositService {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateMemberBankDepositForState(): Promise<UpdateMemberBankDepositForStateResponse.Result> {
|
updateMemberBankDepositForState(
|
||||||
|
req: UpdateMemberBankDepositForStateRequest
|
||||||
|
): Promise<UpdateMemberBankDepositForStateResponse.Result> {
|
||||||
return new Promise<UpdateMemberBankDepositForStateResponse.Result>(
|
return new Promise<UpdateMemberBankDepositForStateResponse.Result>(
|
||||||
(resolve, reject) => {
|
(resolve, reject) => {
|
||||||
let req = new UpdateMemberBankDepositForStateRequest();
|
|
||||||
|
|
||||||
this.__natsService
|
this.__natsService
|
||||||
.request<UpdateMemberBankDepositForStateResponse.Result>(
|
.request<UpdateMemberBankDepositForStateResponse.Result>(
|
||||||
SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT_FOR_STATE,
|
SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT_FOR_STATE,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user