diff --git a/src/app/modules/admin/member/user/components/view.component.html b/src/app/modules/admin/member/user/components/view.component.html index 6eb5c6b..04dca1e 100644 --- a/src/app/modules/admin/member/user/components/view.component.html +++ b/src/app/modules/admin/member/user/components/view.component.html @@ -111,9 +111,9 @@ 아이디 @@ -155,9 +155,9 @@ 핸드폰 @@ -166,17 +166,22 @@
레벨 - - - - cartegory option + + + {{ level.getName() }} - + 상태 - + brand option @@ -200,14 +205,28 @@
은행명 - - - - brand option + + + + {{ bank.getName() }} - + + + 계좌번호 사이트변경 - - - - vendor option + + + + {{ site.getUrl() }} - + + 추천횟수 = new Subject(); /** @@ -84,7 +94,10 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { private _fuseConfirmationService: FuseConfirmationService, private _formBuilder: FormBuilder, private _userService: UserService, - private _memberService: MemberService + private _memberService: MemberService, + private _memberLevelService: MemberLevelService, + private _bankService: BankService, + private _siteService: SiteService ) {} // ----------------------------------------------------------------------------------------------------- @@ -97,18 +110,18 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { ngOnInit(): void { this.memberViewForm = this._formBuilder.group({ id: [''], - signinId: [{ value: '', disabled: true }], + username: [{ value: '', disabled: true }], signinPw: [{ value: '' }], exchangePw: [''], description: [''], tags: [[]], nickname: [{ value: '', disabled: true }], ownCash: [''], - phoneNumber: [''], + mobilePhoneNumber: [''], level: [''], - status: [''], + state: [''], isExcahngeMoney: [''], - bankname: [''], + bankId: [''], accountNumber: [''], accountHolder: [''], comp: [''], @@ -143,6 +156,18 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { /* this.user$ = this._userService.user$; */ + this._siteService + .listSites() + .then((result) => (this.sites = result.getSitesList())); + this._memberLevelService.listMemberLevels().then((result) => { + this.memberLevels = result + .getMemberLevelsList() + .filter((v) => !!v.getShow()); + }); + this._bankService + .listBanks() + .then((result) => (this.banks = result.getBanksList())); + this._activatedRoute.data.subscribe((data) => { let member: GetMemberResponse.Result = data['member']; @@ -150,13 +175,14 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { /* console.log('dddd', listMemberResult.getMembersList()); */ this.memberViewForm.patchValue({ - signinId: this.selectedUser?.getUsername(), - signinPw: '1234', - exchangePw: '1234', - phoneNumber: this.selectedUser?.getMobilePhoneNumber(), - level: this.selectedUser?.getMemberLevel()?.getName(), - status: this.selectedUser?.getState(), + username: this.selectedUser?.getUsername(), + signinPw: '', + exchangePw: '', + mobilePhoneNumber: this.selectedUser?.getMobilePhoneNumber(), + levelId: this.selectedUser?.getMemberLevel()?.getId(), + state: this.selectedUser?.getState(), nickname: this.selectedUser?.getNickname(), + bankId: this.selectedUser?.getBankAccount()?.getId(), }); // Mark for check this._changeDetectorRef.markForCheck(); @@ -210,12 +236,12 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { __modifyMember(): void { const valueForm = this.memberViewForm.value; console.log('v: ', valueForm); - this._memberService.updateMember( + /* this._memberService.updateMember( this.selectedUser!.getId(), this.selectedUser!.getSite()!.getId(), this.selectedUser!.getMemberLevel()!.getId(), 'beteran', - valueForm.phoneNumber - ); + valueForm.mobilePhoneNumber + ); */ } }