|
@@ -106,6 +106,9 @@ export default {
|
|
|
const examStudentAnswerJson = data.examStudentAnswerJson
|
|
|
? JSON.parse(data.examStudentAnswerJson)
|
|
|
: [];
|
|
|
+ const subjectiveScoreDetailJson = data.subjectiveScoreDetailJson
|
|
|
+ ? JSON.parse(data.subjectiveScoreDetailJson)
|
|
|
+ : [];
|
|
|
const randomPaperStructPath = data.randomPaperStructPath
|
|
|
? JSON.parse(data.randomPaperStructPath)
|
|
|
: { details: [] };
|
|
@@ -146,6 +149,19 @@ export default {
|
|
|
};
|
|
|
}
|
|
|
});
|
|
|
+ subjectiveScoreDetailJson.forEach((question) => {
|
|
|
+ let k = `${question.mainNumber}-${question.subNumber}`;
|
|
|
+ if (question.subIndex) {
|
|
|
+ k = `${k}-${question.subIndex}`;
|
|
|
+ }
|
|
|
+ if (studentAnsMap[k]) {
|
|
|
+ studentAnsMap[k].score = question.score;
|
|
|
+ } else {
|
|
|
+ studentAnsMap[k] = {
|
|
|
+ score: question.score,
|
|
|
+ };
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
// detail
|
|
|
paperStructJson.details.forEach((detail) => {
|