diff --git a/src/app/modules/beteran/compose/compose.module.ts b/src/app/modules/beteran/compose/compose.module.ts index 701bf13..ceef0b5 100644 --- a/src/app/modules/beteran/compose/compose.module.ts +++ b/src/app/modules/beteran/compose/compose.module.ts @@ -8,6 +8,7 @@ import { MatInputModule } from '@angular/material/input'; import { MatDialogModule } from '@angular/material/dialog'; import { MatSelectModule } from '@angular/material/select'; import { MatButtonToggleModule } from '@angular/material/button-toggle'; +import { MatExpansionModule } from '@angular/material/expansion'; import { FuseCardModule } from '@fuse/components/card'; import { SharedModule } from 'app/shared/shared.module'; @@ -28,6 +29,7 @@ import { COMPOSE } from './compose'; MatDialogModule, MatSelectModule, MatButtonToggleModule, + MatExpansionModule, FuseCardModule, SharedModule, diff --git a/src/app/modules/beteran/compose/compose/notice-compose.component.html b/src/app/modules/beteran/compose/compose/notice-compose.component.html index bea4966..06bb438 100644 --- a/src/app/modules/beteran/compose/compose/notice-compose.component.html +++ b/src/app/modules/beteran/compose/compose/notice-compose.component.html @@ -3,7 +3,7 @@
-
Notice
+
공지사항
- -
- - - To - -
- - Cc - - - Bcc - + + +
+ +
+ 번호 + 내용 + 날짜 +
+ + + + +      + {{ info.idx }}           + {{ info.title }} +            +            +            + {{ info.applicationDate }} + +
+ {{ info.contents }} +
+
+ + +
+
+
+
+ + +
+ There are no data!
- - - - - Cc - - - - - - Bcc - - - - - - Subject - - - - - - - -
-
- - - - - - - - -
- -
- - - - - - -
-
+
diff --git a/src/app/modules/beteran/compose/compose/notice-compose.component.ts b/src/app/modules/beteran/compose/compose/notice-compose.component.ts index 265a577..8825175 100644 --- a/src/app/modules/beteran/compose/compose/notice-compose.component.ts +++ b/src/app/modules/beteran/compose/compose/notice-compose.component.ts @@ -5,6 +5,15 @@ import { MatDialogRef } from '@angular/material/dialog'; @Component({ selector: 'notice-compose', templateUrl: './notice-compose.component.html', + styles: [ + /* language=SCSS */ + ` + .notice-grid { + /* 번호 내용 날짜 */ + grid-template-columns: 100px 250px 100px; + } + `, + ], encapsulation: ViewEncapsulation.None, }) export class NoticeComposeComponent implements OnInit { @@ -29,6 +38,21 @@ export class NoticeComposeComponent implements OnInit { private _formBuilder: FormBuilder ) {} + notice = [ + { + idx: '1', + title: '계좌등록안내', + contents: '안녕하세요. 운영진입니다dkfjkjdfkjdkfjfkjdkjkdfjdkjk', + applicationDate: '2022.08.23', + }, + { + idx: '2', + title: '오토프로그램 이용안내', + contents: '안녕하세요. 운영진입니다', + applicationDate: '2022.08.23', + }, + ]; + // ----------------------------------------------------------------------------------------------------- // @ Lifecycle hooks // ----------------------------------------------------------------------------------------------------- @@ -91,4 +115,14 @@ export class NoticeComposeComponent implements OnInit { * Send the message */ send(): void {} + + /** + * Track by function for ngFor loops + * + * @param index + * @param item + */ + __trackByFn(index: number, item: any): any { + return item.id || index; + } }