From a468b08346a5117729ef5597658aa5a0fedae8c1 Mon Sep 17 00:00:00 2001
From: SHAOJIAHAO <55341701@qq.com>
Date: Wed, 23 Dec 2020 10:14:50 +0800
Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=AE=8C=E5=96=84=E8=80=83?=
=?UTF-8?q?=E7=94=9F=E8=8E=B7=E5=8F=96=E8=AF=95=E5=8D=B7=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E9=A1=BA=E5=BA=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../examination-details.component.html | 4 +++-
.../examination-details.component.ts | 21 ++++++++++++++-----
2 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/src/app/student/examination-details/examination-details.component.html b/src/app/student/examination-details/examination-details.component.html
index aa1ab18..274315c 100644
--- a/src/app/student/examination-details/examination-details.component.html
+++ b/src/app/student/examination-details/examination-details.component.html
@@ -7,7 +7,9 @@
-
+
+
+
diff --git a/src/app/student/examination-details/examination-details.component.ts b/src/app/student/examination-details/examination-details.component.ts
index 5effe16..af843a9 100644
--- a/src/app/student/examination-details/examination-details.component.ts
+++ b/src/app/student/examination-details/examination-details.component.ts
@@ -13,16 +13,27 @@ export class ExaminationDetailsComponent implements OnInit {
constructor(public http:HttpClient,public dialog: MatDialog,public snackBar: MatSnackBar,public route:ActivatedRoute) { }
- ngOnInit(): void {
- this.getTestInfo()
+ async ngOnInit(): Promise {
+ await this.getTestInfo()
+ console.log(2)
}
+ paperData:any//试卷信息
//获取考卷
- getTestInfo () {
+ async getTestInfo () {
let id = this.route.snapshot.queryParams.paperId
- this.http.get(`/api/Papers/${id}`).subscribe((data:any)=>{
- console.log(data)
+ await new Promise((resolve, reject) => {
+ this.http.get(`/api/Papers/${id}`).subscribe((data:any)=>{
+ console.log(data)
+ this.paperData = data
+ resolve(1)
+ })
})
+
}
+ //获得单位预案设定
+ getUnitPlans(){
+
+ }
}