فهرست منبع

修复考试时间,考后说明。过滤提交文件类型

Michael Wang 6 سال پیش
والد
کامیت
869d8c5921

+ 1 - 1
src/features/OfflineExam/OfflineExamUpload.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div>
   <div>
-    <Upload :headers="headers" :data="{fileType: fileType}" :before-upload="handleBeforeUpload" :action="'/api/ecs_oe_student/offlineExam/submitPaper?examRecordDataId='+course.examRecordDataId" :max-size="1024*30" :format="['pdf','zip']" :on-format-error="handleFormatError" :on-exceeded-size="handleMaxSize" :on-success="handleSuccess" :on-error="handleError" :show-upload-list="false">
+    <Upload :headers="headers" :data="{fileType: fileType}" :before-upload="handleBeforeUpload" :action="'/api/ecs_oe_student/offlineExam/submitPaper?examRecordDataId='+course.examRecordDataId" :max-size="1024*30" :format="['pdf','zip']" accept="application/zip,application/pdf" :on-format-error="handleFormatError" :on-exceeded-size="handleMaxSize" :on-success="handleSuccess" :on-error="handleError" :show-upload-list="false">
       <Button icon="ios-cloud-upload-outline" class="qm-primary-button" style="width: 100%;">上传作答</Button>
       <Button icon="ios-cloud-upload-outline" class="qm-primary-button" style="width: 100%;">上传作答</Button>
     </Upload>
     </Upload>
     <div v-if="file !== null">待上传文件: {{ file.name }}
     <div v-if="file !== null">待上传文件: {{ file.name }}

+ 1 - 1
src/features/OnlineExam/Examing/ExamingEnd.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
 
 
-  <div class="container" v-if="afterExamRemark">
+  <div class="container" v-if="afterExamRemark !== null">
     <div class="instructions">
     <div class="instructions">
       <h1 class="">考试已结束</h1>
       <h1 class="">考试已结束</h1>
       <div><img class="user-avatar" :src="user.photoPath" alt="无底照" /></div>
       <div><img class="user-avatar" :src="user.photoPath" alt="无底照" /></div>

+ 4 - 2
src/features/OnlineExam/Examing/RemainTime.vue

@@ -16,9 +16,8 @@ export default {
   },
   },
   async mounted() {
   async mounted() {
     this.heartbeatErrorNum = 0;
     this.heartbeatErrorNum = 0;
-    this.getRemainTimeFromServer();
     this.first = true;
     this.first = true;
-    this.remainTime += 60 * 1000; //补偿心跳
+    this.getRemainTimeFromServer();
     this.intervalA = setInterval(() => {
     this.intervalA = setInterval(() => {
       if (this.first) {
       if (this.first) {
         // 跳过第一次
         // 跳过第一次
@@ -44,6 +43,9 @@ export default {
           "/api/ecs_oe_student/examControl/examHeartbeat"
           "/api/ecs_oe_student/examControl/examHeartbeat"
         );
         );
         this.remainTime = res.data;
         this.remainTime = res.data;
+        if (this.first) {
+          this.remainTime += 60 * 1000; //补偿心跳
+        }
         this.heartbeatErrorNum = 0;
         this.heartbeatErrorNum = 0;
       } catch (e) {
       } catch (e) {
         this.heartbeatErrorNum++;
         this.heartbeatErrorNum++;

+ 1 - 1
src/features/OnlineExam/OnlineExamOverview.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
 
 
-  <div class="container" v-if="beforeExamRemark && startInfo && paperStruct">
+  <div class="container" v-if="startInfo && paperStruct">
     <div class="instructions">
     <div class="instructions">
       <h1 class="">考试说明</h1>
       <h1 class="">考试说明</h1>
       <div class="" style="text-align: left;  padding-bottom: 20px">
       <div class="" style="text-align: left;  padding-bottom: 20px">