From 502ded525d414aa1de5a00c364e76f1cd077de9e Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 08 七月 2024 11:55:53 +0800 Subject: [PATCH] 阅卷1.5只能给到1分bug修复 --- src/views/exam/exam/components/MarkPaperShow.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/exam/exam/components/MarkPaperShow.vue b/src/views/exam/exam/components/MarkPaperShow.vue index 6b875da..24474e1 100644 --- a/src/views/exam/exam/components/MarkPaperShow.vue +++ b/src/views/exam/exam/components/MarkPaperShow.vue @@ -90,7 +90,7 @@ </div> <span style="color:#ECAB3C;">{{ '鎵规敼锛�' }}</span> <el-input-number size="mini" v-model="question.score" :precision="1" :min="0" - :max="parseInt(question.questionScore)" @change="updateRight"></el-input-number> + :max="parseFloat(question.questionScore)" @change="updateRight"></el-input-number> </div> <div v-else> </div> @@ -128,7 +128,7 @@ methods: { updateRight () { // 褰搒core鍙樺寲鏃讹紝妫�鏌ュ畠鏄惁绛変簬questionScore - this.question.right = this.question.score === parseInt(this.question.questionScore) + this.question.right = this.question.score === parseFloat(this.question.questionScore) const foundAnswer = this.answer.find(answer => answer.itemOrder === this.question.itemOrder) if (foundAnswer) { foundAnswer.right = this.question.right -- Gitblit v1.8.0