Преглед на файлове

活体检测时间段默认值

Michael Wang преди 4 години
родител
ревизия
f5d3508cd3
променени са 1 файла, в които са добавени 6 реда и са изтрити 3 реда
  1. 6 3
      src/features/examwork/ExamManagement/ExamEdit.vue

+ 6 - 3
src/features/examwork/ExamManagement/ExamEdit.vue

@@ -244,9 +244,9 @@
                 v-model.trim="form.inProcessLivenessFixedRange[1]"
                 style="width: 150px;"
               />
-              <span style="color: red;"
-                >*活体验证将该时间段内随机出现,且时间段设置不能超过冻结时间</span
-              >
+              <span style="color: red;">
+                *活体验证将该时间段内随机出现,且时间段设置不能超过冻结时间
+              </span>
             </el-form-item>
           </el-row>
           <el-row v-if="form.inProcessLivenessVerify">
@@ -398,6 +398,9 @@ export default {
     if (this.isEdit) {
       const res = await getExamDetail({ id: this.examId });
       this.form = { ...this.form, ...res.data.data };
+      if (!this.form.inProcessLivenessFixedRange) {
+        this.form.inProcessLivenessFixedRange = [0, 0];
+      }
       this.form.startEndTimeProxy = [this.form.startTime, this.form.endTime];
       this.form.monitorProxy = !!this.form.monitorVideoSource;
     }