|
@@ -140,49 +140,6 @@ export default {
|
|
baseInfo
|
|
baseInfo
|
|
);
|
|
);
|
|
},
|
|
},
|
|
- getQuestionType(topic) {
|
|
|
|
- // const questionType = {
|
|
|
|
- // 1: "SINGLE_ANSWER_QUESTION",
|
|
|
|
- // 2: "MULTIPLE_ANSWER_QUESTION",
|
|
|
|
- // 3: "BOOL_ANSWER_QUESTION",
|
|
|
|
- // 4: "FILL_BLANK_QUESTION",
|
|
|
|
- // 5: "TEXT_ANSWER_QUESTION",
|
|
|
|
- // };
|
|
|
|
- if (topic.type === "COMPOSITION" || topic.type === "EXPLAIN") {
|
|
|
|
- return {
|
|
|
|
- type: 5,
|
|
|
|
- typeName: "解答题",
|
|
|
|
- qType: "subjective",
|
|
|
|
- };
|
|
|
|
- }
|
|
|
|
- if (topic.type === "FILL_LINE") {
|
|
|
|
- return {
|
|
|
|
- type: 4,
|
|
|
|
- typeName: "填空题",
|
|
|
|
- qType: "subjective",
|
|
|
|
- };
|
|
|
|
- }
|
|
|
|
- if (topic.type === "FILL_QUESTION") {
|
|
|
|
- if (topic.isBoolean)
|
|
|
|
- return {
|
|
|
|
- type: 3,
|
|
|
|
- typeName: "判断题",
|
|
|
|
- qType: "objective",
|
|
|
|
- };
|
|
|
|
- if (topic.isMultiply)
|
|
|
|
- return {
|
|
|
|
- type: 2,
|
|
|
|
- typeName: "多选题",
|
|
|
|
- qType: "objective",
|
|
|
|
- };
|
|
|
|
- return {
|
|
|
|
- type: 1,
|
|
|
|
- typeName: "单选题",
|
|
|
|
- qType: "objective",
|
|
|
|
- };
|
|
|
|
- }
|
|
|
|
- return;
|
|
|
|
- },
|
|
|
|
statPaperStructure(paperStructureInfo) {
|
|
statPaperStructure(paperStructureInfo) {
|
|
const questionCount = paperStructureInfo.length;
|
|
const questionCount = paperStructureInfo.length;
|
|
|
|
|