提交 9a22a3b3 authored 作者: matian's avatar matian

bug修复

上级 4b45049b
......@@ -88,6 +88,7 @@ export default {
question: {}
}
},
computed: {
// 试题类型
questionType() {
......
......@@ -84,13 +84,13 @@ export default {
prop: 'question_content',
label: '题干内容',
placeholder: '请输入题干内容'
},
{
type: 'input',
prop: 'question_tag',
label: '知识点',
placeholder: '请输入知识点'
}
// {
// type: 'input',
// prop: 'question_tag',
// label: '知识点',
// placeholder: '请输入知识点'
// }
],
columns: [
{ type: 'selection' },
......@@ -105,7 +105,7 @@ export default {
},
{ label: '试卷分类', prop: 'question_category.category_name' },
{ label: '题目标题', prop: 'question_title' },
{ label: '知识点', prop: 'knowledge_point.title' },
// { label: '知识点', prop: 'knowledge_point.title' },
{
label: '难度等级',
prop: 'question_difficulty',
......
......@@ -16,7 +16,7 @@
<el-descriptions-item label="最短交卷时长">{{ detail.minimum_paper_handing_time }}分钟</el-descriptions-item>
<el-descriptions-item label="试题顺序">{{ detail.paper_question_order_name }}</el-descriptions-item>
<el-descriptions-item label="多次考试">{{ detail.is_multiple_exams_name }}</el-descriptions-item>
<el-descriptions-item label="多次考试成绩计算规则">{{
<el-descriptions-item label="多次考试成绩计算规则" v-if="detail.is_multiple_exams_name === '是'">{{
detail.multiple_test_score_rule_name
}}</el-descriptions-item>
</el-descriptions>
......
......@@ -188,6 +188,10 @@ export default {
},
// 保存
handleSubmit() {
if (this.form.pass_score >= this.form.paper_total_score) {
this.$message.warning('及格分数要小于试卷总分')
return
}
this.$refs.form.validate().then(() => {
// 保存成功回到列表
if (this.isEdit) {
......@@ -203,6 +207,10 @@ export default {
},
// 保存并选择试题
handleSubmitSelect() {
if (this.form.pass_score >= this.form.paper_total_score) {
this.$message.warning('及格分数要小于试卷总分')
return
}
this.$refs.form.validate().then(async () => {
if (this.isEdit) {
this.updatePaper(() => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论