liuyg
2021-11-22 1e09467cc6a0b846d895ed3ff9ffa1937a668f02
src/views/startexam/index.vue
@@ -55,38 +55,39 @@
                      subjectIds.length
                    }}题,合计100分)
                  </div>
                  <!-- 题目内容 -->
                  <choices ref="choices" v-show="this.query.type === 0" />
                  <div class="subject_main">
                    <!-- 题目内容 -->
                    <choices ref="choices" v-show="this.query.type === 0" />
                  <multiple-choices
                    ref="multipleChoices"
                    v-show="this.query.type === 1"
                  />
                    <multiple-choices
                      ref="multipleChoices"
                      v-show="this.query.type === 1"
                    />
                  <judgement ref="judgement" v-show="this.query.type === 2" />
                    <judgement ref="judgement" v-show="this.query.type === 2" />
                  <practical-operation
                    ref="practicalOperation"
                    v-show="this.query.type === 3"
                  />
                    <practical-operation
                      ref="practicalOperation"
                      v-show="this.query.type === 3"
                    />
                  <short-answer
                    ref="shortAnswer"
                    v-show="this.query.type === 4"
                  />
                    <short-answer
                      ref="shortAnswer"
                      v-show="this.query.type === 4"
                    />
                  <div class="subject-buttons" v-if="query.subjectId !== ''">
                    <!-- <el-button plain @click="last" :loading="loadingLast"
                    <div class="subject-buttons" v-if="query.subjectId !== ''">
                      <!-- <el-button plain @click="last" :loading="loadingLast"
                      >上一题</el-button
                    > -->
                    <el-button
                      @click="next"
                      class="buttons"
                      :loading="loadingNext"
                      type="primary"
                      >下一题</el-button
                    >
                    <!-- <el-button
                      <el-button
                        @click="next"
                        class="buttons"
                        :loading="loadingNext"
                        type="primary"
                        >下一题</el-button
                      >
                      <!-- <el-button
                      :disabled="timesIT"
                      type="success"
                      @click="submitExam"
@@ -99,12 +100,13 @@
                      "
                      >完成考试 {{ time }}</el-button
                    > -->
                    <el-button
                      type="success"
                      @click="submitExam"
                      :disabled="subjectIndex != 60"
                      >完成考试 {{ time }}</el-button
                    >
                      <el-button
                        type="success"
                        @click="submitExam"
                        :disabled="subjectIndex != 60"
                        >完成考试 {{ time }}</el-button
                      >
                    </div>
                  </div>
                </div>
              </el-col>
@@ -131,10 +133,10 @@
                  v-for="(value, index) in subjectIds"
                  :style="{ background: value.color }"
                  :key="index"
                  @click="toSubject(value.everyID, value.type, index)"
                  >&nbsp;{{ index + 1 }}&nbsp;</el-button> -->
                <el-button
                  circle
                  @click="toSubject(value.everyID, value.type, index)"
                  v-for="(value, index) in subjectIds"
                  :style="{ background: value.color, color: value.fontColor }"
                  :key="index"
@@ -1048,8 +1050,9 @@
$fontSize2: 20px;
$fontSize3: 40px;
.subject-box {
  margin-top: 50px;
  margin-top: 25px;
  margin-left: 20px;
  height: 100%;
}
.subject-box-card {
  font-size: 28px;