|
@@ -143,12 +143,12 @@ export default {
|
|
|
this.getBlueData();
|
|
|
}
|
|
|
},
|
|
|
- getQuesDiffContent({ count, difficultInfo }) {
|
|
|
- if (!count) return "--";
|
|
|
- const qinfo = difficultInfo
|
|
|
+ getQuesDiffContent({ questionCount, questionDifficultInfo }) {
|
|
|
+ if (!questionCount) return "--";
|
|
|
+ const qinfo = questionDifficultInfo
|
|
|
.map((item) => `${item.difficultLevel}:${item.questionCount}`)
|
|
|
.join(",");
|
|
|
- return `${count}(${qinfo})`;
|
|
|
+ return `${questionCount}(${qinfo})`;
|
|
|
},
|
|
|
async getBaseData() {
|
|
|
const res = await questionDistributionStatisticsApi(this.courseId);
|
|
@@ -178,11 +178,11 @@ export default {
|
|
|
if (index === 0) nelem.rowspan = rowspan;
|
|
|
|
|
|
elem.distributeByQuestionTypeList.forEach((qt) => {
|
|
|
- nelem[qt.questionStructTypeName] = this.getQuesDiffContent(qt);
|
|
|
+ nelem[qt.sourceDetailName] = this.getQuesDiffContent(qt);
|
|
|
});
|
|
|
if (!this.blueQtypes.length) {
|
|
|
this.blueQtypes = elem.distributeByQuestionTypeList.map(
|
|
|
- (qt) => qt.questionStructTypeName
|
|
|
+ (qt) => qt.sourceDetailName
|
|
|
);
|
|
|
}
|
|
|
|