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 94d8247..e8e4ade 100644 --- a/src/app/modules/admin/member/partner/components/list.component.html +++ b/src/app/modules/admin/member/partner/components/list.component.html @@ -99,7 +99,9 @@ > 수수료설정 - + diff --git a/src/app/modules/admin/member/partner/components/list.component.ts b/src/app/modules/admin/member/partner/components/list.component.ts index f2b3a92..4bf6e8a 100644 --- a/src/app/modules/admin/member/partner/components/list.component.ts +++ b/src/app/modules/admin/member/partner/components/list.component.ts @@ -35,6 +35,7 @@ import { ActivatedRoute, Router } from '@angular/router'; import { RegistComposeComponent } from '../compose/regist-compose.component'; import { CashComposeComponent } from '../compose/cash-compose.component'; import { CommissionComposeComponent } from '../compose/commission-compose.component'; +import { CompComposeComponent } from '../compose/comp-compose.component'; import { MatDialog } from '@angular/material/dialog'; import { SiteService } from 'app/modules/polyglot/domain/services/site.service'; @@ -266,6 +267,15 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { console.log('Compose dialog was closed!'); }); } + __onClickComp(event: MouseEvent): void { + const dialogRef = this._matDialog.open(CompComposeComponent, { + data: { price: '', memo: '' }, + }); + + dialogRef.afterClosed().subscribe((result) => { + console.log('Compose dialog was closed!'); + }); + } __getRateTooltop(): string { const tempRate = 0; diff --git a/src/app/modules/admin/member/partner/compose/comp-compose.component.html b/src/app/modules/admin/member/partner/compose/comp-compose.component.html new file mode 100644 index 0000000..e871fda --- /dev/null +++ b/src/app/modules/admin/member/partner/compose/comp-compose.component.html @@ -0,0 +1,88 @@ +
+ +
+
콤프 충환전
+ +
+ + +
+
+ 콤프구분 + + + 콤프 + + +
+
+ 추가/삭제 + + + 지급 + + + 회수 + + +
+ + + 입력콤프 + + + + + + + 메모 + + + + + + + +
+
+ + + + +
+
+
+
diff --git a/src/app/modules/admin/member/partner/compose/comp-compose.component.ts b/src/app/modules/admin/member/partner/compose/comp-compose.component.ts new file mode 100644 index 0000000..2d4fba8 --- /dev/null +++ b/src/app/modules/admin/member/partner/compose/comp-compose.component.ts @@ -0,0 +1,94 @@ +import { + ChangeDetectorRef, + Component, + Inject, + OnInit, + ViewEncapsulation, +} from '@angular/core'; +import { FormBuilder, FormGroup, Validators } from '@angular/forms'; +import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; +import { SiteService } from 'app/modules/polyglot/domain/services/site.service'; +import { IdentityService } from 'app/modules/polyglot/member/services/identity.service'; +import { Site } from 'app/modules/protobuf/models/domain/site_pb'; + +export interface CompComposeData { + price: string; + memo: string; +} +export interface CompComposeResult { + price: string; + memo: string; +} + +@Component({ + selector: 'app-comp-compose', + templateUrl: './comp-compose.component.html', + encapsulation: ViewEncapsulation.None, +}) +export class CompComposeComponent implements OnInit { + composeForm!: FormGroup; + sites: any[] = []; + // quillModules: any = { + // toolbar: [ + // ['bold', 'italic', 'underline'], + // [{ align: [] }, { list: 'ordered' }, { list: 'bullet' }], + // ['clean'], + // ], + // }; + + /** + * Constructor + */ + constructor( + public matDialogRef: MatDialogRef, + @Inject(MAT_DIALOG_DATA) public data: CompComposeData, + private _formBuilder: FormBuilder, + private _identityService: IdentityService, + private _changeDetectorRef: ChangeDetectorRef + ) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Lifecycle hooks + // ----------------------------------------------------------------------------------------------------- + + /** + * On init + */ + ngOnInit(): void { + // Create the form + this.composeForm = this._formBuilder.group({ + price: ['', [Validators.required]], + memo: ['', [Validators.required]], + }); + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Save and close + */ + saveAndClose(): void { + // Save the message as a draft + this.saveAsDraft(); + + // Close the dialog + this.matDialogRef.close(); + } + + /** + * Discard the message + */ + discard(): void {} + + /** + * Save the message as a draft + */ + saveAsDraft(): void {} + + /** + * Send the message + */ + send(): void {} +} diff --git a/src/app/modules/admin/member/partner/compose/index.ts b/src/app/modules/admin/member/partner/compose/index.ts index 9c9216f..a768fea 100644 --- a/src/app/modules/admin/member/partner/compose/index.ts +++ b/src/app/modules/admin/member/partner/compose/index.ts @@ -1,9 +1,11 @@ import { RegistComposeComponent } from './regist-compose.component'; import { CashComposeComponent } from './cash-compose.component'; import { CommissionComposeComponent } from './commission-compose.component'; +import { CompComposeComponent } from './comp-compose.component'; export const COMPOSE = [ RegistComposeComponent, CashComposeComponent, CommissionComposeComponent, + CompComposeComponent, ]; diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index b05c7e4..16298ab 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -4,7 +4,7 @@ export const environment: Environment = { production: true, nats: { connectionOptions: { - servers: ['ws://192.168.50.208:8088'], + servers: ['ws://192.168.50.200:8088'], }, }, }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index f38e7dd..ed141e9 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -8,7 +8,7 @@ export const environment: Environment = { production: false, nats: { connectionOptions: { - servers: ['ws://192.168.50.208:8088'], + servers: ['ws://192.168.50.200:8088'], }, }, };