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,