From 1e09467cc6a0b846d895ed3ff9ffa1937a668f02 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 22 Nov 2021 14:05:59 +0800
Subject: [PATCH] 添加管理员进入进入签到页面
---
src/views/startexam/index.vue | 69 ++++++++++++++++++----------------
1 files changed, 36 insertions(+), 33 deletions(-)
diff --git a/src/views/startexam/index.vue b/src/views/startexam/index.vue
index 0de0288..1e5bd1d 100644
--- a/src/views/startexam/index.vue
+++ b/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)"
> {{ index + 1 }} </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;
--
Gitblit v1.9.3