|
@@ -123,6 +123,11 @@ async function fetchData() {
|
|
res2.data = res2.data.map((q) => {
|
|
res2.data = res2.data.map((q) => {
|
|
q.difficulityLevel = JSON.parse(q.difficulityLevel || "[]");
|
|
q.difficulityLevel = JSON.parse(q.difficulityLevel || "[]");
|
|
q.difficulityGroupLevel = JSON.parse(q.difficulityGroupLevel || "[]");
|
|
q.difficulityGroupLevel = JSON.parse(q.difficulityGroupLevel || "[]");
|
|
|
|
+ q.avgScore = Math.round(q.avgScore * 100) / 100;
|
|
|
|
+ q.stdev = Math.round(q.stdev * 100) / 100;
|
|
|
|
+ q.coefficient = Math.round(q.coefficient * 100) / 100;
|
|
|
|
+ q.difficulty = Math.round(q.difficulty * 100) / 100;
|
|
|
|
+ q.discrimination = Math.round(q.discrimination * 100) / 100;
|
|
return q;
|
|
return q;
|
|
});
|
|
});
|
|
paperQuestions = res2.data;
|
|
paperQuestions = res2.data;
|
|
@@ -132,7 +137,7 @@ async function fetchData() {
|
|
res4.data.discriminationLevel = JSON.parse(
|
|
res4.data.discriminationLevel = JSON.parse(
|
|
res4.data.discriminationLevel || "[]"
|
|
res4.data.discriminationLevel || "[]"
|
|
);
|
|
);
|
|
- console.log(res4.data);
|
|
|
|
|
|
+ // console.log(res4.data);
|
|
sasPaper = res4.data;
|
|
sasPaper = res4.data;
|
|
|
|
|
|
const res3 = await getPaperQuestionGroups(projectId, paperId);
|
|
const res3 = await getPaperQuestionGroups(projectId, paperId);
|