提交 0133ad31 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 472d07f6
......@@ -254,12 +254,14 @@ export default {
// 提交
submit() {
// 最短交卷时长/分钟
const min = this.data.questions.minimum_paper_handing_time || 0
if (this.duration < min * 60) {
this.$alert('考试时间不足' + min + '分钟,不能提交', '', {
confirmButtonText: '确定'
})
return
if (this.data && this.data.questions) {
const min = this.data.questions.minimum_paper_handing_time || 0
if (this.duration < min * 60) {
this.$alert('考试时间不足' + min + '分钟,不能提交', '', {
confirmButtonText: '确定'
})
return
}
}
this.$emit('submit', this.questionGroups)
},
......
......@@ -34,7 +34,7 @@
:autosize="{ minRows: 4, maxRows: 6 }"
:disabled="disabled"
@blur="handleChange"
:maxlength="100"
:maxlength="500"
:show-word-limit="true"
></el-input>
</template>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论