From 4630d9551c6a60d709bdfb0e0d8298636d1c29a1 Mon Sep 17 00:00:00 2001 From: Park Byung Eun Date: Mon, 8 Aug 2022 10:34:00 +0000 Subject: [PATCH 1/3] =?UTF-8?q?=EC=A7=84=ED=96=89=EC=A4=91...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../compose/regist-compose.component.ts | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/app/modules/admin/member/partner/compose/regist-compose.component.ts b/src/app/modules/admin/member/partner/compose/regist-compose.component.ts index 3f0319b..6ec4439 100644 --- a/src/app/modules/admin/member/partner/compose/regist-compose.component.ts +++ b/src/app/modules/admin/member/partner/compose/regist-compose.component.ts @@ -1,6 +1,24 @@ -import { Component, OnInit, ViewEncapsulation } from '@angular/core'; +import { Component, Inject, OnInit, ViewEncapsulation } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; -import { MatDialogRef } from '@angular/material/dialog'; +import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; + +export interface RegistComposeData { + title: string; + parentId: string; +} +export interface RegistComposeResult { + parentId: string; + siteName: string; + signinId: string; + password: string; + exchangePassword: string; + nickname: string; + calculateType: string; + phoneNumber: string; + bankName: string; + accountNumber: string; + accountHolder: string; +} @Component({ selector: 'app-regist-compose', @@ -26,6 +44,7 @@ export class RegistComposeComponent implements OnInit { */ constructor( public matDialogRef: MatDialogRef, + @Inject(MAT_DIALOG_DATA) public data: RegistComposeData, private _formBuilder: FormBuilder ) {} From e11c423ba803b58e77584bc54aa05383cbaf1271 Mon Sep 17 00:00:00 2001 From: Park Byung Eun Date: Tue, 9 Aug 2022 11:17:16 +0000 Subject: [PATCH 2/3] bug fix --- .../modules/admin/member/partner/components/list.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/admin/member/partner/components/list.component.html b/src/app/modules/admin/member/partner/components/list.component.html index 1cadf41..cb93111 100644 --- a/src/app/modules/admin/member/partner/components/list.component.html +++ b/src/app/modules/admin/member/partner/components/list.component.html @@ -28,7 +28,7 @@
From af143e6216bc3a6c0a972ad8ff7760dabad3ab88 Mon Sep 17 00:00:00 2001 From: Park Byung Eun Date: Tue, 9 Aug 2022 12:28:41 +0000 Subject: [PATCH 3/3] bug fix --- .../partner/compose/regist-compose.component.html | 6 +++++- .../partner/compose/regist-compose.component.ts | 14 +++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/app/modules/admin/member/partner/compose/regist-compose.component.html b/src/app/modules/admin/member/partner/compose/regist-compose.component.html index 109a5cd..9e44ee9 100644 --- a/src/app/modules/admin/member/partner/compose/regist-compose.component.html +++ b/src/app/modules/admin/member/partner/compose/regist-compose.component.html @@ -32,7 +32,11 @@ 회원 아이디 - + diff --git a/src/app/modules/admin/member/partner/compose/regist-compose.component.ts b/src/app/modules/admin/member/partner/compose/regist-compose.component.ts index 6ec4439..8e3b966 100644 --- a/src/app/modules/admin/member/partner/compose/regist-compose.component.ts +++ b/src/app/modules/admin/member/partner/compose/regist-compose.component.ts @@ -1,6 +1,7 @@ import { Component, Inject, OnInit, ViewEncapsulation } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; +import { IdentityService } from 'app/modules/polyglot/member/services/identity.service'; export interface RegistComposeData { title: string; @@ -45,7 +46,8 @@ export class RegistComposeComponent implements OnInit { constructor( public matDialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: RegistComposeData, - private _formBuilder: FormBuilder + private _formBuilder: FormBuilder, + private _identityService: IdentityService ) {} // ----------------------------------------------------------------------------------------------------- @@ -116,4 +118,14 @@ export class RegistComposeComponent implements OnInit { * Send the message */ send(): void {} + + __checkSigninId(event: FocusEvent): void { + const signinId = this.composeForm.get('signinId')?.value; + // console.log(event, '::', signinId); + this._identityService + .checkUsernameForDuplication(signinId) + .then((isUse: boolean) => { + console.log('check username: ', isUse); + }); + } }