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

bug fixes

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