| | |
| | | width="800px" |
| | | :before-close="handleClose" |
| | | destroy-on-close |
| | | :close-on-press-escape="false" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <el-form :model="state.form" size="default" ref="busRef" :rules="state.formRules" label-width="150px" > |
| | | <span style="font-size: 20px;font-weight: 800;margin-left: 20px">考试配置</span> |
| | |
| | | </el-select> |
| | | <el-radio-group v-model="state.form.singleMethod" > |
| | | <el-radio :label="1" style="max-width: 30px">随机</el-radio> |
| | | <el-radio :label="2">顺序</el-radio> |
| | | </el-radio-group> |
| | | <el-radio :label="2" style="max-width: 30px">顺序</el-radio> |
| | | </el-radio-group > |
| | | <el-radio-group v-model="state.form.singleRebuild" style="margin-left: 30px" > |
| | | <el-radio :label="1" v-if="title === '编辑'" style="max-width: 30px">重新出题</el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | </div> |
| | | <div style="display: flex"> |
| | |
| | | </el-select> |
| | | <el-radio-group v-model="state.form.multiMethod" > |
| | | <el-radio :label="1" style="max-width: 30px">随机</el-radio> |
| | | <el-radio :label="2">顺序</el-radio> |
| | | <el-radio :label="2" style="max-width: 30px">顺序</el-radio> |
| | | </el-radio-group> |
| | | <el-radio-group v-model="state.form.multiRebuild" style="margin-left: 30px" > |
| | | <el-radio :label="1" v-if="title === '编辑'" style="max-width: 30px">重新出题</el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | </div> |
| | |
| | | </el-select> |
| | | <el-radio-group v-model="state.form.judgeMethod" > |
| | | <el-radio :label="1" style="max-width: 30px">随机</el-radio> |
| | | <el-radio :label="2">顺序</el-radio> |
| | | <el-radio :label="2" style="max-width: 30px">顺序</el-radio> |
| | | </el-radio-group> |
| | | <el-radio-group v-model="state.form.judgeRebuild" style="margin-left: 30px" > |
| | | <el-radio :label="1" v-if="title === '编辑'" style="max-width: 30px">重新出题</el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | </div> |
| | |
| | | <el-input v-model="state.form.limitTime" style="max-width: 200px" :disabled="state.form.limited === 0"> |
| | | <template #append>分钟</template> |
| | | </el-input> |
| | | |
| | | </el-form-item> |
| | | |
| | | </div> |
| | | <el-form-item label="是否限制考试时长:" prop="limited" style="margin-left: 60px"> |
| | | <el-radio-group v-model="state.form.limited" @change="changeLimit" > |
| | | <el-radio :label="0" style="max-width: 30px">否</el-radio> |
| | | <el-radio :label="1">是</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <div style="display: flex;justify-content: space-between;align-items: center"> |
| | | <el-form-item label="是否限制考试时长:" prop="limited" style="margin-left: 60px"> |
| | | <el-radio-group v-model="state.form.limited" @change="changeLimit" > |
| | | <el-radio :label="0" style="max-width: 30px">否</el-radio> |
| | | <el-radio :label="1">是</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="考试截止时间:" prop="deadline" style="margin-left: 60px"> |
| | | <el-date-picker |
| | | v-model="state.form.deadline" |
| | | type="date" |
| | | placeholder="请选择截止时间" |
| | | format="YYYY-MM-DD" |
| | | value-format="YYYY-MM-DD 23:59:59" |
| | | /> |
| | | </el-form-item> |
| | | </div> |
| | | |
| | | </el-form> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | |
| | | getQuestionBank |
| | | } from "@/api/onlineEducation/questionBank"; |
| | | import {addExam, checkExamName, editExam} from "@/api/onlineEducation/exam"; |
| | | import Student from "@/views/onlineEducation/groupExams/components/student.vue"; |
| | | |
| | | const dialogVisible = ref(false); |
| | | const title = ref(""); |
| | |
| | | singleScore: null, |
| | | limited: 1, |
| | | limitTime: null, |
| | | passScore: null |
| | | passScore: null, |
| | | judgeRebuild: 0, |
| | | multiRebuild: 0, |
| | | singleRebuild: 0, |
| | | deadline: '' |
| | | |
| | | }, |
| | | formRules: { |
| | |
| | | categoryId: [{required: true, message: '请选择课程分类', trigger: 'blur'}], |
| | | limited: [{required: true, message: '请选择课程分类', trigger: 'blur'}], |
| | | limitTime: [{required: true, message: '请选择课程分类', trigger: 'blur'}], |
| | | passScore: [{required: true, message: '请选择课程分类', trigger: 'blur'}] |
| | | passScore: [{required: true, message: '请选择课程分类', trigger: 'blur'}], |
| | | deadline: [{required: true, message: '请选择考试截止时间', trigger: 'blur'}] |
| | | }, |
| | | classifyList: [], |
| | | isAdmin: false, |
| | |
| | | console.log("label====",classifyRef.value.getCheckedNodes()[0].value) |
| | | state.form.categoryId = classifyRef.value.getCheckedNodes()[0].value |
| | | // 我这里只是打印了一下label的值哦,需要赋值的话自己去赋值哦 |
| | | if (classifyRef.value.popperVisible) { |
| | | classifyRef.value.togglePopperVisible() |
| | | } |
| | | } |
| | | |
| | | const handleClose = () => { |
| | |
| | | singleScore: null, |
| | | limited: 0, |
| | | limitTime: null, |
| | | passScore: null |
| | | passScore: null, |
| | | judgeRebuild: 0, |
| | | multiRebuild: 0, |
| | | singleRebuild: 0, |
| | | deadline: '' |
| | | } |
| | | } |
| | | const handleScroll = () => { |
| | |
| | | align-items:center; |
| | | font-size: 15px; |
| | | font-weight: 700; |
| | | margin: 20px 0 0 70px; |
| | | margin: 20px 0 0 35px; |
| | | } |
| | | } |
| | | |