Ver Fonte

fix 离线考试

Michael Wang há 6 anos atrás
pai
commit
ee91e42f64

+ 2 - 2
src/features/OfflineExam/OfflineExamHome.vue

@@ -15,7 +15,7 @@
 import EcsOfflineList from "./OfflineExamList.vue";
 
 export default {
-  name: "OnlineExamHome",
+  name: "OfflineExamHome",
   data() {
     return {
       courses: []
@@ -38,7 +38,7 @@ export default {
         examStudentId: c.examStudentId,
         startTime: c.startTime,
         endTime: c.endTime,
-        fileUrl: c.studentSubjectiveHtml,
+        offlineFileUrl: c.offlineFileUrl,
         paperId: c.paperId
       }));
     }

+ 2 - 2
src/features/OfflineExam/OfflineExamList.vue

@@ -16,8 +16,8 @@
           <td>{{ course.specialtyName }}</td>
           <td>{{ course.startTime }} <br> ~ <br> {{ course.endTime }}</td>
           <td>
-            <div v-if="course.fileUrl">
-              <a :href="course.fileUrl" download>
+            <div v-if="course.offlineFileUrl">
+              <a :href="course.offlineFileUrl" download>
                 <i-icon type="ios-cloud-download"></i-icon>下载作答
               </a>
             </div>