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

bug fixes

上级 472d07f6
...@@ -254,6 +254,7 @@ export default { ...@@ -254,6 +254,7 @@ export default {
// 提交 // 提交
submit() { submit() {
// 最短交卷时长/分钟 // 最短交卷时长/分钟
if (this.data && this.data.questions) {
const min = this.data.questions.minimum_paper_handing_time || 0 const min = this.data.questions.minimum_paper_handing_time || 0
if (this.duration < min * 60) { if (this.duration < min * 60) {
this.$alert('考试时间不足' + min + '分钟,不能提交', '', { this.$alert('考试时间不足' + min + '分钟,不能提交', '', {
...@@ -261,6 +262,7 @@ export default { ...@@ -261,6 +262,7 @@ export default {
}) })
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论