You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { HttpClient } from '@angular/common/http';
|
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
import { MatDialog } from '@angular/material/dialog';
|
|
|
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
|
|
import { ActivatedRoute } from '@angular/router';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-examination-details',
|
|
|
|
templateUrl: './examination-details.component.html',
|
|
|
|
styleUrls: ['./examination-details.component.scss']
|
|
|
|
})
|
|
|
|
export class ExaminationDetailsComponent implements OnInit {
|
|
|
|
|
|
|
|
constructor(public http:HttpClient,public dialog: MatDialog,public snackBar: MatSnackBar,public route:ActivatedRoute) { }
|
|
|
|
|
|
|
|
async ngOnInit(): Promise<void> {
|
|
|
|
await this.getTestInfo()
|
|
|
|
console.log(2)
|
|
|
|
}
|
|
|
|
|
|
|
|
paperData:any//试卷信息
|
|
|
|
//获取考卷
|
|
|
|
async getTestInfo () {
|
|
|
|
let id = this.route.snapshot.queryParams.paperId
|
|
|
|
await new Promise((resolve, reject) => {
|
|
|
|
this.http.get(`/api/Papers/${id}`).subscribe((data:any)=>{
|
|
|
|
console.log(data)
|
|
|
|
this.paperData = data
|
|
|
|
resolve(1)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//获得单位预案设定
|
|
|
|
getUnitPlans(){
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|