diff --git a/src/views/newMap/display/trainingList/testResult.vue b/src/views/newMap/display/trainingList/testResult.vue
index edb0be58c..a07a2d289 100644
--- a/src/views/newMap/display/trainingList/testResult.vue
+++ b/src/views/newMap/display/trainingList/testResult.vue
@@ -15,6 +15,7 @@
style="width: 100%"
>
+
{{ scope.row.success?'正确':'错误' }}
@@ -22,7 +23,7 @@
- {{ scope.row.score || 0 }}
+ {{ scope.row.score }}
@@ -54,7 +55,11 @@ export default {
if (scoreList && scoreList.length) {
scoreList.forEach(score => {
const step = this.stepList.find(step => step.id == score.stepId);
- this.tableData.push({ ...score, desc: step.description });
+ const role = this.$store.state.training.memberData[parseInt(step.memberId)];
+ if (!score.hasOwnProperty('score')) {
+ score.score = '/';
+ }
+ this.tableData.push({ ...score, role: role.labelName, desc: step.description });
});
}
this.dialogVisible = true;
@@ -66,7 +71,7 @@ export default {
if (index === 0) {
sums[index] = '合计';
return;
- } else if (index === 1) {
+ } else if (index === 2) {
const MyMemberId = this.$store.state.training.myMemberId;
const scoringRuleList = this.$store.state.trainingNew.scoringRules.find(rule => rule.memberId == MyMemberId );
let total = 0;
@@ -76,7 +81,7 @@ export default {
});
}
sums[index] = total;
- } else if (index === 2) {
+ } else if (index === 3) {
const values = data.map(item => Number(item[column.property]));
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);