From 6fb736c31e3a01679f2a0fb8669ed30deee71c3a Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Tue, 22 Dec 2020 11:05:52 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E8=80=83=E7=94=9F?= =?UTF-8?q?=E8=80=83=E8=AF=95=E4=B8=BB=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/app-routing.module.ts | 4 ++- .../examination-details.component.html | 1 + .../examination-details.component.scss | 0 .../examination-details.component.spec.ts | 25 +++++++++++++++++++ .../examination-details.component.ts | 15 +++++++++++ .../student-index.component.html | 2 +- .../student-index/student-index.component.ts | 4 +++ src/app/student/student.module.ts | 3 ++- 8 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 src/app/student/examination-details/examination-details.component.html create mode 100644 src/app/student/examination-details/examination-details.component.scss create mode 100644 src/app/student/examination-details/examination-details.component.spec.ts create mode 100644 src/app/student/examination-details/examination-details.component.ts diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index bfe5587..726e301 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -16,6 +16,7 @@ import { LockscreenComponent } from './pages/lockscreen/lockscreen.component'; import {AuthGuard} from './auth.guard' import { CreateTestScoreComponent } from './examiner/create-test-score/create-test-score.component'; import { CollectionToolsComponent } from './ui/collection-tools/collection-tools.component'; +import { ExaminationDetailsComponent } from './student/examination-details/examination-details.component'; @@ -30,7 +31,8 @@ const routes: Routes = [ ] }, { path:'examiner/create-test-score', component:CreateTestScoreComponent,canActivate: [AuthGuard],}, //创建试卷具体分数页面 - { path:'canvasTool', component:CollectionToolsComponent,canActivate: [AuthGuard], }, //编制工具 + { path:'canvasTool', component:CollectionToolsComponent,canActivate: [AuthGuard], }, //考官编制工具 + { path:'examinationDetails', component:ExaminationDetailsComponent,canActivate: [AuthGuard], }, //考生试卷 考试基本信息/作战部署 { path:'adminLogin', component:LoginComponent}, //管理员登录路由 { path:'login', component:LockscreenComponent}, //教员学员登录路由 diff --git a/src/app/student/examination-details/examination-details.component.html b/src/app/student/examination-details/examination-details.component.html new file mode 100644 index 0000000..5431c31 --- /dev/null +++ b/src/app/student/examination-details/examination-details.component.html @@ -0,0 +1 @@ +

11111123

diff --git a/src/app/student/examination-details/examination-details.component.scss b/src/app/student/examination-details/examination-details.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/student/examination-details/examination-details.component.spec.ts b/src/app/student/examination-details/examination-details.component.spec.ts new file mode 100644 index 0000000..2fbf2c5 --- /dev/null +++ b/src/app/student/examination-details/examination-details.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ExaminationDetailsComponent } from './examination-details.component'; + +describe('ExaminationDetailsComponent', () => { + let component: ExaminationDetailsComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ExaminationDetailsComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ExaminationDetailsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/student/examination-details/examination-details.component.ts b/src/app/student/examination-details/examination-details.component.ts new file mode 100644 index 0000000..4597353 --- /dev/null +++ b/src/app/student/examination-details/examination-details.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-examination-details', + templateUrl: './examination-details.component.html', + styleUrls: ['./examination-details.component.scss'] +}) +export class ExaminationDetailsComponent 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 index 5e2e9a6..2266d4e 100644 --- a/src/app/student/student-index/student-index.component.html +++ b/src/app/student/student-index/student-index.component.html @@ -24,7 +24,7 @@ {{item.startTime|date:'yyyy-MM-dd HH:mm'}} {{item.endTime|date:'yyyy-MM-dd HH:mm'}} {{item.duration}}分钟 - 参加考试 + 参加考试 diff --git a/src/app/student/student-index/student-index.component.ts b/src/app/student/student-index/student-index.component.ts index 18b1f79..2292bc2 100644 --- a/src/app/student/student-index/student-index.component.ts +++ b/src/app/student/student-index/student-index.component.ts @@ -90,4 +90,8 @@ export class StudentIndexComponent implements OnInit { console.log(this.timecha) } + //参加考试 + takeTest (e) { + window.open(`/examinationDetails?testId=${e.id}`) + } } diff --git a/src/app/student/student.module.ts b/src/app/student/student.module.ts index 71bf87c..83e1ef7 100644 --- a/src/app/student/student.module.ts +++ b/src/app/student/student.module.ts @@ -52,10 +52,11 @@ 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'; +import { ExaminationDetailsComponent } from './examination-details/examination-details.component'; @NgModule({ - declarations: [StudentIndexComponent, StudentExamRecordComponent], + declarations: [StudentIndexComponent, StudentExamRecordComponent, ExaminationDetailsComponent], imports: [ CommonModule, StudentRoutingModule,