diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index bd6ecc8..bfe5587 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,3 +1,11 @@ +/* + * @Descripttion: + * @version: + * @Author: sueRimn + * @Date: 2020-12-20 10:30:23 + * @LastEditors: sueRimn + * @LastEditTime: 2020-12-20 15:36:30 + */ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { LoginComponent } from './pages/login/login.component'; @@ -17,6 +25,7 @@ const routes: Routes = [ path:'home',component:NavigationComponent,canActivate: [AuthGuard],//守卫验证 children:[ {path:'',loadChildren:() => import('./examiner/examiner.module').then(m => m.ExaminerModule)}, + {path:'',loadChildren:() => import('./student/student.module').then(m => m.StudentModule)}, {path:'',loadChildren:() => import('./ui/ui.module').then(m => m.UiModule)} ] }, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 126f803..9aa784e 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,3 +1,11 @@ +/* + * @Descripttion: + * @version: + * @Author: sueRimn + * @Date: 2020-12-12 09:14:54 + * @LastEditors: sueRimn + * @LastEditTime: 2020-12-20 15:34:49 + */ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; @@ -20,7 +28,9 @@ import { ComponentServiceService } from './component-service.service'; import { registerLocaleData } from '@angular/common'; import zh from '@angular/common/locales/zh'; import { ExaminerModule } from './examiner/examiner.module'; +import { StudentModule} from './student/student.module' registerLocaleData(zh); +import { from } from 'rxjs'; @NgModule({ declarations: [ @@ -37,7 +47,8 @@ registerLocaleData(zh); PagesModule, FormsModule, HttpClientModule, - ExaminerModule + ExaminerModule, + StudentModule ], providers: [httpInterceptorProviders, CacheTokenService,TreeService,ComponentServiceService], bootstrap: [AppComponent] diff --git a/src/app/navigation/navigation.component.html b/src/app/navigation/navigation.component.html index f389b85..7c6d997 100644 --- a/src/app/navigation/navigation.component.html +++ b/src/app/navigation/navigation.component.html @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-12-10 10:21:40 * @LastEditors: sueRimn - * @LastEditTime: 2020-12-15 14:32:13 + * @LastEditTime: 2020-12-20 16:32:02 --> @@ -41,6 +41,14 @@ + diff --git a/src/app/student/student-exam-record/student-exam-record.component.html b/src/app/student/student-exam-record/student-exam-record.component.html new file mode 100644 index 0000000..00e0b82 --- /dev/null +++ b/src/app/student/student-exam-record/student-exam-record.component.html @@ -0,0 +1 @@ +

student-exam-record works!

diff --git a/src/app/student/student-exam-record/student-exam-record.component.scss b/src/app/student/student-exam-record/student-exam-record.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/student/student-exam-record/student-exam-record.component.spec.ts b/src/app/student/student-exam-record/student-exam-record.component.spec.ts new file mode 100644 index 0000000..124461f --- /dev/null +++ b/src/app/student/student-exam-record/student-exam-record.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { StudentExamRecordComponent } from './student-exam-record.component'; + +describe('StudentExamRecordComponent', () => { + let component: StudentExamRecordComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ StudentExamRecordComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(StudentExamRecordComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/student/student-exam-record/student-exam-record.component.ts b/src/app/student/student-exam-record/student-exam-record.component.ts new file mode 100644 index 0000000..223b0d7 --- /dev/null +++ b/src/app/student/student-exam-record/student-exam-record.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-student-exam-record', + templateUrl: './student-exam-record.component.html', + styleUrls: ['./student-exam-record.component.scss'] +}) +export class StudentExamRecordComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +} diff --git a/src/app/student/student-index/student-index.component.html b/src/app/student/student-index/student-index.component.html new file mode 100644 index 0000000..6db07b8 --- /dev/null +++ b/src/app/student/student-index/student-index.component.html @@ -0,0 +1 @@ +

student-index works!

diff --git a/src/app/student/student-index/student-index.component.scss b/src/app/student/student-index/student-index.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/student/student-index/student-index.component.spec.ts b/src/app/student/student-index/student-index.component.spec.ts new file mode 100644 index 0000000..3d9ffad --- /dev/null +++ b/src/app/student/student-index/student-index.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { StudentIndexComponent } from './student-index.component'; + +describe('StudentIndexComponent', () => { + let component: StudentIndexComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ StudentIndexComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(StudentIndexComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/student/student-index/student-index.component.ts b/src/app/student/student-index/student-index.component.ts new file mode 100644 index 0000000..2492f3b --- /dev/null +++ b/src/app/student/student-index/student-index.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-student-index', + templateUrl: './student-index.component.html', + styleUrls: ['./student-index.component.scss'] +}) +export class StudentIndexComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +} diff --git a/src/app/student/student-routing.module.ts b/src/app/student/student-routing.module.ts new file mode 100644 index 0000000..8e6d8d1 --- /dev/null +++ b/src/app/student/student-routing.module.ts @@ -0,0 +1,24 @@ +/* + * @Descripttion: + * @version: + * @Author: sueRimn + * @Date: 2020-12-20 11:21:49 + * @LastEditors: sueRimn + * @LastEditTime: 2020-12-20 16:31:55 + */ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; +import { StudentIndexComponent} from './student-index/student-index.component' +import { StudentExamRecordComponent} from './student-exam-record/student-exam-record.component' + + +const routes: Routes = [ + { path: 'student-index', component:StudentIndexComponent }, + { path: 'student-exarecord', component:StudentExamRecordComponent }, +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class StudentRoutingModule { } diff --git a/src/app/student/student.module.ts b/src/app/student/student.module.ts new file mode 100644 index 0000000..71bf87c --- /dev/null +++ b/src/app/student/student.module.ts @@ -0,0 +1,112 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import {A11yModule} from '@angular/cdk/a11y'; +import {DragDropModule} from '@angular/cdk/drag-drop'; +import {PortalModule} from '@angular/cdk/portal'; +import {ScrollingModule} from '@angular/cdk/scrolling'; +import {CdkStepperModule} from '@angular/cdk/stepper'; +import {CdkTableModule} from '@angular/cdk/table'; +import {CdkTreeModule} from '@angular/cdk/tree'; +import {MatAutocompleteModule} from '@angular/material/autocomplete'; +import {MatBadgeModule} from '@angular/material/badge'; +import {MatBottomSheetModule} from '@angular/material/bottom-sheet'; +import {MatButtonModule} from '@angular/material/button'; +import {MatButtonToggleModule} from '@angular/material/button-toggle'; +import {MatCardModule} from '@angular/material/card'; +import {MatCheckboxModule} from '@angular/material/checkbox'; +import {MatChipsModule} from '@angular/material/chips'; +import {MatStepperModule} from '@angular/material/stepper'; +import {MatDatepickerModule} from '@angular/material/datepicker'; +import {MatDialogModule} from '@angular/material/dialog'; +import {MatDividerModule} from '@angular/material/divider'; +import {MatExpansionModule} from '@angular/material/expansion'; +import {MatGridListModule} from '@angular/material/grid-list'; +import {MatIconModule} from '@angular/material/icon'; +import {MatInputModule} from '@angular/material/input'; +import {MatListModule} from '@angular/material/list'; +import {MatMenuModule} from '@angular/material/menu'; +import {MatNativeDateModule, MatRippleModule, MatOption} from '@angular/material/core'; +import {MatPaginatorModule} from '@angular/material/paginator'; +import {MatProgressBarModule} from '@angular/material/progress-bar'; +import {MatProgressSpinnerModule} from '@angular/material/progress-spinner'; +import {MatRadioModule} from '@angular/material/radio'; +import {MatSelectModule} from '@angular/material/select'; +import {MatSidenavModule} from '@angular/material/sidenav'; +import {MatSliderModule} from '@angular/material/slider'; +import {MatSlideToggleModule} from '@angular/material/slide-toggle'; +import {MatSnackBarModule} from '@angular/material/snack-bar'; +import {MatSortModule} from '@angular/material/sort'; +import {MatTableModule} from '@angular/material/table'; +import {MatTabsModule} from '@angular/material/tabs'; +import {MatToolbarModule} from '@angular/material/toolbar'; +import {MatTooltipModule} from '@angular/material/tooltip'; +import {MatTreeModule} from '@angular/material/tree'; +import { ReactiveFormsModule, FormsModule } from '@angular/forms'; +import { MatFormFieldModule } from '@angular/material/form-field'; +import { MatPaginatorIntl } from '@angular/material/paginator'; +import { myPaginator } from '../ui/my-paginator'; +import { NavigationModule } from '../navigation/navigation.module'; +import { NzTreeModule } from 'ng-zorro-antd/tree'; +import { NzDatePickerModule } from 'ng-zorro-antd/date-picker'; + +import { StudentRoutingModule } from './student-routing.module'; +import { StudentIndexComponent } from './student-index/student-index.component'; +import { StudentExamRecordComponent } from './student-exam-record/student-exam-record.component'; + + +@NgModule({ + declarations: [StudentIndexComponent, StudentExamRecordComponent], + imports: [ + CommonModule, + StudentRoutingModule, + A11yModule, + CdkStepperModule, + CdkTableModule, + CdkTreeModule, + DragDropModule, + MatAutocompleteModule, + MatBadgeModule, + MatBottomSheetModule, + MatButtonModule, + MatButtonToggleModule, + MatCardModule, + MatCheckboxModule, + MatChipsModule, + MatStepperModule, + MatDatepickerModule, + MatDialogModule, + MatDividerModule, + MatExpansionModule, + MatGridListModule, + MatIconModule, + MatInputModule, + MatListModule, + MatMenuModule, + MatNativeDateModule, + MatPaginatorModule, + MatProgressBarModule, + MatProgressSpinnerModule, + MatRadioModule, + MatRippleModule, + MatSelectModule, + MatSidenavModule, + MatSliderModule, + MatSlideToggleModule, + MatSnackBarModule, + MatSortModule, + MatTableModule, + MatTabsModule, + MatToolbarModule, + MatTooltipModule, + MatTreeModule, + PortalModule, + ScrollingModule, + ReactiveFormsModule, + FormsModule, + NavigationModule, + NzTreeModule, + NzDatePickerModule, + ], + providers: [ { provide: MatPaginatorIntl, useValue: myPaginator() } ] +}) +export class StudentModule { } diff --git a/src/assets/images/examrecord.png b/src/assets/images/examrecord.png new file mode 100644 index 0000000..cf55a7d Binary files /dev/null and b/src/assets/images/examrecord.png differ diff --git a/src/assets/images/joinexam.png b/src/assets/images/joinexam.png new file mode 100644 index 0000000..aa1a862 Binary files /dev/null and b/src/assets/images/joinexam.png differ