Browse Source

[完善] 考生考试主页面

master
陈鹏飞 4 years ago
parent
commit
6fb736c31e
  1. 4
      src/app/app-routing.module.ts
  2. 1
      src/app/student/examination-details/examination-details.component.html
  3. 0
      src/app/student/examination-details/examination-details.component.scss
  4. 25
      src/app/student/examination-details/examination-details.component.spec.ts
  5. 15
      src/app/student/examination-details/examination-details.component.ts
  6. 2
      src/app/student/student-index/student-index.component.html
  7. 4
      src/app/student/student-index/student-index.component.ts
  8. 3
      src/app/student/student.module.ts

4
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}, //教员学员登录路由

1
src/app/student/examination-details/examination-details.component.html

@ -0,0 +1 @@
<p>11111123</p>

0
src/app/student/examination-details/examination-details.component.scss

25
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<ExaminationDetailsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ExaminationDetailsComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ExaminationDetailsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

15
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 {
}
}

2
src/app/student/student-index/student-index.component.html

@ -24,7 +24,7 @@
<td>{{item.startTime|date:'yyyy-MM-dd HH:mm'}}</td>
<td>{{item.endTime|date:'yyyy-MM-dd HH:mm'}}</td>
<td>{{item.duration}}分钟</td>
<td style="color: #07CDCF;cursor: pointer;">参加考试</td>
<td style="color: #07CDCF;cursor: pointer;" (click)='takeTest(item)'>参加考试</td>
</tr>
</tbody>

4
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}`)
}
}

3
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,

Loading…
Cancel
Save