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

bug fixes

上级 b2fb0077
......@@ -34,6 +34,8 @@
:autosize="{ minRows: 4, maxRows: 6 }"
:disabled="disabled"
@blur="handleChange"
:maxlength="100"
:show-word-limit="true"
></el-input>
</template>
<template v-if="questionType === 3">
......
......@@ -30,6 +30,7 @@
placeholder="请输入分数"
size="mini"
style="width:80px"
@input="handleScoreInput(item)"
></el-input>
</div>
</div>
......@@ -42,6 +43,8 @@
max="2"
resize="none"
v-model="item.comment"
:maxlength="100"
:show-word-limit="true"
>
</el-input>
</div>
......@@ -115,6 +118,12 @@ export default {
this.studentList = JSON.parse(window.localStorage.examStudentsList)
},
methods: {
handleScoreInput(item) {
item.user_score = parseInt(item.user_score.replace(/[^\d]+/g, ''))
if (item.user_score > item.score) {
item.user_score = item.score
}
},
selectStudent(item) {
this.sheetId = item.sheet_id
this.getTopic()
......
......@@ -26,10 +26,12 @@
<el-input
type="number"
:disabled="item.checked_flag"
:max="item.score"
v-model="item.user_score"
placeholder="请输入分数"
size="mini"
style="width:80px"
@input="handleScoreInput(item)"
></el-input>
</div>
</div>
......@@ -42,6 +44,8 @@
max="2"
resize="none"
v-model="item.comment"
:maxlength="100"
:show-word-limit="true"
>
</el-input>
</div>
......@@ -115,6 +119,12 @@ export default {
this.studentList = JSON.parse(window.localStorage.testStudentsList)
},
methods: {
handleScoreInput(item) {
item.user_score = parseInt(item.user_score.replace(/[^\d]+/g, ''))
if (item.user_score > item.score) {
item.user_score = item.score
}
},
selectStudent(item) {
this.sheetId = item.sheet_id
this.getTopic()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论