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

bug修复

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