yujialong 2 months ago
parent 56361bdd11
commit 46eaca3745
  1. 1
      src/views/match/add/step3.vue
  2. 15
      src/views/match/manage/theoryReport.vue

@ -392,6 +392,7 @@ export default {
this.$confirm('团队赛发布成功,由于您设置的报名时间已结束,如需自动分配阶段参赛人员,请前往报名人员列表进行设置', '提示', { this.$confirm('团队赛发布成功,由于您设置的报名时间已结束,如需自动分配阶段参赛人员,请前往报名人员列表进行设置', '提示', {
confirmButtonText: '关闭', confirmButtonText: '关闭',
type: 'success', type: 'success',
showCancelButton: false,
closeOnClickModal: false, closeOnClickModal: false,
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
showClose: false, showClose: false,

@ -96,7 +96,9 @@
</el-table-column> </el-table-column>
<el-table-column prop="userTotalScore" label="得分" align="center"> <el-table-column prop="userTotalScore" label="得分" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<p v-if="scope.row.questionType === 'essay'" class="text-red">待评分</p> <p v-if="scope.row.questionType === 'essay' && scope.row.userTotalScore === undefined"
class="text-red">待评分
</p>
<p v-else-if="essayExist && !scope.row.paperId" class="text-red">{{ scope.row.userTotalScore <p v-else-if="essayExist && !scope.row.paperId" class="text-red">{{ scope.row.userTotalScore
}}部分试题待判分成绩待定</p> }}部分试题待判分成绩待定</p>
<p v-else>{{ scope.row.userTotalScore }}</p> <p v-else>{{ scope.row.userTotalScore }}</p>
@ -322,7 +324,7 @@ export default {
const opts = n.questionAnswerVersionsList const opts = n.questionAnswerVersionsList
if (type !== 'fill_blank' && type !== 'essay') { // if (type !== 'fill_blank' && type !== 'essay') { //
if (!n.userScore) n.userScore = 0 if (!n.userScore) n.userScore = 0
n.isCorrect = n.userScore && n.userScore === n.questionScore ? 1 : 2 this.handleIsCorrect(n)
// //
let { userAnswer } = n let { userAnswer } = n
@ -369,7 +371,7 @@ export default {
if (n.userAnswerFill) rightLen = n.userAnswerFill.filter(m => m.correct).length // if (n.userAnswerFill) rightLen = n.userAnswerFill.filter(m => m.correct).length //
n.isCorrect = n.userScore && n.questionScore === n.userScore ? 1 : (rightLen ? 3 : 2) n.isCorrect = n.userScore && n.questionScore === n.userScore ? 1 : (rightLen ? 3 : 2)
} else if (type === 'essay') { // } else if (type === 'essay') { //
n.isCorrect = 4 // this.handleIsCorrect(n)
} }
}) })
}) })
@ -402,6 +404,10 @@ export default {
this.loading = false this.loading = false
} }
}, },
//
handleIsCorrect (n) {
n.isCorrect = n.userScore === undefined ? 4 : (n.userScore === n.questionScore ? 1 : n.userScore ? 3 : 2) // reviewScore 0
},
scrollToSmooth (position, duration) { scrollToSmooth (position, duration) {
let startTime = Date.now() let startTime = Date.now()
@ -655,7 +661,7 @@ samp {
li { li {
position: relative; position: relative;
width: 30px; min-width: 30px;
margin: 7px 9px; margin: 7px 9px;
font-size: 13px; font-size: 13px;
text-align: center; text-align: center;
@ -698,6 +704,7 @@ samp {
.score { .score {
height: 22px; height: 22px;
padding: 0 2px;
border: 1px solid #d3d3d3; border: 1px solid #d3d3d3;
border-top: 0; border-top: 0;
line-height: 22px; line-height: 22px;

Loading…
Cancel
Save