浏览代码

考试界面添加课程名称

Michael Wang 4 年之前
父节点
当前提交
7c72b27717
共有 1 个文件被更改,包括 13 次插入1 次删除
  1. 13 1
      src/features/OnlineExam/Examing/ExamingHome.vue

+ 13 - 1
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -2,7 +2,12 @@
   <div v-if="exam && examQuestion()" :key="exam.id" class="container">
     <div class="header">
       <RemainTime></RemainTime>
-      <OverallProgress :exam-question-list="examQuestionList"></OverallProgress>
+      <div style="display: flex; flex-direction: column">
+        <div style="margin-bottom: 12px">{{ courseName }}</div>
+        <OverallProgress
+          :exam-question-list="examQuestionList"
+        ></OverallProgress>
+      </div>
       <div>
         {{ $store.state.user.displayName }} -&nbsp;
         {{ $store.state.user.studentCodeList.join(",") }}
@@ -141,6 +146,7 @@ export default {
       startVideoAfterDelay: false,
       PRODUCTION: process.env.NODE_ENV === "production",
       disableExamingBecauseRemoteApp: false,
+      courseName: "",
     };
   },
   computed: {
@@ -384,6 +390,7 @@ export default {
         { data: exam },
         { data: paperStruct },
         { data: examQuestionListOrig },
+        { data: courseName },
       ] = await Promise.all([
         this.$http.get(
           "/api/ecs_exam_work/exam/weixinAnswerEnabled/" +
@@ -408,7 +415,12 @@ export default {
             this.$route.params.examRecordDataId
         ),
         this.$http.get("/api/ecs_oe_student/examQuestion/findExamQuestionList"),
+        this.$http.get(
+          "/api/ecs_oe_student/examControl/courseName/" +
+            this.$route.params.examRecordDataId
+        ),
       ]);
+      this.courseName = courseName;
 
       let initFaceLivenessResult = null;
       if (faceLivenessEnabled) {