From cec1c3b64cbc473024b3d2ba3aeb72c88629ba84 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 21 Oct 2021 09:31:10 +0800
Subject: [PATCH] +去掉考试管理 +题目行间距 +实操选完才进行下一题

---
 src/views/startexam/index.vue |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/src/views/startexam/index.vue b/src/views/startexam/index.vue
index 190a0a3..0de0288 100644
--- a/src/views/startexam/index.vue
+++ b/src/views/startexam/index.vue
@@ -585,6 +585,30 @@
             });
             return;
           }
+          //  if (this.getAnswer() == "") {
+          //   this.$message({
+          //     message: "请选择答案",
+          //     type: "warning",
+          //   });
+          //   return;
+          // }
+          // console.log(this.getAnswer(), this.query.type);
+          if (this.query.type == 3) {
+            let goShiCao = true;
+            const answer = this.getAnswer();
+            for (let k in answer) {
+              if (answer[k].value == "") {
+                goShiCao = false;
+              }
+            }
+            if (!goShiCao) {
+              this.$message({
+                message: "实操题目请选择完整顺序!",
+                type: "warning",
+              });
+              return;
+            }
+          }
 
           this.subjectIds[i].answer = this.getAnswer();
 

--
Gitblit v1.9.3