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